6 BASIC INSTRUCTIONS
6.6 Data Conversion Instructions
475
6
Decoding data to seven-segment display data
SEG(P)
These instructions decode the data consisting of 0 to F specified by the lower 4 bits of the device to seven-segment display
data.
■Execution condition
■Description, range, data type
■Applicable devices
Ladder ST
ENO:=SEG(EN,s,d);
ENO:=SEGP(EN,s,d);
FBD/LD
Instruction Execution condition
SEG
SEGP
Operand Description Range Data type Data type (label)
(s) Decode data or the device where the decode data is stored -32768 to 32767 16-bit signed binary ANY16
(d) Device for storing the decoded data 16-bit signed binary ANY16
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB,
FX, FY
J\ T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K, H E $
(s)
(d)
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)