Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
19 Applied Instructions (Data Operation 2)
19.4 UNI / 4-bit Linking of Word Data
506
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
19.4 UNI / 4-bit Linking of Word Data
Outline
This instruction couples lower 4 bits of continuous 16-bit data.
1. Format and operation, execution form
2. Set data
3. Applicable devices
Function and operation explanation
1. 16-bit operation (UNI/UNIP)
1) 16-bit data coupling lower 4 bits of 16-bit data of n points from the device specified by is stored in
the device specified by as shown below.
FX3U(C) FX3G(C) FX3S FX2N(C) FX1N(C) FX1S FXU/FX2C FX0N FX0(S)
Instruction
name
Operation
Execution
form
Expression in each language
Structured ladder/FBD ST
UNI 16 bits Continuous UNI(EN,s,n,d);
UNIP 16 bits Pulse UNIP(EN,s,n,d);
Variable Description Data type
Input
variable
EN Execution condition Bit
Head device for storing the data to be coupled. ANY16
Number of couples [0 to 4](When "n" is "0", UNI instruction is not executed.) ANY16
Output
variable
ENO Execution state Bit
Head device for storing the coupled data. ANY16
Operand
type
Bit Devices Word Devices Others
System user Digit designation
System
user
Special
unit
Index
Cons
tant
Real
Number
Character
String
Pointer
XYMTCS
D.b
KnX KnY KnM KnS T C D R
U\G
V Z Modifier K H E
""
P
zzzz z
zz zz
zzzz z
UNI
EN
s
n
ENO
d
UNIP
EN
s
n
ENO
d
Lower 4 bits
Lower 4 bits
Lower 4 bits
Lower 4 bits
b15 b4 b3 b0
+0
1
2
Ignored.
n points
3
Data to be coupled
b15 b12b11 b8 b7 b4 b3 b0
d
s
UNIP
EN
s
n
ENO
d
Command
input
Head device of data to be coupled Head device for storing the coupled data.
Number of couples