Keyence Visual KV Series Manual de usuario Pagina 352

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 392
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 351
8.2 Details
3-328
8
Chapter 8 Programming Examples
0001
#09999
C000
2002
0500
#00999
00000 to
00999
LDA
C000
CMP
0501
0512
2011
#01999
CMP
2011
0500
#02999
CMP
2011
0500 0501
0000
01000 to
01999
02000 to
02999
0004
Low-order
4 digits
High-order
4 digits
STATBCDLDA
C000 8500
STATBCDLDA
C001 8600
Large capacity counter
Accumulates 1 count to C001 for every 10000 counts by C000. This example can
count up to 655350000.
Count input relay 0000
Reset relay 0001
Ladder diagram Coding
Multi-level UP/DOWN counter
UP/DOWN counter which allows the count setting value up to 99,990,000.
UP input relay: 0001
DOWN input relay: 0002
Reset input relay: 0003
The example below outputs the high-order 4 digits of 8-digit BCD to UDC001 and
the low-order 4 digits of 8-digit BCD to UDC000.
Ladder diagram Coding
Counter multi-level setting
Outputs in 3 different levels according to the counter current value.
00000 to 00999 —> 0500 turns ON.
01000 to 01999 —> 0501 turns ON.
02000 to 02999 —> 0502 turns ON.
Ladder diagram
#10000
C000
C000
0001 C000
0001
#65535
C001
1000
1000
0000
Line No. Instruction Operand
0000 LDB 0001
0001 ANB C000
0002 C
000 #10000 0000
0003 LD C000
0004 OUT 1000
0005 LDB 0001
0006 C
001 #65535 1000
Line No. Instruction Operand
0000 LD 0001
0001 LD 0002
0002 LD 0003
0003 UDC 000 #09999
0004 LD C000
0005 AND 0001
0006 LD C000
0007 AND 0002
0008 LD 0003
0009 UDC 001 #09999
0001
#09999
UP
UDC000
0002
0003
C000
C000
0003
0002
0001
DW
RES
#09999
UP
UDC001
DW
RES
BCD:
Low-order
4 digits
BCD:
High-order
4 digits
KVNKA Chap 08.p65 08.3.11, 0:12 PM328
Vista de pagina 351
1 2 ... 347 348 349 350 351 352 353 354 355 356 357 ... 391 392

Comentarios a estos manuales

Sin comentarios