Hitachi HIDIC MICRO-EH Applications Manual page 117

Table of Contents

Advertisement

Item number
Arithmetic instructions-22
Ladder format
d = s1 S<= s2
Command format
d = s1 S<= s2
Usable I/O
d
Substitution destination
s1
Comparand
s2
Relational number
Function
Substitutes 1 when s1 is less than or equal to s2 and otherwise 0 into d, assuming s1 and s2 as signed binary data.
s1 and s2 are both signed binary data. When the most significant bit is 0, the value is positive; when the most significant
bit is 1, the value is negative.
s1, s2
– 2147483648 to +2147483647 (decimal)
H80000000 to H7FFFFFFF (hexadecimal)
b31
b16 b15
Sign bit: 0 - Positive; 1 - Negative
Program example
Program description
When the value in DR10 is less than or equal the value in DR100, Y00100 is turned on. Otherwise, Y00100 is turned off.
Name
Condition code
R7F4
R7F3
R7F2
DER
ERR
SD
Number of steps
Condition
s is a double word
Bit
R,
TD, SS,
X
Y
L,
WX WY
CU, CT
M
b0
Y00100 = DR10 S<= DR100
5-67
Chapter 5 Instruction Specifications
Signed ≤ Relational expression
Processing time (
R7F1
R7F0
Average Maximum
V
C
50
Steps
6
Word
Double word
WR,
DR,
TC DX DY
WM
DM
[
Y00100 = DR10 S<= DR100
]
µ
Remark
s)
Other

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents