User's Manual

Table Of Contents
1 2 3 4 5 6
7
8 9
Configuring Digital I/O
58
IDentity 5200 User Guide
scan_trigger.py
This routine monitors the state of the digital input pin specified as the input
parameter. If the state of the pin is low, the operating mode is set to standby. If
the I/O pin state changes to high, the operating mode is set to polled.
Inputs: <pin> – (optional) Input pin number (1–4). Default is digital in 1.
<trigger logic level> –(optional) 0 or 1. Default is trigger on 1.
Examples:
scan_trigger.py Monitors digital input pin 1
scan_trigger.py 1 Monitors digital input pin 1
scan_trigger.py 4 Monitors digital input pin 4
scan_trigger.py 3 0 Monitors digital input pin 3, trigger on 0
scan_trigger_timer.py
This routine monitors the I/O pin. When the pen goes high, the timer is started
and the operating mode is set to polled. While the timer is running, I/O pin state
changes are ignored. When the timer expires, the operating mode is set to
standby. The minimum value for the timer is 10 milliseconds (ms).
Inputs: <pin> – (optional) Output pin number (1–4). Default is output 1.
<time> – (optional) Time, in ms for timer to run. Default is 1000 ms.
<trigger logic level> –(optional) 0 or 1. Default is trigger on 1.
Examples:
scan_trigger_timer.py Monitors input 1, timer 1000 ms,
trigger on 1
scan_trigger_timer.py 2 Monitors input 2, timer 1000 ms,
trigger on 1
scan_trigger_timer.py 4 2000 Monitors input 4, timer 2000 ms,
trigger on 1
scan_trigger_timer.py 3 4000 0 Monitors digital input 3, timer 4000 ms,
trigger on 0