Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 81

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Bit processing instructions
■Setting/resetting a bit in the word device
Instruction symbol
Processing details
BSET
Sets the 'n'th bit in the specified word device to 1.
BSETP
(d)
b15
BRST
Resets the 'n'th bit in the specified word device to 0.
BRSTP
(d)
b15
■Performing a bit test
Instruction symbol
Processing details
TEST
Extracts the 'n'th bit in the specified word device.
TESTP
(s1)
b15
DTEST
Extracts the 'n'th bit in the specified double-word device.
DTESTP
(s1)
b31
■Batch-resetting bit devices
Instruction symbol
Processing details
BKRST
Resets the (n) points of bit devices starting from the bit device specified.
BKRSTP
(d)
Data conversion instructions
■Converting binary data to BCD 4-digit/8-digit data
Instruction symbol
Processing details
BCD
Converts the specified 16-bit binary data (0 to 9999) to BCD 4-digit data.
BCDP
(s)
DBCD
Converts the specified 32-bit binary data (0 to 99999999) to BCD 8-digit data.
DBCDP
(s)+1, (s)
bn
b0
1
bn
b0
0
(d)
···
b0
(s2)
(d)
b0
···
(s2)
(d)
ON
OFF
OFF
OFF
(n)
ON
OFF
ON
OFF
(d)
BIN
BCD
(d)+1, (d)
BIN
BCD
2 CPU MODULE INSTRUCTIONS
Reference
Page 340 BSET(P)
Page 342 BRST(P)
Reference
Page 344 TEST(P)
Page 346 DTEST(P)
Reference
Page 348 BKRST(P)
Reference
Page 378 BCD(P)
Page 380 DBCD(P)
79
2.2 Basic Instructions
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents