Output port initialization – CTI Products RCD Standard - Remote Comparator Display User Manual

Page 86

Advertising
background image

MCN Remote Comparator Display

Appendix A

CTI Products, Inc.

Changing Status Message Text

68-10856-210

80

header is sequence line number 1. Any blank lines or comment lines are not
counted in the output port sequence number.

For example, using the MCNRCD.CFG file in Figure 32, output port sequence
number 08 causes bit 6 (byte value 40 hex) to be set on port 378 (hex.)
All other bits on the port are unaffected.

9.9.1 Output Port Initialization

When the MCNRCD software is first started, you will want to set any output ports
that have output port control sequences defined for them to a default condition.
The header <PORT INIT> in the MCNRCD.CFG file allows you to define these
initial conditions. The format of a port initialization line is the following:

port # value

where port # is the address of the output port and value is the initialization value
to write to the port at startup. These initialization sequences must be on the lines
just following the <PORT INIT> header. If you do not want any initial value
written to the port at startup, do not enter a port initialization line for that port
address.

The example MCNRCD.CFG file in Figure 32 does not have any port
initialization sequences defined (since there are no sequences under the
<PORT INIT> header). Below is an example of what an initialization sequence
would look like.

<PORT INIT>
378 00
3C0 00
3C8 FF

In this example, when the MCNRCD software starts executing, it will write the
value 00 to output ports 378 and 3C0 (hex) and will write the hex value FF to
output port 3C8 (hex).

Again, this port initialization only occurs when the MCNRCD software is first
started, not on each screen load.

Advertising