Bit Segment Function - Mitsubishi Electric NZ2GF2S-60IOLD8 User Manual

Cc-link ie field network remote io-link module
Table of Contents

Advertisement

Bit segment function

This function segments input process data using the bit count set for each channel.
The bit segment function can be used to segment continuous input process data into data units.
This function eliminates the necessity to perform tasks such as using a program to extract specified bits.
Description
This function segments input process data into bits.
Number of Slicings is the number of times input process data is to be segmented. If not using the bit segment function, select
0.
Set the bit length and bit offset of the input process data to be segmented in Bit length and Bit offset. Input process data is
segmented from the specified bit offset position for the specified number of bits.
The bit segment function assigns the input process data from the IO-Link device to CH Input process data
(RWr4 to RWr83) in the order set in "Bit Slicing Setting" (starting from No.1).
0 is stored for CH Input process data (RWr4 to RWr83) that do not support the value set in "Bit Slicing
Setting".
Ex.
For bit segmenting of alarm, parameter, and measured value of the input process data from the IO-Link device connected to
CH1
Set the bit offset with the most significant bit (b7) of byte0 as offset 0.
• Alarm: Data of Bit offset = 3, Bit length = 1
• Parameter: Data of Bit offset = 4, Bit length = 4 bits
• Measured value: Data of Bit offset = 8, Bit length = 16 bits
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
byte0
b7 b6 b5 b4 b3 b2 b1 b0
Parameter
0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1
Set "Bit Slicing Setting" of Individual Module Parameters CH1 as follows.
• "Number of Slicings": 3
• "No.1Bit Offset": 3, "No.1Bit Length": 1
• "No.2Bit Offset": 4, "No.2Bit Length": 4
• "No.3Bit Offset": 8, "No.3Bit Length": 16
7 FUNCTIONS
78
7.1 IO-Link Master Functions
byte1
b7 b6 b5 b4 b3 b2 b1 b0
b7 b6 b5 b4 b3 b2 b1 b0
Measured value
Measured value
MSB
(1) Bit offset
(1)
(2) Structure of IO-Link device input process data
byte2
(3) Input process data value
(2)
LSB
(3)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents