Parameter Declaration Data Type Memory Area Description
PREV_IN Static REAL I, Q, M, D, L, P, con-
stant
Previous input
PREV_OUT Static REAL I, Q, M, D, L, P, con-
stant
Previous output
If GAIN is less than or equal to 0, the function block is not executed. The signal state of
ENO is set to 0 and ERR_CODE is set equal to W#16#0009.
15.1.2 FC 93 - SEG - Seven Segment Decoder
The Seven Segment Decoder SEG function converts each of the four hexadecimal digits
in the designated source data word IN into four equivalent 7-segment display codes and
writes it to the output destination double word OUT. The Figure below shows the relation-
ship between the input hex digits and the output bit patterns.
Parameters
Digit – g f e d c b a Display
0 0 0 0 0 0 1 1 1 1 1 1 0
0 0 0 1 0 0 0 0 0 1 1 0 1
0 0 1 0 0 1 0 1 1 0 1 1 2
0 0 1 1 0 1 0 0 1 1 1 1 3
0 1 0 0 0 1 1 0 0 1 1 0 4
0 1 0 1 0 1 1 0 1 1 0 1 5
0 1 1 0 0 1 1 1 1 1 0 1 6
0 1 1 1 0 0 0 0 0 1 1 1 7
1 0 0 0 0 1 1 1 1 1 1 1 8
1 0 0 1 0 1 1 0 0 1 1 1 9
1 0 1 0 0 1 1 1 0 1 1 1 A
1 0 1 1 0 1 1 1 1 1 0 0 b
1 1 0 0 0 0 1 1 1 0 0 1 C
1 1 0 1 0 1 0 1 1 1 1 0 d
1 1 1 0 0 1 1 1 1 0 0 1 E
1 1 1 1 0 1 1 1 0 0 0 1 F
Parameters
Parameter Declaration Data Type Memory Area Description
EN Input BOOL I, Q, M, D, L Enable input with signal state of 1 activates the
box
ENO Output BOOL I, Q, M, D, L Enable output has a signal state of 1 if the func-
tion is executed without error
Error Information
Description
VIPA SPEED7
Standard
Converting > FC 93 - SEG - Seven Segment Decoder
HB00 | OPL_SP7 | Operation list | en | 18-30 796