[. . . ] W07E-EN-02
CP1L-J14D@-@ CP1L-J20D@-@ CP1L-L10D@-@ CP1L-L14D@-@ CP1L-L20D@-@ CP1L-M30D@-@ CP1L-M40D@-@ CP1L-M60D@-@
CP1L CPU Unit
GETTING STARTED GUIDE
CP1L-J14D CP1L-J20D CP1L-L10D CP1L-L14D CP1L-L20D CP1L-M30D CP1L-M40D CP1L-M60D
-
CP1L CPU Unit
Getting Started Guide
Notice:
OMRON products are manufactured for use according to proper procedures by a qualified operator and only for the purposes described in this manual. The following conventions are used to indicate and classify precautions in this manual. Failure to heed precautions can result in injury to people or damage to property.
DANGER
Indicates an imminently hazardous situation which, if not avoided, will result in death or serious injury. Indicates a potentially hazardous situation which, if not avoided, could result in death or serious injury. [. . . ] Input or edit the I/O comment.
4
Creating Programs
4-7-2 Inputting Rung Comments
Comments can be added to each rung of a ladder program.
1.
Double-click the rung header for the rung you wish to add a comment to. The Rung Properties dialog box will be displayed.
2.
On the General tab, input the comment into the comment field.
74
SYSMAC CP1L Getting Started Guide
4-7 Editing Programs
4
3.
Close the Rung Properties dialog box. The entered rung comment will be displayed on the ladder program.
4
Creating Programs
4-7-3 Editing Rungs
Created ladder programs can be edited.
Deleting Contacts/Instructions
1.
Rungs
Place the cursor on a contact or on an instruction. The selected contact or instruction will be deleted.
1.
Click a rung header. The selected rung will be deleted.
SYSMAC CP1L Getting Started Guide
75
4
4-7 Editing Programs
Creating Vertical/Horizontal Lines
Vertical and horizontal connection lines can be created. Horizontal lines can be created in the same manner.
4
Creating Programs Note (1) Starting point (2) Cursor · Creating a line from right to left: Hold down the [Ctrl] key and press the left arrow key. · Creating a line from left to right: Hold down the [Ctrl] key and press the right arrow key. · Creating a line from bottom to top: Hold down the [Ctrl] key and press the up arrow key. · Creating a line from top to bottom: Hold down the [Ctrl] key and press the down arrow key. Repeating the process over an existing connection line will delete it.
Copying/Pasting Contacts/Instructions/Rungs Contacts/Instructions
1. The contact or instruction on the clipboard will be pasted.
Rungs
1. The rung on the clipboard will be pasted.
76
SYSMAC CP1L Getting Started Guide
SECTION 5 Transferring and Debugging Programs
To transfer data from a computer to CP1L, the computer and CP1L must first be online. Monitoring and debugging programs executed on CP1L are also performed with the computer and CP1L online. 5-1 Going Online . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
5-1-1 5-1-2 5-1-3 5-1-4 5-2-1 5-2-2 5-2-3 5-2-4 5-2-5 5-2-6 Setting the CP1L Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 Changing the Operating Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 Transferring Programs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 Executing Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 Monitoring. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 Force-Setting/Force-Resetting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 Changing Timer Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 Searching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [. . . ] Acceleration and deceleration is modified by the acceleration and deceleration of an inverter.
A
Appendix
System Configuration
The system configuration for A-4-7 Using Inverters for Speed Control (1) will be used again. CP1L and CIMR-V7 (an OMRON inverter) are connected by RS485 for frequency and start/stop control.
CP1L CIMR-V7
COMM
RD-A RDB+ SD-A SDB+ FG
RS485
CP1W-CIF11 (RS422/485 option board)
In this FB library example, capacity of the user memory may exceed 5K steps. For this reason, since a memory capacity error may occur on a 14/20-point CP1L (with a user memory of 5K steps), use a 30/40-point CP1L (with a user memory of 10K steps) for this example For details on wiring, and on the settings for CP1W-CIF11, CIMR-V7, and CP1L, refer to System Configuration of A-4-7 Using Inverters for Speed Control (1).
152
SYSMAC CP1L Getting Started Guide
A-4 CP1L Programming Examples
Programming Example Function Blocks Used
Status refresh (_INV002_Refresh) Execute rotation (frequency specification in Hz) (_INV032_MoveVelocity_Hz)
_INV032_MoveVelocityHz (BOOL) (BOOL) EN ENO (INT) (BOOL) NodeNo InVelocity (BOOL) (BOOL) Execute Command Aborted (REAL) (BOOL) Velocity Error (INT) (WORD) Direction ErrorID (WORD) AreaID (INT) AreaNo
Decelerate to stop (_INV060_Stop)
_INV002_Refresh (BOOL) EN
Specify host unit Serial port No. Message area type Message area No.
_INV060_Stop (BOOL) EN (INT) Inverter No. [. . . ]