Rockwell Automation Allen-Bradley PLC-5 Manual De Referencia Del Conjunto De Instrucciones Generales página 10

Controladores programables
Ocultar thumbs Ver también para Allen-Bradley PLC-5:
Tabla de contenido

Publicidad

toc-2
Tabla de contenido
Instrucciones de comparación
CMP, EQU, GEQ, GRT, LEQ, LES, LIM,
MEQ, NEQ
Instrucciones de cálculo
CPT, ACS, ADD, ASN, ATN, AVE,
CLR, COS, DIV, LN, LOG, MUL, NEG,
SIN, SRT, SQR, STD, SUB, TAN, XPY
1785-6.1ES Noviembre de 1998
Capítulo 3
Compare (CMP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2
Cómo introducir una expresión CMP . . . . . . . . . . . . . . . . . 3-2
Equal to (EQU) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5
Greater than or Equal to (GEQ). . . . . . . . . . . . . . . . . . . . . . . . 3-5
Greater than (GRT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6
Less than or Equal to (LEQ) . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6
Less than (LES) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7
Limit Test (LIM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7
Introducción de parámetros. . . . . . . . . . . . . . . . . . . . . . . . 3-7
Mask Compare Equal to (MEQ) . . . . . . . . . . . . . . . . . . . . . . . 3-9
Introducción de parámetros. . . . . . . . . . . . . . . . . . . . . . . . 3-9
Not Equal to (NEQ). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-10
Capítulo 4
Cómo usar las instrucciones de cálculo. . . . . . . . . . . . . . . . . 4-1
tipos de datos y la instrucción de cálculo . . . . . . . . . . . . . . . 4-3
punto flotante (coma flotante) . . . . . . . . . . . . . . . . . . . . . . 4-4
Compute (CPT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5
Cómo introducir la expresión CPT . . . . . . . . . . . . . . . . . . . 4-5
Cómo determinar el orden de operación . . . . . . . . . . . . . . 4-8
Ejemplos de expresiones . . . . . . . . . . . . . . . . . . . . . . . . . . 4-8
Cómo introducir el destino. . . . . . . . . . . . . . . . . . . . . . . . . 4-9
Cómo usar las funciones CPT . . . . . . . . . . . . . . . . . . . . . . 4-9
Arc Cosine (ACS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-11
Addition (ADD). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-12
Arc Sine (ASN). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-13
Arc Tangent (ATN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-14
Average File (AVE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-15
Introducción de parámetros. . . . . . . . . . . . . . . . . . . . . . . 4-15
Cómo usar los bits de estado. . . . . . . . . . . . . . . . . . . . . . 4-16
Clear (CLR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-17
Cosine (COS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-18
Divide (DIV) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-19
Natural Log (LN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-20
Log to the Base 10 (LOG). . . . . . . . . . . . . . . . . . . . . . . . . . . 4-21
Multiply (MUL). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-22
Negate (NEG). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-23
Sine (SIN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-24
Square Root (SQR). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-25

Hide quick links:

Publicidad

Tabla de contenido
loading

Tabla de contenido