User manual
Toolbox 32 User Manual 1.47d www.cse-semaphore.com/mykingfisher
Page
248
DI-5
The DI-5 counts pulses on the first four channels. Note: pulses can also be counted using any other digital
input (eg. DI-5 Chs 5-16, DI-1, IO-2, IO-3, IO-4) using ladder logic. Please see the topic Example - Counting
Pulses and Starts for more information.
Internal
Register
Register
(ss = slot 1-64)
Raw
Scale
Read
Write
Description
1 #DIss.1 to 16 N/A Read Digital input channels 1 to 16
2 #AIss.2 0-65535
R/W Digital Input 1 Total Pulses. Write to #AOss.2 to clear.
3 #AIss.3 0-65535
R/W Digital Input 2 Total Pulses. Write to #AOss.3 to clear.
4 #AIss.4 0-65535
R/W Digital Input 3 Total Pulses. Write to #AOss.4 to clear.
5 #AIss.5 0-65535
R/W Digital Input 4 Total Pulses. Write to #AOss.5 to clear.
6 #AIss.6 0-65535
R/W Digital Input 1 Pulse Rate (Hz). Automatically cleared.
7 #AIss.7 0-65535
R/W Digital Input 2 Pulse Rate (Hz). Automatically cleared.
8 #AIss.8 0-255 R/W Low Byte: DI 3 Pulse Rate * (Hz). Automatically cleared.
High Byte: DI 4 Pulse Rate * (Hz)
Hardware Overview
Examples
#DI3.5 Digital module in slot 3, digital input 5 status
#AI3.2 Digital module in slot 3, digital input 1 total pulses (read this address to obtain the total)
#AO3.2 Digital module in slot 3, digital input 1 total pulses (write to this address to clear the total)
#AI3.6 Digital module in slot 3, digital input 1 pulse rate
* If the maximum pulse rate is exceeded (>255 Hz), each byte will contain the lowest 8 bits of the actual pulse rate. Results are
unpredictable at pulse rates greater that 1 kHz.