Rockwell Automation 1772-L8_LW_LWP_LX_LXP,D17726.5.8 User Manual User Manual

Page 366

Advertising
background image

Report Generation

Chapter 23

23-15

You define the control word addresses that correspond to the control word
number. The last three digits of the message request bit address are coded
to represent a particular message. For example, message number 312
indicates the 12th bit of the 3rd control word. The message request bit
address (follow the arrows in the figure above) is then 203/12. Likewise,
message number 716 indicates the 16th bit of the 7th control word, with a
message request bit of 207/16.

The message print command is valid for message 0. It prints out the
message control word addresses in a form similar to that shown in
Table 23.A. If the location of the message control file is to be changed or
you no longer need message 0, it can be deleted with the message delete
command and re-entered at any time.

Unlike messages 1-6, which share a common done bit (027/17), the
additional 64 messages each have a separate done bit. After a particular
message is printed, the done bit is set until the user program resets the
request bit. Done bits are located in the lower byte of the message control
words. Figure 23.6 shows this relationship. For example, if 204/15 is the
request bit for a message, the done bit is located at 205/05, one byte below
the request bit.

Figure 23.6

Extended Message Control Word

10401-I

Message Request Bits Message Done Bits

17 10 07 00

Message

Control

Word

Figure 23.7 shows an example program that can be used to display
each message.

Advertising