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 />

Exercise Chapter3<br />

General questions “Resources”<br />

Question1:<br />

What’s the difference between a counter and a timer once you load them with a<br />

value?<br />

Question2:<br />

What happens if you decrement a counter which contains the value 0 ?<br />

Question3:<br />

What went wrong when you build your program and you’ll get the error message:<br />

Fatal Error 368: Auto-allocation overflow for type: R<br />

Solution2:<br />

Timers are decreased by the system every X milliseconds. (Time can be set in<br />

the Softwaresettings).<br />

Counters are decreased/increased in the user program using the DEC / INC<br />

instruction.<br />

Solution:<br />

Nothing. Timer/Counters only contain positive values. Therefore the counter<br />

value will stay unchanged at 0.<br />

Solution:<br />

The dynamic range for registers in the “Software” settings is too small.<br />

There are too little<br />

addresses in the dynamic<br />

space. Put the<br />

first address to 3000.<br />

In such a situation the<br />

field called “Free”<br />

will be at 0.<br />

© Saia-Burgess Controls Ltd. Page 3E-1

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

Saved successfully!

Ooh no, something went wrong!