07.03.2014 Views

Introduction.

Introduction.

Introduction.

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Workshop PG5<br />

Resources<br />

3.1.3 Interrupt<br />

inputs<br />

Some of our PCD’s have two inputs called INB1 and INB2. Each time you<br />

have a rising edge on one of these inputs, the normal program cycle will be<br />

interrupted and the PCD will execute a special program block called XOB20 or<br />

XOB25 ( XOB20 for INB1 and XOB25 for INB2 ). These interrupt inputs are<br />

on the following PDC's: PCD1.M120/130, PCD2.M120 and PCD6.M3.<br />

These inputs are capable of a frequency up to 1000 times per second.<br />

Instruction list program:<br />

FUPLA program:<br />

COB 0 ; Main program<br />

0<br />

ECOB<br />

XOB 20 ; interrupt INB1<br />

INC R 2 ; increment the register<br />

; R 2<br />

EXOB<br />

( FBox: Integer, Addition )<br />

Normal input cards have special filters on their inputs. These filters protect the<br />

pin from noise with frequencies higher than 50Hz. Therefore you might have a<br />

situation where you can't react on a signal because it is either to short, or<br />

repeated to fast. In this situation, you can use these inputs as an interesting<br />

alternative to expensive special counter cards like the PCD2.H1XX or<br />

PCD4.H1XX. ( these cards count at speeds between 10 and 160 kHz )<br />

© Saia-Burgess Controls Ltd. Page 3-3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!