Download Print this page

Connecting Data In Byte Units - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Connecting data in byte units

BTOW(P)
These instructions link the lower-order 8 bits of the 16-bit binary data of (n) number of bytes stored in the device numbers
starting from the one specified by (s) onwards into word units, and store the linked data in the device numbers starting from
the one specified by (d) onwards.
Ladder diagram
(s)
(d)
(n)
FBD/LD
EN
ENO
s
d
n
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Head device for storing the data to be linked in byte units
(d)
Head device storing data acquired by combination in byte
units
(n)
Number of byte data to be linked
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s)
(d)
(n)
Processing details
• These instructions link the lower-order 8 bits of the 16-bit binary data of (n) number of bytes stored in the device numbers
starting from the one specified by (s) onwards, and store the linked data in the device numbers starting from the one
specified by (d) onwards.
• The higher-order 8 bits of the data of (n) words stored in device numbers starting from the one specified by (s) are ignored.
If (n) is an odd number, 0 is stored in the higher-order 8 bits of the device for storing the data of the (n)th byte.
b15
(s)
(s)+1
(s)+2
(n)
(s)+3
(s)+(n-1)
(1)
: th byte data
(1): The upper byte data are ignored.
*1 Values after the decimal point are rounded up.
Word
T, ST, C, D, W,
U\G
SD, SW, R
b8
b7
b0
1
2
3
4
n
Structured text
ENO:=BTOW(EN,s,n,d);
ENO:=BTOWP(EN,s,n,d);
Range
Data type
16-bit signed binary
16-bit signed binary
0 to 65535
16-bit unsigned binary
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
b15
(d)
2
(d)+1
4
n
(d)+(
-1)
*1
n
2
Data type (label)
ANY16
ANY16
ANY16
BOOL
BOOL
Constant
Others
K, H
E
$
b8
b7
b0
1
3
n-1
7 BASIC INSTRUCTIONS
7.5 Data Conversion Instructions
7
343

Hide quick links:

Advertisement

loading