Programming manual
CNC 8055
CNC 8055i
HIGH-LEVEL LANGUAGE PROGRAMMING
13.
·M· & ·EN· MODELS
SOFT: V02.2X
·391·
Operators
Other functions.
Conversions to binary and BCD are made in 32 bits, it being possible to represent the number 156
in the following formats:
Decimal 156
Hexadecimal 9C
Binary 0000 0000 0000 0000 0000 0000 1001 1100
BCD 0000 0000 0000 0000 0000 0001 0101 0110
ABS absolute value. P1=ABS -8 P1=8
LOG decimal logarithm. P2=LOG 100 P2=2
SQRT square root. P3=SQRT 16 P3=4
ROUND rounding up an integer number. P4=ROUND 5.83 P4=6
FIX Integer. P5=FIX 5.423 P5=5
FUP if integer takes integer.
if not, takes entire part + 1.
P6=FUP 7
P6=FUP 5,423
P6=7
P6=6
BCD converts given number to BCD. P7=BCD 234 P7=564
0010 0011 0100
BIN converts given number to binary. P8=BIN $AB P8=171
1010 1011