Fnc141 - Wtob / Word To Byte - Mitsubishi Electric FX3G SERIES Programming Manual

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
19.2
FNC141 – WTOB / WORD to BYTE
Outline
This instruction separates consecutive 16-bit data in byte units (8 bits).
1. Instruction format
FNC 141
WTOB
P
2. Set data
Operand type
S
D
n
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
S
D
n
Explanation of function and operation
1. 16-bit operation (WTOB and WTOBP)
1)
"n/2" 16-bit data stored in
as shown below.
D
Command
input
b15
+0
High-order byte
S
+1
High-order byte
*
High-order byte
+n/2
* When "n" is an odd number, "n/2" is
rounded up.
When "n" is "5", for example, "
+3" is used.
2)
"00H" is stored in the high-order byte (8 bits) of each device (
Mnemonic
16-bit Instruction
7 steps WTOB
WTOBP
Head device number storing data to be separated in byte units
Head device number storing result of separation in byte units
Number of byte data to be separated (0 ≤ n)
Digit Specification
S
and later is separated into "n" bytes, and stored in "n" devices starting from
FNC141
S
D
WTOBP
b8 b7
b0
Low-order byte
Low-order byte
Low-order byte
S
19 Data Operation 2 – FNC140 to FNC149
19.2 FNC141 – WTOB / WORD to BYTE
Operation Condition
32-bit Instruction
Continuous
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Index
Unit
V
Z Modify K H
n
b15
+0
00H
D
+1
00H
+2
00H
+3
00H
+n-2
00H
+n-1
00H
"00H" is stored.
D
and later) storing the separated byte data.
Mnemonic
Operation Condition
Data type
16-bit binary
Others
Con-
Real
Charac-
stant
Number
ter String
E
" "
b8 b7
b0
Low-order byte
High-order byte
Low-order byte
"n" bytes
High-order byte
Low-order byte
High-order byte
11
12
13
14
Pointer
15
P
16
17
18
19
20
535

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents