EasyManua.ls Logo

Inovance H3U Series - Page 210

Inovance H3U Series
737 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
209
4
4 Instructions 4.5.5 Other Data Processing
Function
The higher and lower bytes of the variable in S are exchanged.
In 16-bit operation, the higher eight bits and the lower eight bits are exchanged.
In 32-bit operation, the higher eight bits and the lower eight bits of two registers are exchanged.
The instruction of the pulse execution type is generally used. If the continuous execution type is used,
calculation is performed on every program scan.
Example:
ǒSWAPP D20 Ǔ
X2
S
H L
bit0
bit15bit8bit7
D20
ǒDSWAPP D20 Ǔ
X2
S
H L
bit0
bit15bit8bit7
D20
H L
bit0
bit15bit8bit7
D21
In the figure on the left, the values of higher and lower
eight bits in D20 are exchanged.
In the figure on the right, the values of higher and lower
eight bits in D20 are exchanged, and the values of higher
and lower eight bits in D21 are exchanged.
BON: ON bit check
Overview
When driving conditions are met, the BON instruction checks the status of the Kth bit of the binary data in S.
The result is used for D status control.
BON S D n
ON bit check Applicable model:
H3U
S
Source
data
Data, or address of the word element that stores the
data
16-bit instruction
(7 steps)
BON: Continuous
execution
BONP: Pulse
execution
32-bit instruction
(13 steps)
DBON: Continuous
execution
DBONP: Pulse
execution
D
Controlled
bit
Controlled bit element
n
Designated
bit
Designated bit in S; value range: 1 ≤ n ≤ 15 (16-bit
operation); 1 ≤ n ≤ 31 (32-bit operation)
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
D X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
n X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals