App
- 33
Appendix 6 Precautions for Using Serial Communication Module
Appendix 6.1 CSET Instruction
APPENDICES
Appendix 6.1 CSET Instruction
(1) When setting initial setting of the unit (word/byte) of the number of send/
receive data and the send/receive area size
(a) Setting the unit of send/receive data length
The following shows the device and buffer memory used in the sample program of
the send/receive data length unit setting.
1) I/O signal
2) Buffer memory
Write 0 (word unit) or 1 (byte unit) to the following address.
POINT
Set the send/receive data length unit setting before communication.
In addition, change the setting when the ready signal X(n+1)E of a module is ON.
The program example of send/receive data length unit setting is shown in
Diagram App.23. (For the I/O signal is X/Y80 to X/Y9F)
(b) Specification of buffer memory head address and buffer memory size used
in on-demand function
For the specification, refer to Appendix 6.6.
Table.App 14 List of I/O Signal
I/O signal
Signal name
Description of signal
CH1 side
CH2 side
X(n+1)E
Q series C24 ready
ON: Accessible
X(n+1)F
Watchdog timer error
(WDT error)
ON : Module error occurred
OFF: Module being normally
operated
Table.App 15 List of Buffer Memory
Buffer memory address hexadecimal (decimal)
Buffer memory name
CH1 side
CH2 side
96
H
(150)
136
H
(310)
Word/byte units designation
Diagram App.23 Program Example
Write "1" (in units of bytes) to
buffer memory address 96
H
0
X9E
X9F
TOP
H8
H96
K1
K1