Keyence Visual KV Series Manual de usuario Pagina 178

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 392
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 177
2.4 Instruction Details
3-154
2
Chapter 2 Instructions
Application of SUB instruction
Comparing absolute values
Compares the DM0000 value to the DM0001 value and turns ON 0500 when the
difference between the two absolute values is greater than 5.
Coding
2002 20092009
DM0000
LDA
DM0001
SUB
#0005
CMP
1001
1000
2009
DM0001
LDA
DM0000
SUB
1000
2009
#00005
CMP
1001
0500
Line No. Instruction Operand
0000 LD 2002
0001 LDA DM0000
0002 CON
0003 SUB DM0001
0004 MPS
0005 ANB 2009
0006 CMP #00005
0007 CON
0008 ANB 2009
0009 OUT 1000
0010 MPP
0011 AND 2009
0012 LDA DM0001
0013 CON
0014 SUB DM0000
0015 CON
0016 CMP #00005
0017 CON
0018 ANB 2009
0019 OUT 1001
0020 LD 1000
0021 OR 1001
0022 OUT 0500
SUB / @SUB
KVNKA Chap 02_4cP.p65 08.3.11, 0:02 PM154
Vista de pagina 177
1 2 ... 173 174 175 176 177 178 179 180 181 182 183 ... 391 392

Comentarios a estos manuales

Sin comentarios