beautypg.com

Using digital i/o, Digital outputs, Warning – Wavetronix Click 500 (programmable controller) (CLK-500) - User Guide User Manual

Page 47

background image

46

CHAPTER 6 CLICK 500

Warning

With older versions of the Click 500 series module, it is necessary to remove pin 4
from the serial cable to prevent the device from going into Program mode. If it enters
Program mode (and you are not using the debugger), all of the faceplate LEDs will
turn off. To exit Program mode, power will need to be cycled on the device.

Mode

1

2

3

4

5

6

Program

ON

Run

OFF

Table 6.1 – Program and Run Mode DIP Switch 1 Settings

Warning

If you are developing an application that uses the front DB-9 connector as a normal
serial port, the Click 500 will not work until it is in run mode. The debugger uses this
port in program mode and the device will have to be changed to run mode to test the
operation of this port. Instead of constantly toggling the switch between run and
program mode, consider using a second serial cable with pin 4 removed. Insert/re-
move the second serial cable with pin 4 removed between the normal serial cable and
the front DB9 connector. With the second cable in place, the device will essentially
remain in run mode when power is cycled (even though the switch is ON).

Using Digital I/O

The digital I/O ports on the bottom of the module allow you to interact with contact closure

and digital I/O systems.

Digital Outputs

The digital outputs are simply solid state contact closure outputs. Each digital output port

is completely independent of the other port. A digital I/O port communicates either open

(0) or closed (1).

Note

The logical 0 or 1 is in reference to the software value written by the microprocessor.