Data Dissociation And Linking In Byte Units (Wtob(P),Btow(P)) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

7.5.9
Data dissociation and linking in byte units
(WTOB(P),BTOW(P))
WTOB(P),BTOW(P)
WTOB, BTOW
WTOBP, BTOWP
Setting
Data
S
D
n
Function
WTOB
(1) Dissociates n-bytes of the 16-bit data stored into the area starting from the device number
designated by
b15
S
Upper byte
Upper byte
S
+1
n
-1) *1
+(
S
Upper byte
2
*1: Fractions that follow the decimal
point are rounded up.
For example, if n
to
D
b15
b8b7
S
12
H
S
+1
56
H
FE
+2
H
S
Ignored when n=5
Command
Command
: Head number of the devices where data to be dissociated/linked in byte units is stored (BIN 16 bits)
S
: Head number of the devices where the result of dissociated/linking in byte units will be stored (BIN 16 bits)
D
n
: Number of byte data to be dissociated/linked (BIN 16 bits)
Internal Devices
R, ZR
Bit
Word
––
––
, and stores them following the device designated by
S
b8b7
b0
Lower byte
Lower byte
Lower byte
5, data through the lower 8 bits of
+4).
b0
39
H
78
H
DC
H
High
Basic
performance
indicates an instruction symbol of WTOB/BTOW.
P
J
\
U
\G
Bit
Word
––
––
b15
00
D
H
D
+1
00
H
00
D
+2
H
00
D
+3
H
D
+(n-2)
00
H
+(n-1)
D
00
H
to (
S
S
b15
b8 b7
D
00
H
D
00
+1
H
00
+2
D
H
00
+3
D
H
00
D
+4
H
WTOB(P),BTOW(P)
Process
Redundant Universal
LCPU
n
S
D
n
S
D
Constants
Zn
Other
K, H
––
––
––
.
D
b8 b7
b0
Data of lower byte
Data of upper byte
Data of lower byte
n bytes
Data of upper byte
Data of lower byte
Data of upper byte
+2) would be stored from (
b0
39
H
12
H
When n=5
78
H
bytes
56
H
DC
H
7-85
1
2
3
4
6
6
7
8
D

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents