E6581288①
− 25 −
5.7. Example of the parameter reading
The following program reads f311 "Reverse-run prohibition selection" of station 2
inverter to D2.
The code of reading "Reverse-run prohibition selection" : 1311H (Hexadecimal number)
The reply code at the time of instruction code execution is set to D1.
M9036 Reads the remote input (RX20 to RX3F)
[ FROM H0000 H00E2 K4M100 K2 ] data of buffer memory to M100 – M131.
X0000
X000F
X0001
X0020
[ PLS M302]
M302 Read setting
[ SET M303]
M303 [ MOV H1311 D100] Writes F311 reading code (1311H) to RWw6.
[ TO H0000 H01E6 D100 K1]
[ SET M215] Switches on the instruction code request
M115 request (RY2F).
[ FROM H0000 H02E7 D2 K1 ] "Reads F311 (RWw7) and reply code (RWr6)
[ FROM H0000 H02E6 D1 K1 ] to D2 and D1" when the instruction code
execution completion (RX2F) switches on.
[ RST M215] Switches off the instruction code execution
[ RST M303] request (RY2F).
M9036
[ TO H0000 H0162 K4M200 K2] Writes M200 – M231 data to the remote
outputs (RY20 to RY2F) of buffer memory.
*To read parameters, add the triple figures that follow Fxxx to 1000H.
Example f311-> 1311H