Mitsubishi Electric MELSEC iQ-F Reference page 7

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

Advertisement

■Public label
No.
Variable name
(8)
pbi_bUseParameters
(9)
pbi_uProtocol
(10)
pbi_uOpen_System
(11)
pbi_uLocal_Port_No
(12)
pbi_uTarget_Port_No
(13)
pbi_u2IP_Address
*1 If a value out of the effective range is set, the same settings as those for 0 are used.
*2 If a value out of the effective range is set, 192.168.1.1 is used as the IP address of target device.
FB details
Item
Description
Available device
Target CPU
Engineering tool
Language
Ladder diagram
Number of basic steps
161 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
• Turning on i_bEN (execution command) opens a connection for data communication with the target device.
• If an error occurs, o_bErr (error completion) is turned on, and the error code is stored in o_uErrId (error code). Refer to
Page 6 Error code for details on the error codes.
FB compilation method
Macro type
FB operation
Pulsed execution (multiple scan execution type)
Name
Data type
Parameter used
Bit
Protocol
Word [Unsigned]/Bit
String [16-bit]
Open method
Word [Unsigned]/Bit
String [16-bit]
Own node port
Word [Unsigned]/Bit
number
String [16-bit]
Destination port
Word [Unsigned]/Bit
number
String [16-bit]
IP address of target
Word [Unsigned]/Bit
device
String [16-bit] (0..1)
Range
Description
ON, OFF
Specify whether to use the parameter values set by the
engineering tool or the following operation parameter
values when processing for opening a connection.
• OFF: Performs open processing according to the
target device configuration setting made by the
engineering tool. (The following operation
parameters need not be set. Any settings are ignored
if made.)
• ON: Performs open processing according to the
following operation parameters.
*1
0, 1
Select the protocol to be used for the connection to be
opened.
• 0: TCP/IP
• 1: UDP/IP
*1
0 to 2
Select the connection open method.
• 0: Active open or UDP/IP
• 1: Unpassive open
• 2: Fullpassive open
1 to 5548, 5570
Specify the port number of the own node.
to 65534
Own node port numbers 1 to 1023 are generally
reserved port numbers, and 61440 to 65534 are used
by other communication functions. Therefore, port
numbers 1024 to 5548 and 5570 to 61439 should be
used.
1 to 65534
Specify the destination port number.
0.0.0.1 to
Specify the IP address of target device.
223.255.255.25
*2
4
1st word
2nd word
FX5U CPU, FX5UC CPU
GX Works3 Version 1.030G or later
2.1 M+FX5UCPU-EN_ConnectionOpen
b15
b8
b7
b0
Third octet
Fourth octet
First octet
Second octet
2 FX5 ETHERNET FB
2
5

Advertisement

Table of Contents
loading

Table of Contents