Fnc141 - Wtob / Word To Byte - Mitsubishi FX3U Series Programming Manual

Hide thumbs Also See for FX3U Series:
Table of Contents

Advertisement

FX
/FX
Series Programmable Controllers
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
19.2
FNC141 – WTOB / WORD to BYTE
Outline
This instruction separates consecutive 16-bit data in units of byte (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
from
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, "
is resulted.
2) "H00" is stored in the high-order byte (8 bits) of each device (
data.
Mnemonic
16-bit Instruction
7 steps WTOB
WTOBP
Head device number storing data to be separated in unit of byte
Head device number storing result of separation in unit of byte
Number of byte data to be separated (0 ≤ n)
Digit Specification
and later is separated into "n" bytes, and stored in "n" devices starting
S
FNC141
S
D
WTOBP
b8 b7
b0
Low-order byte
Low-order byte
Low-order byte
+3"
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
"H00" is stored.
and later) storing the separated byte
D
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
15
Pointer
P
16
17
18
19
20
511

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3uc seriesMelsec-f

Table of Contents