Author(s): Sysmac
Publisher: Omron
Year: 2005
PROGRAMMING MANUAL
CQM1/CPM1/CPM1A/SRM1 Programmable Controllers
About this Manual:
PRECAUTIONS
1 Intended Audience
2 General Precautions
3 Safety Precautions
4 Operating Environment Precautions
5 Application Precautions
6 Conformance to EC Directives
SECTION 1 PC Setup and Other Features
1-1 PC Setup
1-2 Basic PC Operation and I/O Processes
1-3 Pulse Output Function (CQM1 Only)
1-4 Pulse Output Function (CPM1A Only)
1-5 CQM1 Interrupt Functions
1-6 CPM1/CPM1A Interrupt Functions
1-7 SRM1 Interrupt Functions
1-8 CompoBus/S Distributed I/O Functions (SRM1 Only)
1-9 Communications Functions
1-10 Calculating with Signed Binary Data
SECTION 2 Special Features
2-1 Expansion Instructions (CQM1/SRM1 Only)
2-2 Advanced I/O Instructions (CQM1 Only)
2-3 Macro Function
2-4 Differential Monitor
2-5 Analog Settings (CQM1-CPU42-EV1/CPM1/CPM1A Only)
2-6 Quick-response Inputs (CPM1/CPM1A Only)
SECTION 3 Memory Areas
3-1 CQM1 Memory Area Functions
3-2 CPM1/CPM1A Memory Area Functions
3-3 SRM1 Memory Area Functions
3-4 SRM1 Flash Memory
3-5 Using Memory Cassettes (CQM1 Only)
3-6 Operation without a Battery
SECTION 4 Ladder-diagram Programming
4-1 Basic Procedure
4-2 Instruction Terminology
4-3 Basic Ladder Diagrams
4-4 Controlling Bit Status
4-5 Work Bits (Internal Relays)
4-6 Programming Precautions
4-7 Program Execution
SECTION 5 Instruction Set
5-1 Notation
5-2 Instruction Format
5-3 Data Areas, Definer Values, and Flags
5-4 Differentiated Instructions
5-5 Coding Right-hand Instructions
5-6 Instruction Tables
5-7 Ladder Diagram Instructions
5-8 Bit Control Instructions
5-9 NO OPERATION – NOP(00)
5-10 END – END(01)
5-11 INTERLOCK and INTERLOCK CLEAR – IL(02) and ILC(03)
5-12 JUMP and JUMP END – JMP(04) and JME(05)
5-13 User Error Instructions: FAILURE ALARM AND RESET – FAL(06) and SEVERE FAILURE ALARM – FALS(07)
5-14 Step Instructions: STEP DEFINE and STEP START–STEP(08)/SNXT(09)
5-15 Timer and Counter Instructions
5-16 Shift Instructions
5-17 Data Movement Instructions
5-18 Comparison Instructions
5-19 Conversion Instructions
5-20 BCD Calculation Instructions
5-21 Binary Calculation Instructions
5-22 Special Math Instructions
5-23 Logic Instructions
5-24 Increment/Decrement Instructions
5-25 Subroutine Instructions
5-26 Special Instructions
5-27 Communications Instructions
5-28 Advanced I/O Instructions
SECTION 6 Host Link Commands
6-1 Communications Procedure
6-2 Command and Response Formats
6-3 Host Link Commands
SECTION 7 PC Operations and Processing Time
7-1 CQM1 Cycle Time and I/O Response Time
7-2 CPM1/CPM1A Cycle Time and I/O Response Time
7-3 SRM1 Cycle Time and I/O Response Time
SECTION 8 Troubleshooting
8-1 Introduction
8-2 Programming Console Operation Errors
8-3 Programming Errors
8-4 User-defined Errors
8-5 Operating Errors
8-6 Error Log
8-7 Host Link Errors
8-8 Troubleshooting Flowcharts
Appendix A Programming Instructions
Appendix B Error and Arithmetic Flag Operation
Appendix C Memory Areas
Appendix D Using the Clock Function
Appendix E I/O Assignment Sheet
Appendix F Program Coding Sheet
Appendix G List of FAL Numbers
Appendix H Extended ASCII
Appendix I CPM1/CPM1A and CQM1 Memory Area Comparison
Glossary
Index
Revision History