Melsec-q, Appendix (2) program example, Remark – MITSUBISHI ELECTRIC QJ71C24N User Manual
Page 341
App. - 47 App. - 47
MELSEC-Q
APPENDIX
(2) Program example
Changes the initial setting
command into pulses.
Sets the word/byte units
designation to byte.
Transfers the setting value to
the word/byte units designation
area of the buffer memory.
Initial setting command 2
Abnormal completion of REMTO
instruction
Sets 400
H
to the buffer memory head
address for on-demand transmission.
Sets 0
H
to the buffer memory length
for on-demand transmission.
Sets 0C00
H
to the transmission
buffer memory head address.
Sets 400
H
to the transmission buffer
memory length.
Transfers the setting values to the
on-demand function designation
and transmission area designation
areas of the buffer memory.
Initial setting command 3
Abnormal completion of REMTO
instruction
Sets 600
H
to the receive buffer
memory head address.
Sets 200
H
to the receive buffer
memory length.
Transfers the setting value to the
receive area designation area of the
buffer memory.
Initial setting completion
Abnormal completion of REMTO
instruction
REMARK
When changing the default values of the following buffer memory areas, refer to
above (2) Program example to perform programming.
• DTR/DSR (ER/DR), DC control designation
• DC1/DC3 (Xon/Xoff) code designation
• DC2/DC4 code designation
• CD terminal check designation (for RS-232)
• Communication system designation (for RS-232)
• Simultaneous transmission priority/non-priority designation
• Retransmission time transmission method designation
• Simultaneously transmission data valid/invalid designation
• No-reception monitoring time (timer 0) designation