6F8C0845
229
D.4 Input/Output Data Area Batch Access Function Block
D
/*Station status read*/
S3
( )
DUMMY_R1
S2
MOVE_UNIT
ST
NUM_RED1
1
LD
EN
ENO
MOVE_WORD
ADR_RED1
〉
SET
1493
LD
ENO
ADR_RED1
〉
SET
718
LD
EN
MOVE_WORD
STEP[0]
E
MREAD
SLOTNO
T
ADR_RED1
TADDR
DAT_RED1
P
NUM_RED1
N
LD
LD
LD
LD
( )
COMP_RED1
EN
ENO
MOVE_WORD
STATUS
〉
SET
DAT_RED1
LD
STATUS
AND_WORD
16#1000
LD
( )
RUN
EQ_WORD
16#1000
LD
LD
STATUS
AND_WORD
16#0008
LD
( )
SYN
EQ_WORD
16#0008
LD
LD
STATUS
AND_WORD
16#0400
LD
( )
BS
EQ_WORD
16#0400
LD
LD
STATUS
AND_WORD
16#0200
LD
( )
POL
EQ_WORD
16#0200
LD
LD
(S)
STEP[1]
STEP[0]
COMP_RED1
RUN
POL
(S)
STEP[2]
POL
STEP[0]
(R)