EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-F FX5 - Page 23

Mitsubishi Electric MELSEC iQ-F FX5
44 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
4 SERIAL COMMUNICATION FB
4.1 M+FX5UCPU-SerialComm_InputOutput
21
4
Error code
*1 When the same self-diagnosis error as another instruction occurs in this FB, this FB may not detect the error.
Restrictions or precautions This FB does not include the error recovery processing. Program the error recovery processing separately in accordance
with the required system operation.
This FB cannot be used in an interrupt program.
This FB uses the serial communication (RS2) instruction.
Do not use this FB in programs that are executed only once, such as a subroutine program or FOR-NEXT loop, because
i_bEN (Execution command) cannot be turned off and the normal operation cannot be acquired. Always use this FB in
programs that can turn off i_bEN (Execution command).
When switching the "M+FX5UCPU-SerialComm_InputOutput" FB (this FB), "M+FX5UCPU-SerialComm_Input" FB,
"M+FX5UCPU-SerialComm_Output" FB, and RS2 instruction using the same communication channel, turn OFF unused
target FBs and RS2 instruction for at least 1 scan.
This FB uses the index register Z9. When using an interrupt program, do not use this index register in the interrupt program.
When using an interrupt program, use the DI/EI instruction before and after executing this FB so that this FB is executed in
the interrupt disabled status. If executing this FB in the interrupt enabled status, a self-diagnosis error that occurs in an
interrupt program is detected as an error that occurred in the FB.
When keeping the sending/receiving standby state of serial data using this FB, it is necessary to let i_bEN (Execution
command) remain ON even after sending and receiving are completed.
Turn off i_bEN (Execution command) after o_bOK (Normal completion) or o_bErr (Error completion) is turned on. By turning
off i_bEN (Execution command), o_bOK (Normal completion) and o_bErr (Error completion) are turned off.
Receiving complete flag of the corresponding channel (SM8562, SM8572, SM8582, and SM8592) are reset after one
operation cycle. Receive the data of o_uRecvDataLength (Number of receive data points) and o_uRecvData (Receive data
storage device) within one operation cycle.
Set the module parameters of the used communication channel in GX Works3 in accordance with the application. For the
module parameter setting method, refer to the MELSEC iQ-F FX5 User's Manual (Serial Communication).
To validate the change of the setting value of allowable number of receive data, restart this FB.
FX5UC CPU does not have serial communication port ch2. When using this FB in FX5UC CPU, set channel to one of ch1,
ch3, ch4.
This FB does not support the SM/SD devices of FX3 series compatibility. When using this FB in communication channel ch1
or ch2, set the SM/SD devices of FX3 series compatibility of the module parameters of the used communication channel in
GX Works3 to "Disable."
Error code (hexadecimal) Description Action
100H The set value of i_uCh (communication channel) is outside the
setting range.
The target channel is set to a value outside the range from 1 to 4.
Try again after checking the setting.
101H The set value of i_uMaxRecvData (Allowable number of receive
data) is outside the setting range.
The allowable number of receive data is set to a value outside the
range from 0 to 4,096.
Try again after checking the setting.
102H The set value of i_uSendDataLength (Send data length) is outside
the setting range.
The send data length is set to a value outside the range from 0 to
4,096.
Try again after checking the setting.
103H The serial communication operation mode is set to an invalid mode.
The serial communication operation mode is not set to "Non-
protocol communication".
Try again after checking the setting.
Serial communication error The contents are same as the error code that occurred in the serial
communication (RS2) instruction.
Refer to the MELSEC iQ-F FX5 User's Manual
(Serial Communication).
Self-diagnostics error This error may occur in the serial communication (RS2)
instruction.
*1
Refer to the MELSEC iQ-F FX5 User's Manual
(Application).
Item Description

Other manuals for Mitsubishi Electric MELSEC iQ-F FX5

Related product manuals