Keyence Visual KV Series Manual do Utilizador Página 316

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 392
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 315
6.2 High-speed Counters
KV-300
KV-10/80
3-292
6
Chapter 6 Interrupts, High-speed Counters, Positioning Control
2008
SET
2103 2104 2105 2106
RES SET SET RES
RES
2108 2109 2110 2111
CTH0
SET RES RES
RES
2107
SET
2203 2813
SET
CTH1
RES
EI
2008
2203 2813
RES SET SET
RES
CTH1
EI LDA STA
$0268 $2100 CTH0
0000001001101000
Internal
register
[0] [2] [6] [8]
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
0000001001101000
Special utility
relays 21**
Coding
Line No. Instruction Operand Line No. Instruction Operand
0000 LD 2008 0024 SET 2203
0001 EI 0025 CON
0002 CON 0026 SET 2813
0003 MPS 0027 CON
0004 SET 2103 0028 RES CTH1
0005 CON 0029 LD 0000
0006 RES 2104 0030 DIFU 1000
0007 CON 0031 CON
0008 SET 2105 0032 AND 1000
0009 CON 0033 RES 2105
0010 SET 2106 0034 LD 2002
0011 CON 0035 CTH 0 2101
0012 RES 2107 0036 CTC 0 #00050
0013 MRD 0037 CTC 1 #00020
0014 RES 2108 0038 LD 2002
0015 CON 0039 CTH 1 0500
0016 SET 2109 0040 CTC 2 #10000
0017 CON 0041 END
0018 RES 2110 0042 INT CTC2
0019 CON 0043 LD 2002
0020 RES 2111 0044 SET 2105
0021 CON 0045 RETI
0022 RES CTH0 0046 ENDH
0023 MPP
Special utility relays 2103 to 2111 can be set to turn ON or OFF using LDA and STA
instructions as well as SET and RES instructions. Example below illustrates how
one program can be made shorter using LDA and STA instructions.
• LDA $0268
When LDA $0268 is executed, the following data is input to the internal register.
Internal register
When STA 2100 is executed, the data in the internal register is assigned to 16
special utility relays starting from 2100 to 2115.
Thus, 2103, 2105, 2106, and 2109 are ON.
KVNKA Chap 06.p65 08.3.11, 0:10 PM292
Vista de página 315
1 2 ... 311 312 313 314 315 316 317 318 319 320 321 ... 391 392

Comentários a estes Manuais

Sem comentários