Installation manual
Publication 1747-RM001G-EN-P - November 2008
Table of Contents xvii
Appendix D
Programming Instruction
References
Valid Addressing Modes and File Types. . . . . . . . . . . . . . . . . . . . . . D-1
Understanding the Different Addressing Modes . . . . . . . . . . . . D-2
Appendix E
Data File Organization and
Addressing
Understanding File Organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-1
Processor File Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-1
Addressing Data Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-3
Specifying Logical Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-5
Specifying Indexed Addresses. . . . . . . . . . . . . . . . . . . . . . . . . . . E-10
Monitoring Indexed Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . E-13
Specifying an Indirect Address . . . . . . . . . . . . . . . . . . . . . . . . . . E-14
Addressing File Instructions - Using the File Indicator (#) . . . E-15
Numeric Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-18
M0 and M1 Data Files - Specialty I/O Modules . . . . . . . . . . . . . . . E-19
Addressing M0-M1 Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-20
Restrictions on Using M0 and M1 Data File Addresses . . . . . . E-20
Monitoring Bit Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-20
Transferring Data Between Processor Files and M0 or
M1 Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-21
Access Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-22
Minimizing the Scan Time. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-22
Capturing M0-M1 File Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-24
Specialty I/O Modules with Retentive Memory . . . . . . . . . . . . E-24
G Data Files - Specialty I/O Modules . . . . . . . . . . . . . . . . . . . . . . . E-25
Editing G File Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-25
Appendix F
Number Systems
Binary Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-1
Positive Decimal Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-1
Negative Decimal Values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-2
Hexadecimal Numbers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-3
Hex Mask . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-5
Binary Floating-point Arithmetic . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-6
Appendix G
Application Example Programs
Paper Drilling Machine Application Example . . . . . . . . . . . . . . . . . G-1
Paper Drilling Machine Operation Overview. . . . . . . . . . . . . . . . . . G-3
Drill Mechanism Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . G-5
Conveyor Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G-6
Drill Calculation and Warning. . . . . . . . . . . . . . . . . . . . . . . . . . G-10
Time Driven Sequencer Application Example . . . . . . . . . . . . . . . . G-14
Time Driven Sequencer Ladder Program . . . . . . . . . . . . . . . . . . . . G-14
Event Driven Sequencer Application Example . . . . . . . . . . . . . . . G-15
Event Driven Sequencer Ladder Program . . . . . . . . . . . . . . . . . . . G-15