Part 4 Commands
Part 4 Commands
Chapter 1 List of SEL Language Command Codes
1. Command Codes by Function
Variables can be specified indirectly in the operand 1, operand 2 and output fields.
Symbols can be input in the condition, operand 1, operand 2 and output fields.
The input items in ( ) under operand 1 and operand 2 are optional.
The output field will be turned OFF when the command is executed. Once the execution is completed, the
output field may be turned ON depending on the operation type condition in the output field. (The output
field will remain OFF if the condition is not satisfied.)
Note: The output field of a comparison command CPXX (CPEQ, CPNE, CPGT, CPGE, CPLT and CPLE) will not be turned OFF
when the command is executed.
Operation type in the output field
CC: Command was executed successfully, ZR: Operation result is zero,
PE: Operation is complete, CP: Command part has passed, TU: Time up
EQ: Operand 1 = Operand 2, NE: Operand 1 ≠ Operand 2,
GT: Operand 1 > Operand 2, GE: Operand 1 ≥ Operand 2,
LT: Operand 1 < Operand 2, LE: Operand 1
≤
Variable
assignment
Optional TRAN Copy-destination variable
ZR Copy 78
Optional CLR Start-of-clear variable
End-of-clear
variable
ZR Clear variable 79
Arithmetic
operation
Optional MOD
Remainder assignment
variable
Divisor ZR Calculate remainder 82
Function
operation
Cosine assignment variable
Tangent assignment variable
Optional ATN
Inverse-tangent assignment
operation
Operand ZR Inverse tangent 86
Logical
operation
Optional EOR
Exclusive-OR operand
variable
Operand ZR Logical exclusive-OR 90
Comparison Optional CPXX Comparison variable Comparison value
GT, GE,
Compare 91
Timer
I/O, flag
operation
Output, flag [ON, OF, NT]
Wait for I/O, flag [ON, OF]
Input binary (32 bits max.)
Input BCD (8 digits max.)
Output binary (32 bits max.)
Output BCD (8 digits max.)
Optional FMIO Format type Prohibited CP
Set IN (B)/OUT (B)
command format
103
Program
control
Jump-destination tag number
Execution subroutine number
Prohibited BGSR
Declaration subroutine
number
Prohibited CP Start subroutine 107
Kommentare zu diesen Handbüchern