RECV
RECV, RECVP
RECV instruction receives the frame data from Master station to Slave station.
| |
PID | Program ID number |
F-Name | Frame number with communication type |
Result | Result of receiving frame data |
Instruction | Device address | No. of Steps | Flag | |||||||||||||||
M | X | Y | K | L | F | T | C | S | Z | D | @D | Int. | Error | Zero | Carry | |||
RECV RECVP | PID | o | o | o | o | o | o | o | o | - | o | o | o | o | 4 | o | - | - |
F-name | o | o | o | o | o | - | - | - | - | o | o | o | o | |||||
Result | o | o | o | o | o | - | - | - | - | o | o | o | - |
In order to use RECV instruction, the protocol type of communication module should be matched with special program.
Ex) If Serial Protocol program is used in CICON, the protocol type must be Protocol Program.
Format : RECV PID (Program ID number) F-name(frame number with communication type) Result
PID : ID number of communication special program
F-Name
a. Bit8 ~ F : Communication type (CH1 : 0, CH2 : 1, Ethernet : host number)
b. Bit 0 ~ 7 : Frame number
Result : Device address which will have a communication result of receiving frame data.
a. Bit 0 : When receiving frame data is completed, bit 0 is 1 scan ON.
b. Bit 1 : When receiving frame data is failed, bit 1 is always ON.
c. Bit 2 ~ 7 : OFF (Not used)
d. Bit 8 ~ F : Error Code (0 = No Error)
Example)
When X00 is ON, the RECV instruction receives the frame data from the Master station to the frame number 3 of program number 4 by Channel 2. The communication result is saved in M00.