(digital enable_flag name address read_write_mode cycle_millisecs exception_flag)
device : buffer : word_offset [. bit [.bit_width]]
This command creates a point of type digital. Digital points are used to provide the system with binary (1-bit) data, or integer values (multi-bit fields). This command is normally executed from the configuration file.
In the following example, two digital input points are established, both initially enabled, not automatically read (cycle time of 0), and automatically registered with the Cascade DataHub. Pushbutton is a single input bit: the fifth bit of the 16-bit word at word offset 12 of the input buffer. Digit is a 4-bit output field, the second nibble of the 16-bit word at word offset 12 of the output buffer.
(digital t Pushbutton 0:12.5 r 0 t) (digital t Digit 0:12.5.4 rw 0 t)
Copyright © 1995-2006 by Cogent Real-Time Systems, Inc. All rights reserved.