1712
20 SERIAL COMMUNICATION INSTRUCTIONS
20.12 Initial Setting
• The following current set values are changed, which are used for data communication with each communication protocol.
• To change any of the above set values from the CPU module, execute the ZP.CSET instruction. In addition, execute it one
scan before the start of data communication or earlier. After the start of data communication, the ZP.CSET instruction
cannot be executed, therefore, the set value cannot be changed. The system does not allow concurrent execution of two or
more ZP.CSET instructions set to perform the initial setting.
• The completion status of the ZP.CSET instruction can be checked with the completion device (d2) and the completion
status indication device (d2)+1.
• The following figures show how the ZP.CSET instruction operates when its execution completes.
• Unit of the amount of the data to be sent or received (word or byte)
• Sending area of the buffer memory to be used for the MC protocol on-demand function
• Sending or receiving area of the buffer memory to be used for the nonprocedural protocol
• Sending or receiving area of the buffer memory to be used for the bidirectional protocol
• Completion device (d2)
This device turns on during END processing of the scan where the ZP.CSET instruction completes, and turns off during the next END processing.
• Completion status indication device (d2)+1
This device turns on or off depending on the completion status of the ZP.CSET instruction.
When completed successfully: The device remains off.
When completed with an error: The device turns on during END processing of the scan where the ZP.CSET instruction completes, and turns off during the next
END processing.
END0 END0 END0
OFF
OFF
ON
OFF
OFF
ON
Sequence scan
ZP.CSET instruction
Completion device (d2)
Completed successfully
Completed with an error
Execution of
the instruction
Completion status
indication device (d2)+1
Serial communication
module
Set processing