Download Print this page

Bit Processing Instructions - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

7.4

Bit Processing Instructions

Setting a bit in the word device
BSET(P)
These instructions set (to 1) (n)th bit of word device specified by (d).
Ladder diagram
(d)
(n)
FBD/LD
EN
ENO
n
d
Setting data
■Descriptions, ranges, and data types
Operand
Description
(d)
Head device for which bit is to be set
(n)
Number of bit(s) to be set
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(d)
(n)
Processing details
• These instructions set (to 1) (n)th bit of word device specified by (d).
• If (n) exceeds 15, the processing will be done based on the lower 4 bits of (n).
BSETP
b15
D10 1 1 0
b15
D10 1 1 0
Operation error
There is no operation error.
Word
T, ST, C, D, W,
U\G
SD, SW, R
D10
K6
∙∙∙
b6
∙∙∙
b1
b0
0
1
0 1 1 0
0
1
1 1 0 1 1
∙∙∙
b6
∙∙∙
b1
b0
0
1
0 1 1 0
1
1
1 1 0 1 1
1
Structured text
ENO:=BSET(EN,n,d);
ENO:=BSETP(EN,n,d);
Range
Data type
16-bit signed binary
0 to 15
16-bit unsigned binary
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
Data type (label)
ANY16
ANY16
BOOL
BOOL
Constant
Others
K, H
E
$
7 BASIC INSTRUCTIONS
7.4 Bit Processing Instructions
7
273

Hide quick links:

Advertisement

loading