Interfacing to the lsm continued – Rockwell Automation 1402-LSM Line Synchronization Module Installation Instructions User Manual

Page 37

Advertising
background image

Chapter 4
Application Information

4–3

Block Transfer Communications Continued

For example, the words 10 modulus 10

3

and 0 modulus 10

0

would be

processed in this manner: (10 * 1000) + 0. The words 10 modulus 10

0

and

500 modulus 10

–3

would be processed in this manner: 10 + (500 /1000).

To process numbers to be sent to the LSM in this format, a number greater
than 1,000 needs to be divided by 1,000 to obtain the modulus 10

3

word.

This word must then be re–multiplied by 1,000 and subtracted from the
original number to obtain the modulus 10

0

word.

For example, the number 12,345 would be processed as follows:

modulus 10

3

word = (12,345 /1,000) truncated to 12

modulus 10

0

word = 12,345 – (modulus 10

3

word

 1000) = 345

Numbers such as 12.345 need to be processed as follows:

modulus 10

0

word = 12.345 truncated to 12

modulus 10

–3

word = (12.345 – modulus 10

0

word)

 1000 = 345

Configuration

The only method of configuring the LSM module is via the block transfer
operation of the PLC–5. The data to be sent to the LSM must be stored in a
data file of the PLC. There are two separate block transfer writes necessary
to completely configure the LSM. The address of these data files must be
used as the data file parameter of the BTW instruction with sizes of 35 and
12. Again, the correct sizes are necessary to identify to the LSM what type of
data is being sent. The size, configuration, and contents of the block transfer
tables accepted by the LSM are discussed in Appendix B.

The parameters sent to the LSM must be valid before the LSM will respond
and begin normal operation. The validity of data sent to the LSM may be
checked by requesting the Acknowledge Factory (or User) Configuration
Parameters tables from the LSM. This is accomplished by initiating BTRs of
size 25 or 15 from the LSM. The final non–reserved word of these tables is
the overall configuration status of the previous configuration BTR. If this
word is 0, the configuration succeeded and the LSM is running in one of the
modes previously described. If this word is 4, one or more of the
configuration parameters was out of range or illegal and all set up data is not
accepted. Each word of the Acknowledge Configuration Parameters table
should then be examined to determine which parameter was invalid.

Interfacing to the LSM Continued

Advertising