Mitsubishi Electric MELSEC iQ-F Reference page 17

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

Advertisement

No.
Variable name
Name
(5)
i_uDeviceCode
Device code
(6)
i_u2DeviceNo
Head device No.
(7)
i_uDevicePoints
Number of device
points
(8)
i_uChannel
Own station channel
(9)
i_uTarget_Port_No
Destination port
number
*1 It can be specified when the target device for reading is MELSEC iQ-R Series. It cannot be specified when the target device for reading
is MELSEC Q/L Series or MELSEC iQ-F Series.
*2 The allowable range is 1 to 3584 when the target device for reading is MELSEC iQ-F Series.
■Output label
No.
Variable name
Name
(10)
o_bENO
Execution status
(11)
o_bOK
Normal completion
(12)
o_bErr
Error completion
(13)
o_uErrId
Error code
(14)
o_uReadData
Read data storage
destination
Data type
Range
Word [Unsigned]/Bit
String [16-bit]
Word [Unsigned]/Bit
String [16-bit] (0..1)
Word [Unsigned]/Bit
1 to 960, 1 to 3972
String [16-bit]
Word [Unsigned]/Bit
String [16-bit]
Word [Unsigned]/Bit
1 to 65534
String [16-bit]
Data type
Default value
Bit
OFF
Bit
OFF
Bit
OFF
Word [Unsigned]/Bit
0
String [16-bit]
Word [Unsigned]/Bit
0
String [16-bit]
Description
Specify the device code of the device to be read in
binary code.
• When the 1st bit of the subcommand is 0: 2 digits
• When the 1st bit of the subcommand is 1: 4 digits
Specify the start device number of the device to be read
in binary code.
• When the 1st bit of the subcommand is 0: 6 digits
• When the 1st bit of the subcommand is 1: 8 digits
Specify the number of device points of the device to be
read in binary code.
• When the 1st bit of the subcommand is 1: 0 to 960
digits
• When the 1st bit of the subcommand is 1: 1 to 3972
*2
digits
Specify the channel to be used by own station.
Specify the UDP port number of target device.
Description
ON: The execution command is ON.
OFF: The execution command is OFF.
Device reading has been completed normally when this
output is on.
When this label is ON, it indicates that an error has
occurred in the FB.
Stores the error code that occurred in the FB.
Specify the start device number of the device for storing
the read data.
• When the 0th bit of the subcommand is 0, the device
data is read in units of words.
Example: When reading the bit device M100 to M115
(one word) in units of words
1st word
b15
b8 b7
1
2
3
0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0
M115
Example: When reading the word device D0 to D2 in
units of words
1st word
b15
b8
b7
1
2
3
D0
2nd word
b15
b8
b7
0
0
0
D1
3rd word
b15
b8
b7
1
D
E
D2
2 FX5 ETHERNET FB
2.5 M+FX5UCPU-EN_SLMP_DeviceRead_IP
2
b0
4
M100
b0
4
b0
2
b0
F
15

Advertisement

Table of Contents
loading

Table of Contents