Iai-america XSEL-KX Bedienungsanleitung Seite 82

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 377
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 81
66
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
Operand 2
Category
Condition
Command
Operand 1
Operand 2
Output
Function
Page
Variable
assignment
Optional
LET
Assignment variable
Assigned value
ZR
Assign
78
Optional TRAN Copy-destination variable
Copy-source
variable
ZR Copy 78
Optional CLR Start-of-clear variable
End-of-clear
variable
ZR Clear variable 79
Arithmetic
operation
Optional
ADD
Augend variable
Addend
ZR
Add
80
Optional
SUB
Minuend variable
Subtrahend
ZR
Subtract
80
Optional
MULT
Multiplicand variable
Multiplier
ZR
Multiply
81
Optional
DIV
Dividend variable
Divisor
ZR
Divide
81
Optional MOD
Remainder assignment
variable
Divisor ZR Calculate remainder 82
Function
operation
Optional
SIN
Sine assignment variable
Operand [radian]
ZR
Sine
83
Optional
COS
Cosine assignment variable
Operand [radian]
ZR
Cosine
84
Optional
TAN
Tangent assignment variable
Operand [radian]
ZR
Tangent
85
Optional ATN
Inverse-tangent assignment
operation
Operand ZR Inverse tangent 86
Optional
SQR
Root assignment variable
Operand
ZR
Root
87
Logical
operation
Optional
AND
AND operand variable
Operand
ZR
Logical AND
88
Optional
OR
OR operand variable
Operand
ZR
Logical OR
89
Optional EOR
Exclusive-OR operand
variable
Operand ZR Logical exclusive-OR 90
Comparison Optional CPXX Comparison variable Comparison value
EQ, NE,
GT, GE,
LT, LE
Compare 91
Timer
Optional
TIMW
Wait time (sec)
Prohibited
TU
Wait
92
Optional
TIMC
Program number
Prohibited
CP
Cancel waiting
93
Optional
GTTM
Time assignment variable
Prohibited
CP
Get time
94
I/O, flag
operation
Optional
BTXX
Start output, flag
(End output, flag)
CP
Output, flag [ON, OF, NT]
95
Optional
BTPN
Output port, flag
Timer setting
CP
Output ON pulse
96
Optional
BTPF
Output port, flag
Timer setting
CP
Output OFF pulse
97
Optional
WTXX
I/O, flag
(Wait time)
TU
Wait for I/O, flag [ON, OF]
98
Optional
IN
Head I/O, flag
End I/O, flag
CC
Input binary (32 bits max.)
99
Optional
INB
Head I/O, flag
Conversion digits
CC
Input BCD (8 digits max.)
100
Optional
OUT
Head output, flag
End output, flag
CC
Output binary (32 bits max.)
101
Optional
OUTB
Head output, flag
Conversion digits
CC
Output BCD (8 digits max.)
102
Optional FMIO Format type Prohibited CP
Set IN (B)/OUT (B)
command format
103
Program
control
Optional
GOTO
Jump-destination tag number
Prohibited
CP
Jump
106
Prohibited
TAG
Declaration tag number
Prohibited
CP
Declare jump destination
106
Optional
EXSR
Execution subroutine number
Prohibited
CP
Execute subroutine
107
Prohibited BGSR
Declaration subroutine
number
Prohibited CP Start subroutine 107
Prohibited
EDSR
Prohibited
Prohibited
CP
End subroutine
108
Seitenansicht 81
1 2 ... 77 78 79 80 81 82 83 84 85 86 87 ... 376 377

Kommentare zu diesen Handbüchern

Keine Kommentare