Download Print this page

Copying The Specified Bit Of Word Label - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

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

Advertisement

18.56

Copying the Specified Bit of Word Label

CPY_BIT_OF_INT(_E)
These functions copy the specified bit of the word label to the one of another word label.
Ladder diagram
[Without EN/ENO]
s
d
n1
n2
Setting data
■Descriptions, types, and data types
Argument
EN
s
n1
n2
ENO
d(CPY_BIT_OF_INT(_E))
Processing details
■Operation processing
• These function copy the value of the (n1)th bit of the word specified by (s) to the (n2)th bit of (d).
■Operation result
1.
Function without EN/ENO
The operation processing is executed. The operation output value is output from (d).
2.
Function with EN/ENO
The following table lists the execution conditions and operation results.
Execution condition
EN
TRUE (Executes operation)
FALSE (Stops operation)
*1 When FALSE is output from ENO, data output from (d) is undefined. In that case, modify a program so that the data output from (d) is
not used.
Operation error
There is no operation error.
18 TYPE CONVERSION FUNCTIONS
972
18.56 Copying the Specified Bit of Word Label
[With EN/ENO]
EN
ENO
s
d
n1
n2
Description
Execution condition (TRUE: Execution, FALSE: Stop)
Input
Bit specification of input variable (Only a constant 0 to 15 can be
specified.)
Bit specification of output variable (Only a constant 0 to 15 can be
specified.)
Output status (TRUE: Normal, FALSE: Abnormal)
Output
Operation result
ENO
TRUE
*1
FALSE
Structured text
[Without EN/ENO]
d:=CPY_BIT_OF_INT(s,n1,n2);
[With EN/ENO]
d:=CPY_BIT_OF_INT_E(EN,ENO,s,n1,n2);
Type
Input variable
Input variable
Input variable
Input variable
Output variable
Output variable
(d)
Operation output value
Indefinite value
FBD/LD
Not supported
Data type
BOOL
ANY16
INT
INT
BOOL
ANY16

Hide quick links:

Advertisement

loading