Mitsubishi Electric MELSEC iQ-F Reference page 19

Fx5 ethernet/cc-link ie function block
Hide thumbs Also See for MELSEC iQ-F:
Table of Contents

Advertisement

FB details
Item
Description
Available device
Target CPU
Engineering tool
Language
Ladder diagram
Number of basic steps
313 steps
The number of FB steps integrated in the program varies depending on the CPU module used, the input/output definition, and
the setting options of GX Works3. For the setting options of GX Works3, refer to GX Works3 Operating Manual.
Processing
• When i_bEN (start condition) is turned on, this function reads device data from the SLMP-compatible device.
• This FB is executed specifying the IP address of target device.
• This FB uses Read command (command: 0401H) of SLMP. The message of the SLMP command is binary code.
(MELSEC iQ-F FX5 User's Manual (SLMP))
• If the set number of device points is out of the range, o_bErr (error completion) is turned on, and the processing of FB is
suspended. The error code 100 (hexadecimal) is stored in o_uErrId (error code). Refer to Page 18 Error code for details
on the error codes.
• If an error occurs during device data reading, o_bErr (error completion) is turned on, and the error code is stored in o_uErrId
(error code). Refer to Page 18 Error code for details on the error codes.
FB compilation method
Macro type
FB operation
Pulsed execution (multiple scan execution type)
Timing chart of I/O signals
[For normal completion]
[For error completion]
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 uses the SP.SLMPSND instruction.
• 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) or o_bErr (Error completion) is turned off and o_uErrId (Error
code) is cleared to 0. However, because the SP.SLMPSND instruction which is a pulse instruction in the FB is used, if a write
is performed while the FB is executed, the instruction may not be executed, and o_bOK (Normal completion) and o_bErr
(Error completion) may not turn on. If this happens, turn i_bEN (Execute command) from off to on again.
• This FB cannot be used in an interrupt program.
• 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).
• In this FB, access devices (such as link direct device) that are accessed by the extension specification of SLMP cannot be
read.
• In this FB, stations in other network cannot be set as the target station.
• For the port of target device where the remote password is set, execute this FB after performing the unlock processing of the
remote password. When this FB is executed for the port of target device where the remote password is set, an error will
occur.
• The target station must support "Read (command: 0401H)" of SLMP.
• This FB is for communications in binary code only. (Communications using ASCII code cannot be performed.)
• This FB uses UDP communications. Set the protocol setting of the target device to UDP.
• Every input must be provided with a value for proper FB operation.
• Set the module parameters in GX Works3 in accordance with the connected equipment and system. For the module
parameters, refer to the MELSEC iQ-F FX5 User's Manual (Ethernet Communication).
FX5U CPU, FX5UC CPU
GX Works3 Version 1.030G or later
i_bEN
o_bENO
o_bOK
o_bErr
o_uErrId
i_bEN
o_bENO
o_bOK
o_bErr
o_uErrId
0H
0H
Error
0H
code
2.5 M+FX5UCPU-EN_SLMP_DeviceRead_IP
2 FX5 ETHERNET FB
17
2

Advertisement

Table of Contents
loading

Table of Contents