28.08.2013 Views

CNC 8037 T - Manual de programación - Fagor Automation

CNC 8037 T - Manual de programación - Fagor Automation

CNC 8037 T - Manual de programación - Fagor Automation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

11.<br />

PROGRAMACIÓN EN LENGUAJE DE ALTO NIVEL<br />

Operadores<br />

<strong>CNC</strong> <strong>8037</strong><br />

MODELO ·T·<br />

SOFT: V01.4X<br />

·228·<br />

Otras funciones.<br />

<strong>Manual</strong> <strong>de</strong> <strong>programación</strong><br />

ABS valor absoluto. P1=ABS -8 P1=8<br />

LOG logaritmo <strong>de</strong>cimal. P2=LOG 100 P2=2<br />

SQRT raíz cuadrada. P3=SQRT 16 P3=4<br />

ROUND redon<strong>de</strong>o a número entero. P4=ROUND 5.83 P4=6<br />

FIX parte entera. P5=FIX 5.423 P5=5<br />

FUP si número entero toma parte entera.<br />

si no, toma parte entera más uno.<br />

P6=FUP 7<br />

P6=FUP 5.423<br />

P6=7<br />

P6=6<br />

BCD convierte el número dado a BCD. P7=BCD 234 P7=564<br />

0010 0011 0100<br />

BIN convierte el número dado a binario. P8=BIN $AB P8=171<br />

1010 1011<br />

Las conversiones a binario y a BCD se realizarán en 32 bits, pudiéndose representar el número<br />

156 en los siguientes formatos:<br />

Decimal 156<br />

Hexa<strong>de</strong>cimal 9C<br />

Binario 0000 0000 0000 0000 0000 0000 1001 1100<br />

BCD 0000 0000 0000 0000 0000 0001 0101 0110

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!