11 INSTRUCTIONS AND FUNCTIONS
Processing Code 16
Processing Code 17
11 - 409
Specifying communication parameters
Control table format definition
Element position
Item
%(0)
Processing code
%(1)
Baud rate
%(2)
Character length,
parity bit
%(3)
Stop bit
Reading communication parameters
Control table format definition
Element position
Item
%(0)
Processing code
%(1)
Baud rate
%(2)
Character length,
parity bit
%(3)
Stop bit
• It is possible to set or read communication parameters of an open
communication channel using these codes.
• Specify 16 for the processing code in order to set communication parameters.
Specify 17 for the processing code in order to read communication parameters.
Specify other items as follows:
When changing setting
values
When reading set data
When the communication parameters are set, all receive buffer memory
is cleared and all control signal statuses are initialized.
Description
Specify the processing code.
Specify the baud rate.
Specify the character length and parity bit in the
lower and higher bytes, respectively.
Specify the stop bit in the lower byte. The higher
byte is ignored.
Description
Specify the processing code.
Read the status of the baud rate.
Read the statuses of the character length and
the parity bit into the lower and higher bytes,
respectively.
Read the status of the stop bit into the lower
byte.
• • •
Sets all the items including values to be
changed, in the same way as when
specifying parameters in the control table
for the ZOPEN instruction. See the ZOPEN
instruction for details (it is not possible to
set only a part of the items).
• • •
The currently set parameter data is stored
in element positions (1) to (3) of the control
table. See the ZOPEN instruction for the
meaning of each data item.
MELSEC-Q
11 - 409