CX-Programmer Introduction Guide
CX-Programmer Introduction Guide
-Please be sure to read and understand Precautions and Introductions in CX-Programmer Operation Manual (W446-E1) before using the product. - This Guide describes the basic operation procedure of CX-Programmer. Refer to the Help or the Operation Manual of the PDF file for detailed descriptions. - To read the PDF files, you need Adobe Reader, a free application distributed by Adobe Systems. - You can display the PDF files from the [Start] menu on your desktop after installing the CX-Programmer. - The screen views used in this guide may be different from the actual view, and be subject to change without notice. - The product names, service names, function names, and logos described in this guide are trademarks or registered trademarks of their respective companies. - The symbols (R) and TM are not marked with trademarks and registered trademarks in this guide respectively -The product names of the other companies may be abbreviated in this guide. - Microsoft product screen shots reprinted with permission from Microsoft Corporation.
Contents
Available PC Available Device Types Chapter 1 Installation - Startup
1. Installation 1-1 1-1. Installation of CX-Programmer 1-1 1-2. Online Registration 1-1 2. Startup of CX-Programmer 1-2 3. New Project Opening and Device Type Settings 1-3 4. Main Window 1-4 4-1. Compatible SYSWIN Key Allocation 1-5 4-2. Section 1-6 4-3. Deletion and Display of Unnecessary Windows 1-8 5. Program Creation 1-9 5-1. Entry of Normally Open Contact 1-10 5-2. Entry of Coil 1-11 5-3. Edit of Symbol Comment 1-13 5-4. Entry of Rung Comment 1-14 5-5. Entry of Normally Closed Contact 1-14 5-6. Entry of Attached Comments 1-15 5-7. Entry of Differential ContactUp 1-16 5-8. Entry of Differential ContactDown 1-16 5-9. Entry of VerticalUp 1-17 5-10. Entry of VerticalDown 1-17 5-11. Entry of Advanced Instructions 1 - Entry of Strings 1-18 5-12. Entry of Advanced Instructions 1 - Useful Functions 1-19 5-13. Entry of Auxiliary Relay - 1.0 Second Clock Pulse Bit 1-20 5-14. Entry of Advanced Instructions 2 - Entry of Differential 1-21 5-15. Entry of OR Rung 1-22 5-16. Entry of Advanced Instructions 3 - Entry by Fun No. 1-23 5-17. Entry of Timer Instructions 1-24 5-18. Entry of Counter Instructions 1-25 5-19. Edit of RungsCopy & Paste 1-26 5-20. Entry of END Instruction 1-26
Available PC
Hardware Requirements
Item Operating system (OS) (See note 1.) Requirement Microsoft Windows XP (Service Pack 3 or higher) Microsoft Windows Vista (See note 4.) Microsoft Windows 7 (See note 4.) Computer Memory Hard disk Display Disk drive Communications ports Other Computer with a processor recommended by Microsoft. Memory capacity recommended by Microsoft. Approx. 3.4 GB or more available space is required to install the complete CX-One package. XGA (1024 x 768), High Color (16 bit) or better CD-ROM drive or DVD-ROM drive RS-232C port, USB port, or Ethernet port (see note 3.) Internet access is required for online user registration, including a modem or other hardware connection method.
Note (1) CX-One Operating System Precaution 1) System requirements and hard disk space may vary with the system environment. 2) Except for Windows XP 64-bit version. (2) The amount of memory required varies with the Support Software used in CX-One for the following Support Software. Refer to user documentation for individual Support Software for details. CX-Programmer, CX-Designer, CX-Thermo, CX-Simulator, CX-Protocol, CX-Motion, CX-Drive, CX-Process Tool, and Faceplate Auto-Builder for NS (3) Refer to the hardware manual for your PLC for hardware connection methods and cables to connect the computer and PLC. While the computer and a CJ2/CP-series PLC are connected via a USB cable, the computer cannot go on standby. (4) The following restrictions apply when CX-One is used with Microsoft Windows Vista/7. 1) Some Help files cannot be accessed. The Help files can be accessed if the Help program distributed by Microsoft for Windows Vista (WinHlp32.exe) is installed. Refer to the Microsoft homepage listed below or contact Microsoft for details on installing the file. (The download page is automatically displayed if the Help files are opened while the user is connected to the Internet.) http://support.microsoft.com/kb/917607/en-us 2) The following restrictions apply to some application operations. Application CX-Designer/ NV-Designer CX-Programmer/ CX-Integrator/ Network Configurator Restriction If a new Windows Vista font (e.g., Meiryo) is used in a project, the font size on labels may be bigger and protrude from the components if the project is transferred from CX-Designer running on a Windows XP or earlier OS to the NS/NSJ. Although you can install CPS files, EDS files, Expansion Modules, and Interface Modules, the virtual store function of Windows Vista or Windows 7 imposes the following restrictions on the use of the software after installation. These restrictions will not exist if application data is installed using Run as Administrator. If another user logs in, the applications data will need to be installed again. The CPS files will not be automatically updated. CX-Server Restrictions are imposed on the following functions. The driver cannot be changed from the default setting if Controller Link is set as the network type in the Change PLC dialog box. Online connections will not be possible through Controller Link Boards or SYSMAC LINK Boards. Online connections using FinsGateway as the network type will not be possible from the CXProgrammer or CX-Integrator. Communications will not be possible though a CS1 Board and PCI bus.
CJ
C1000H C2000H C200H C200HX C200HG C200HE C200HX-Z C200HG-Z C200HE-Z C200HS CP (*1)
CQM1H CQM1 CV1000 (*2) CV2000 (*2) CV500 (*2) CVM1 NSJ
Series FQM1 Series Flexible Motion Controller(*5) IDSC SRM1 (*1) SYSMAC Board, or SYSMAC CS1 Board (Internal connection of a PC with the SYSMAC board that is built-in the PC where CX-Programmer is installed) FQM1-CM001/MMA21 / MMP21 IDSC-C1DR-A/C1DT-A SRM1-C01/C02 (-V1) (-V2)
C200PC-ISA01 (C200HG-CPU43 *3) C200PC-ISA02-DRM (C200HG-CPU43 *3) C200PC-ISA02-SRM (C200HG-CPU43 *3) C200PC-ISA03 (C200HG-CPU43 *3) C200PC-ISA03-DRM (C200HG-CPU43 *3) C200PC-ISA03-SRM (C200HG-CPU43 *3) C200PC-ISA13-DRM (C200HX-CPU64 *3) C200PC-ISA13-SRM (C200HX-CPU64 *3) CS1PC-PCI01-DRM (CS1G-CPU45 *4) CS1PC-PCI01H-DRM (CS1G-CPU45H *4)
*1: For WS02-CXPC2-V (one license (limited to micro PLCs), only these PLC types are available. *2: CX-Programmer does not support SFC. *3: To connect with SYSMAC Board, specify the PLC types in parentheses. Only when selecting these PLC types, you can select SYSMAC Board as a network type. *4: To connect with SYSMAC CS1 Board, specify PLC types in parentheses. Only when selecting these PLC types, you can select CS1 Board as a network type. *5: Insert one FQM1-CM001 and multiple FQM1-MMA21/MMP21 as PLCs into the same project.
If you click [Register] button, your Web browser is started to connect to Omrons CX-One Web site.(*1) (*2) *1: If you click [Exit] button to cancel online registration, [Online Registration] dialog box is displayed every time CX-Programmer is started. *2: If you do not have Internet environment, or you do not want to register online, fill and send the user registration card that comes with the product.
MEMO
Use to record license No. etc.
1-1
2. Startup of CX-Programmer
Windows task bar [Start] [All Programs] [OMRON] [CX-One] [CX-Programmer] [CX-Programmer]
1-2
Click
Click the left mouse button on the Settings button to show the [Device Type Settings] dialog.
1-3
4. Main Window
Each function of the main window is explained here. Title Bar Menus Toolbars Information Window
Status Bar
Output Window
Shows the file name of saved data created in CX-Programmer. Enable you to select menu items. Enable you to select functions by clicking icons. Select [View] -> [Toolbars], and you can select toolbars to be displayed. Dragging toolbars enables you to change the display positions by the group. Enables you to divide one program into a given number of blocks. Each can be created and displayed. Controls programs and data. Enables you to copy data by the element by executing Drag and Drop between different projects or within a project. A screen for creating and editing a ladder program. Shows error information in compiling (error check). Shows the results of searching for contacts/coils in the list form. Shows error details when errors occurred while loading a project file. Shows information such as a PLC name, online/offline, location of an active cell. Displays a small window to show the basic shortcut keys used in CX-Programmer. Select [View] -> [Information Window] to show or hide the Information window. Displays the name, address or value, and comment of the symbol presently selected by the cursor.
1-4
Click
Click
Click
After the above operations, the key allocations will be changed and become compatible with SYSWIN.
When key allocation allocation is is selected, selected, a a key key operation operation guide guide will will be be displayed displayed at at the the bottom bottom of of the the display. display. When SYSWIN SYSWIN key Right mouse-click Click the icon shown in the task bar on the rightbottom of the display. Display in Normal View
4-2. Section
Section is a function to create/display a block of a program divided per function. It improves not only the visibility of a program but also the development productivity by reusing components if the program consists of similar controls, because copy and paste on the program tree are available. Moreover, program upload by section is possible and it enables you to do online operation smoothly. Example
Giving names indicating the contents of processing or controls is possible. Changing the order of sections and copy & paste are possible by drag & drop with a mouse. There is no limit on the number of sections per program.
Click the right button of the mouse on the section whose name is to be changed.
Select [Rename].
1-6
Addition of a section
Perform the same operation as the previous page to name the inserted section. It is possible to go to each section (a ladder block) from a section list. As checking the global image (control flow) of a program on the section list, you can go to a specified section.
1-7
Alt
Alt
1-8
5. Program Creation
Coding of a simple program is explained here.
1-9
The following description uses the [CX-Programmer Keyboard mapping] [Classic Mode].
Select [Tools] -> [Change Input Mode] -> [Classic Mode] from the menu. After checking the cursor position at the upper left of Ladder Window, start programming.
0
ENT
Switch 1
Enter a symbol comment.
ENT
Deletion of instructions Move the cursor to the instruction and then press the DEL key. Move the cursor to the right cell of the instruction and press the BS key.
0 of the upper digit of an address is omitted when shown. [.] (period) is displayed between a channel number and a relay number.
1-10
100
ENT
Coil 0 ENT
Double-click by using a mouse (or press F4). The cursor moves to the place of the applicable coil on Ladder Window.
Double-click Double-click
[Reference]
1. Press [Alt]+[Y]. You can switch showing/hiding of Symbol Comment.
Alt
2. Click the toolbar button [Show Program/Section Comments] to switch the display of the comments shown in the head row.
Click
3. Select [Tools] | [Options] from the CX-Programmer menu. You can set hiding of the comment entry dialog.
Click the check box to remove the check mark. The comment entry dialog is not displayed anymore.
1-12
Click
Ladder Window is switched to the Symbol Comment Editing window. Double-click the left mouse button on a bit number that you want to enter a symbol comment, and you will able to enter a symbol comment. Copy&Paste Copy&Paste and and deletion deletion of of one one or or more more comments comments are are possible possible by by the the cell. cell. Drag the mouse with the right mouse button pressed to invert the source bits of copy in blue. Click the right mouse button on the range, and select [Copy] from the popup menu. Copy&Paste Copy&Paste of of symbol symbol comments comments is is possible possible between between Excel Excel and and CX-Programmer CX-Programmer too. too. Example of copying & pasting comments of two bits
Click the right mouse button on the bit number of the copy destination, and select [Paste].
1-13
ENT
ENT
1
ENT
Sensor 1
ENT 1-14
O ENT
101
Coil 1 ENT R
Alt
ENT
ENT
1-15
100
Click
Click [Up].
ENT
ENT
This entry method is available only for CS/CJ and CV series PLCs. For the other series PLCs, use DIFU (13).
101
Click
Click [Down]. This entry method is available only for CS/CJ and CV series PLCs. For the other series PLCs, use DIFD (14).
ENT
1-16
O ENT
200
Coil 2
ENT
C ENT O ENT
200
ENT
300
Coil 3 ENT
Ctrl
Or
1-17
++ d0
ENT
See the next page for the contents of instructions.
Enter a comment.
Products
ENT
1-18
Instruction Help Function Click The reference guide screen of the . instruction shows up.
1-19
ENT
1-20
Enter
@MOV
#0 D100
Enter a comment if necessary.
Attach Attach @ @ (at (at mark) mark) before instructions. before instructions. It It makes makes the the instructions instructions differential. differential.
ENT
ENT
1-21
ENT
W ENT
3
ENT
Entry of comments is omitted here.
ENT
W ENT
4
ENT
Refer Refer to to the the section section 556 to enter annotations. 6 to enter annotations.
1-22
Show Show the the [New [New Instruction] Instruction] dialog. dialog.
021
The The instruction instruction corresponding corresponding to to the the entered Fun No. entered Fun No. is is displayed. displayed.
Enter
#0 D0
ENT
ENT
Note: Note: The The Fun Fun No. No. of of MOV MOV depends on PLC depends on PLC types. types. CS-series CS-series -> -> 021 021 CJ-series CJ-series -> -> 021 021 CV-series -> CV-series -> 030 030 C-series C-series -> -> 21 21
1-23
Refer Refer to to the the former former pages to pages to enter enter rungs rungs and and comments. comments.
T0
ENT
Enter a comment.
Timer 1
ENT
TIM 0 #30
ENT
1-24
Refer Refer to to the the former former pages to execute pages to execute coding. coding.
CNT 0 #5
ENT
Move the cursor by using arrow keys or a mouse. Enter a bit for reset.
C0
ENT
Entry of a Counter bit
ENT O
402
ENT ENT
1-25
Move Move the the cursor cursor to to this this position. position. The The rung rung is is inverted inverted as as shown shown right. right.
Ctrl
C
You can also cut selected rungs (instructions) by [Ctrl]+[X].
(Copy a rung)
Press Press the the key key to to move the cursor move the cursor to to this this position. position.
Ctrl
(Paste a copied rung) Click Click each each instruction instruction and then and then change change the the bit bit numbers. numbers. When making a mistake, press press or [Ctrl+Z] for Undo (return to the previous operation) or [Ctrl+Y] for Redo (go to the next operation)
1-26
MEMO
Monitoring Monitoring
Click
Errors Errors and and addresses addresses are displayed are displayed on on Output Output Window. Window.
Double-click Double-click a a displayed displayed error, error, and and the the cursor cursor in in Ladder Ladder Diagram Diagram will will go go to to the the corresponding corresponding error error location location and and the the error error rung rung will will be be shown shown in in red. red.
Output Window automatically opens at program check. The cursor moves to an error location by pressing J or F4 key. Output Window closes by pressing the ESC key.
2-1
Monitoring Monitoring
2. Going Online
This This time, time, online/debug online/debug functions functions when when working working online online with with CX-Simulator CX-Simulator are are explained explained in in this this guide. guide.
Click
The The CX-Simulator CX-Simulator Console Console box box is is shown. shown.
The The operating operating mode mode of of the the active active PLC PLC is is shown. shown.
The The background background color color of Ladder of Ladder Window Window changes changes to to gray. gray.
Scan Scan time time is is displayed displayed (except for (except for Program Program Mode). Mode).
2-2
Monitoring Monitoring
3. Monitoring
Change the PLC PLC Change the (simulator) (simulator) to to Monitor Monitor Mode. Mode. Click The on/off statuses of contacts and coils are monitored.
Click [Yes].
If your program has a large volume of data, the scroll speed of the screen may become slow when monitoring. In that case, click the below icon to cancel monitoring once, scroll the screen to the address you want to monitor, and then change to monitoring mode again.
The The rungs rungs being being monitored monitored are are shown shown in in a a specified specified color. color.
The The present present value value of of I/O I/O memory memory is is shown. shown.
2-3
Monitoring Monitoring
The The screen screen is is divided divided into two panes into two panes up up and and down, down, and and you you can can display display any any address address in in two two panes panes respectively respectively by by using using the the scroll scroll bars. bars.
Shown in decimal
Shown in hex
Monitoring Monitoring
Alt
400
ENT
Press the ENT key continuously for auto increment of addresses. You You can can also also enter enter a a given given address in this status. address in this status.
The addresses registered in Watch Window are still stored when CX-Programmer is opened next time. Example: Entry of 4CH 00Bit
Enter Enter . . (period) (period) between between CH CH and and Bit. Bit. Or Or enter enter 400 400 without without a a period period in in the the Name Name or or address box and then specify BOOL address box and then specify BOOL in in the the Data Data Type/Format Type/Format box box (Reverse (Reverse the the box box and and then then press press B B key key form form the the keyboard.) keyboard.)
2-5
Monitoring Monitoring
4-word 4-word data data is is displayed displayed in in the the binary binary system. system.
As shown in the guidance at the bottom of the dialog, Force On/Off and Set On/Off are enabled also by key operation.
Click the right mouse button on a bit, and you will be able to select Force On/Off and Set On/Off from the popup menu.
2-6
Monitoring Monitoring
Click Click the the right right button button of of a a mouse mouse on on Sheet1, Sheet1, and and then then select select [Watch [Watch Sheet] Sheet] -> -> [Rename]. [Rename].
To To add add a a sheet, sheet, select select [Watch [Watch sheet] sheet] -> -> [Insert]. [Insert].
It is useful to manage data if you name sheets by the phase or assembly. Right-click Right-click on on Watch Watch Window. Window. -> -> Select Select [View] from the popup menu. And [View] from the popup menu. And then then you you will be able to choose showing/hiding will be able to choose showing/hiding of of each each item item on on Watch Watch Window. Window.
The The names names set set by by this this operation operation are are all all saved saved when when the the project project is is saved saved (extension: (extension: .opt). .opt). Therefore, they are loaded as well as data such as ladder programs when Therefore, they are loaded as well as data such as ladder programs when the the project project is is loaded loaded next next time. time.
2-7
Monitoring Monitoring
Drag Drag and and drop drop on on Watch Watch Window. Window.
Data Data such such as as rungs, rungs, bits bits per per block, block, or or operands operands of of advanced advanced instructions instructions is is pasted on Watch Window. pasted on Watch Window. Moreover, Moreover, the the on/off on/off statuses statuses of of the the bits bits and and the the present present values values of of words words are displayed. are displayed.
2-8
Monitoring Monitoring
Once set, this function is always active until released by taking the reverse procedure of the above one.
2-9
Monitoring Monitoring
Click Or click the right mouse button on the applicable bit and select [Differential Monitor] from the popup menu.
Click [Start].
The The count count number number is is displayed displayed on on the the dialog every time the differential dialog every time the differential condition condition (differential (differential up up in in this this example) is satisfied and example) is satisfied and the the color color of of the box changes each time. the box changes each time.
2-10
Monitoring Monitoring
Click Click the the right right mouse mouse button. button. -> -> [Force] [Force] -> -> [On] [On]
mark indicates that the bit is now being forced on/off. Once bits/coils are forced on/off, the forced statuses are held until cancelled or the reverse procedures of on/off are taken. The statuses do not change by an external input or the operational result of the program. Moreover, force operations are not enabled when the PLC is in the Run mode.
Force Force Off/Cancel Off/Cancel of of bits/coils bits/coils are are enabled enabled in in the the same same way. way. Shortcut Key Shortcut Key Ctrl+J: Ctrl+J: Force Force On On Ctrl+K: Ctrl+K: Force Force Off Off
Double-click [Memory].
2-11
Monitoring Monitoring
ENT
Or double-click.
ENT
Or double-click.
2-12
Monitoring Monitoring
Alt
Reference
1 Enter Enter a a bit bit number number that that you you want to find in the [Address] want to find in the [Address] field. field. 2 Click
You You can can also also move move the the cursor cursor to to a a bit bit that that you you want want to to find. find.
3 The The found found bits bits are are listed. listed.
Click a bit that you want to find, and the focus will move to the corresponding position in the rung.
2-13
Monitoring Monitoring
Space
(3)The reason why the coil 2.00 is not turned on is that the contact 1.00 or 1.01 is not turned on. Suppose the cause is the contact 1.00 and find the coil of 1.00. Move the cursor to the contact 1.00 and press the [Space] key as well as the above operation (2).
Space
(4)If this rung is not a cause press [Shift]+[Space], and you will able to go back to the rung before you started to find this rung.
Shift
Space 2-14
Monitoring Monitoring
(5)Then retrace rungs to find a cause from the contact 1.01. As well as the operations so far, move the cursor to the contact 1.01 and press the [Space] key.
Space
(6)The focus moves to the coil 1.01. As it turned out, the cause was the contact 0.01 that was not turned on. Press the [Space] key to jump from a coil to a contact having the same address as the coil or from a contact to a coil in reverse. Press the [N] key for another jump from a contact or coil at the cursor position to a next one having the same address. To move back to the position of the last jump, press the [B] key.
This is a useful function available in SYSMAC Support Software. CX-Programmer inherits it.
2-15
Monitoring Monitoring
Click
Scope of Find is specifiable. PLC To find a target from all tasks(programs) and symbol table.
Program To find a target from all tasks (programs). Current view To find from a section or symbol table being edited.
Click
Click [OK].
The The contacts/coils contacts/coils of of which which annotations annotations include include the the keyword keyword entered entered in in the the Find Find dialog dialog are are displayed displayed on on Output Output Window. Window.
Double-click Double-click an an item, item, and and then then the the cursor cursor moves moves to to the the applicable applicable bit bit in in Ladder Ladder Window. Window. 2-16
Monitoring Monitoring
A list of the rung comments used in rungs are displayed on a separate window.
L
Or Alt Shift R
Click a rung comment in the list, and the cursor goes to the position where the rung comment is used in the ladder.
2-17
Monitoring Monitoring
Click the right mouse button on Ladder Window. Select [Find Bit Addresses] from the popup menu.
Enter an address (bit number) to find. (period between a channel and a bit is unnecessary.) Set the scope of Find (Current view).
Click [Report].
Click [OK].
Output Output Window Window is is displayed displayed and and the the results results are are listed. listed.
Double-click Double-click an an item item in in the the list, list, and and the the cursor cursor will will go go to to the the applicable applicable bit. bit.
2-18
Monitoring Monitoring
You can also select more than one rung by Drag&Drop with a mouse. (2) Select [Program] -> [Online Edit] -> [Begin] from the CX-Programmer menu.
Double-click Double-click
(3) Enter a bit number (4.11 in this example) you want to edit to.
(4) Select [Program] -> [Online Edit] -> [Send Changes] from the menu.
End
2-19
Useful Functions
You can select either vertical or horizontal display of output instructions. Vertical display of output instructions
Check Check the the [Show [Show output output instructions instructions horizontally] horizontally] box. box.
2-20