EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Performing a 16-Bit Test

Mitsubishi Electric MELSEC iQ-R Series
2110 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...
344
6 BASIC INSTRUCTIONS
6.4 Bit Processing Instructions
Performing a 16-bit test
TEST(P)
These instructions extract the 'n'th bit in the specified word device.
Execution condition
Setting data
Description, range, data type
Applicable devices
Ladder ST
ENO:=TEST(EN,s1,s2,d);
ENO:=TESTP(EN,s1,s2,d);
FBD/LD
Instruction Execution condition
TEST
TESTP
Operand Description Range Data type Data type (label)
(s1) Device where the extract target bit data is stored 16-bit signed binary ANY16
(s2) Extract target bit position 0 to 15 16-bit unsigned binary ANY16
(d) Device for storing the extracted bit data Bit ANY_BOOL
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB,
FX, FY
J\ T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K, H E $
(s1)  
(s2)  
(d)  
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)
(s1) (s2) (d)
EN ENO
ds1
s2

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals