VA Motion Controller Programming Manual
193
value
INT
is
032,767
, and the
output is increased by
-1;
Input
value
BCD
code
16#00000000~16#9
9999999
, output value
DINT
0~99999999
.
usage (take
D_BCD_TO_SINT
as an example)
LD, FBD programming language
OUT:=D_ BCD_TO_ SINT ( IN )
Note :
IL, ST
language programming needs to insert variables
IN
and
OUT
or use constants in
the current
POU
variable worksheet
Funtion and Action examples
16#00000044 turns into a short integer
When the contact C057 is ON time ;
execute the instruction ; address
as V060 in the 16 hexadecimal into
numbers short integer , stored in the V061 in ;
Execution result: 16 #0000127 converted
to short integer 127
10.3.4 Conversion of BCD type data
Conversion of CD type data
The BCD type data conversion instruction BCD_TO _DINT
is used to convert a BCD ( binary coded decimal number ) input
value into an output value of ADINT data type. This instruction
is the same as D_BCD_TO_DINT .
See D_BCD_TO_DINT for details .
10.3.5 Conversion of BOOL type data