4 sample ladder program – SATEC SLC500 User Manual
Page 12
12
4.4 Sample Ladder Program
This section offers a sample SLC 500 ladder program that communicates with the BASIC
module driver and implements handshaking described above. The ladder program diagram is
shown in Appendix B.
The program assumes the following:
1. The BASIC module slot number is 6.
2. The data file N7 is used for output. The CPU command words is written into words N7:0
and N7:1.
3. Bit B3/0 is used for triggering the CPU command output to implement one-shot write to
the BASIC module.
4. The data file N9 is used for input. Data being copied from the M1 file is located in words
N9:0 through N9:63. Note that word N9:63 will contain an error code.
For more information concerning the programming technique when applying M0 and M1 files,
refer to the SLC 500 BASIC Module Design and Integration Manual.