SEND
SEND, SENDP
SEND instruction sends frame data of Master station to Slave station.
| |
PID | Program ID number |
F-Name | Frame number with communication type |
Result | Result of sending 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 | |||
SEND SENDP | 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 SEND 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 : SEND 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 sending frame data.
a. Bit 0 : When sending frame data is completed, bit 0 is 1 scan ON.
b. Bit 1 : When sending 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 SEND instruction sends the frame number 2 of program number 4 to Slave station by channel 2. The communication result is saved in M00.