Yaskawa Ladder Works Programming Manual Manual de usuario Pagina 218

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 220
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 217
A-6
3. Application to ladder program
The use of Expression in the ladder program is divided into three kinds of the following.
Conditional expression of IF instruction
Conditional expression of WHILE instruction
Operational expression of EXPRESSION instruction
The use example is explained as follows.
Conditional expression of IF instruction
The Expression is described in the conditional expression description area of the IF
instruction and the ELSE instruction. However, only Expression which outputs the result
of the bool type can be described. Therefore, the description of the Expression which
includes the substitution operator is not recognized.
ex
MB000001 == true OK
MW00002 < 100 OK
MW00003 != MW00004 OK
MB000005 = false NG
MW00007 = MW00010 NG
Conditional expression of WHILE instruction
The Expression is described in the conditional expression description area of the WHILE
instruction. However, only Expression which outputs the result of the bool type can be
described. Therefore, the description of the Expression which includes the substitution
operator is not recognized.
exRefer to the example of .
Operational expression of EXPRESSION instruction
The Expression is described in the conditional expression description area of the
EXPRESSION instruction. The operational expression can be described according to the
description rule of Expression. However, Expression which outputs the result of the
bool type cannot be described.
ex)
MB000010 = MB000001 && MB000005; OK
MB000011 = MB000010 == true; OK
MW00000 = (MW00001 + MW00005) / MW00004; OK
Vista de pagina 217
1 2 ... 213 214 215 216 217 218 219 220

Comentarios a estos manuales

Sin comentarios