
Chapter 2 | SMART I/O User’s Manual | |||
|
|
|
|
|
|
|
|
|
|
O_START_COUNTER : This call starts the counter; it’s syntax is as follows :
<RetVar> := OPERATE(<iovar>, O_START_COUNTER, <null>);
where the <iovar> is typically t_in.
O_READ_COUNTER : With this call the contents of the counter register may be read. When this call is issued, the counter is stopped, it’s register read and then restarted. If a
<RetVar> := OPERATE(<iovar>, O_READ_COUNTER, <null>);
where the <iovar> is typically t_in.
O_STOP_COUNTER : This call stops the counter counting up or down and
<RetVar> := OPERATE(<iovar>, O_STOP_COUNTER, <null>);
where the <iovar> is typically t_in.
The counter/timer is configured automatically as MODE10 (refer to the ‘C’ Programming section) and from within ISaGRAF there is no ability to alter this configuration.
2
|
|
|
|
March 12, 1996 | ©1996 PEP Modular Computers GmbH | Page 2 - 35 | |
|
|