[696]cx programmer introduction guide r132 e1 02

Upload: thinhk42ddk

Post on 07-Apr-2018

237 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    1/59

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    2/59

    The CD-ROM of CX-One / CX-Programmer has User's Manual of the PDF file.

    Please read the 'Notice' and the 'Precautions' in the User's Manual before usingCX-Programmer.

    The 'CX-Programmer Introduction Guide' describes the basic operation procedure of CX-Programmer.Refer to the Help or the User's Manual of the PDF file for detailed descriptions.* You need Acrobat Reader 4.0 or grater versions in your PC to display the PDF file.

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    3/59

    1-1 1-1

    1-5 1-7

    1-8 1-9

    1-10 1-11

    1-13 1-14

    1-15 1-16

    1-18 1-19

    1-19 1-20

    1-21 1-21

    1-22 1-22

    1-23 1-24

    1-25 1-26

    1-27 1-28

    1-29 1-30

    1-31 1-31

    Contents

    Chapter 2 Online Operation

    Available PC

    Available Device Types

    Chapter 1 Installation - Startup1. Installation

    1-1. Installation of CX-Programmer1-2. Online Registration

    2. Startup of CX-Programmer3. New Project Opening and Device Type Settings4. Main Window

    4-1. Compatible SYSWIN Key Allocation4-2. Section4-3. Deletion and Display of Unnecessary Windows

    5. Program Creation5-1. Entry of Normally Open Contact5-2. Entry of Coil5-3. Edit of Symbol Comment5-4. Entry of Rung Comment

    5-5. Entry of Normally Closed Contact5-6. Entry of Attached Comments5-7. Entry of Differential ContactUp5-8. Entry of Differential ContactDown5-9. Entry of VerticalUp5-10. Entry of VerticalDown5-11. Entry of Advanced Instructions 1 - Entry of Strings5-12. Entry of Advanced Instructions 1 - Useful Functions5-13. Entry of Auxiliary Relay - 1.0 Second Clock Pulse Bit5-14. Entry of Advanced Instructions 2 - Entry of Differential5-15. Entry of OR Rung5-16. Entry of Advanced Instructions 3 - Entry by Fun No.5-17. Entry of Timer Instructions5-18. Entry of Counter Instructions5-19. Edit of RungsCopy & Paste5-20. Entry of END Instruction

    1. Program Error Check (Compile)2. Going Online3. Monitoring4. Monitoring - 2 Monitoring Many Locations in Program at Once5. Monitoring - 3 Monitoring in Hex6. Monitoring - 4 Watch Window7. Monitoring - 5 Present Value Change and Binary Monitoring in Watch Window8. Useful Functions of Watch Window9. Monitoring - 6 Watch Window - 210. Monitoring - 7 Rung-wrap of Long Rung on Display11. Monitoring - 8 Differential Monitor12. Force On/Off13. Displaying List of Forced-on/off Bits14. Changing Set Value of Timer15. Changing Present Value of Timer16. Find Function - 1 Find from Address Reference Tool17. Find Function - 2 Retrace Find of Ladders18. Find Function - 3 Find by Keyword in Comment

    19. Find Function - 4 Go To Rung Comment20. Find Function - 5 Find Bit Addresses21. Online EditUseful Functions

    2-1 2-2

    2-3 2-4

    2-4 2-5

    2-6 2-7

    2-8 2-9

    2-10 2-11

    2-11 2-12

    2-12 2-13

    2-14 2-16

    2-17 2-18 2-19

    Appendix

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    4/59

    Available PC

    Hardware Requirements

    Required memory (RAM) size depends on the size of your programs to be created. If the required memory (RAM) size is largerthan your PCs memory (RAM) size, operation of CX-Programmer might be slowed down.

    *1: For Windows95 and CS/CJ series PLC, you cannot use I/O table and Unit Setup of CX-Programmer (unavailable are parameter setting,dedicated tool activation, consumption current indication, rack width indication, and DIP switch status monitor of advanced unit).

    *2: Specified program size indicates that for one registered PLC. If more than one PLC is registered for a project, about 1MB of memory isrequired for every 1000 steps of your program.

    For details of PC in which CX-One can be installed, refer to CX-One Setup Manual, Chapter 2 Installation and Uninstallation.

    Windows95 /98/NT4.0Service Pack6a

    Windows2000 Service Pack2 or later/Me Windows XP

    PC PC/AT Compatible PC/AT Compatible PC/AT Compatible

    CPU

    Pentium-class CPU133MHz or betterPentium III 1GHz or betterRecommended

    Pentium-class CPU150MHz or betterPentium III 1GHz or moreRecommended

    Pentium-class CPU300MHz or betterPentium III 1GHz or betterRecommended

    Memory size(RAM)*2

    In usingCX-Simulator

    together, valuesin parentheses

    64M bytes or more(96M bytes or more)

    96M bytes or more(128M bytes or more)

    128M bytes or more(192M bytes or more)

    Hard disk space 550M bytes or more free space 550M bytes or more free space 550M bytes or more free space

    Display 800X600 SVGA or grater 800X600 SVGA or grater 800X600 SVGA or grater

    CD-ROM drive At least one drive At least one drive At least one drive

    Communications Port At least one RS-232C Port

    OSItem

    128M bytes or more(128M bytes or more)

    192M bytes or more(192M bytes or more)

    256M bytes or more(256M bytes or more)

    Program size30K steps orless

    192M bytes or more(192M bytes or more)

    256M bytes or more(256M bytes or more)

    384M bytes or more(384M bytes or more)

    Program size120K steps orless

    Program sizeover 120Ksteps

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    5/59

    Series CPU Unit Type

    *1: For WS02-CXPC1-EJ-EV6 (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.

    CX-Programmer supports the following PLC (Programmable Logic Controller) types.

    Available Device Types

    CS1

    CJ1

    CP1(*1)

    C1000H

    C2000H

    C200H

    C200HXC200HGC200HE

    C200HX-ZC200HG-ZC200HE-Z

    C200HS

    CPM2* (*1)

    CPM2*-S* (*1)

    CPM1/CPM1A (*1)

    CQM1H

    CQM1

    CV1000 (*2)

    CV2000 (*2)

    CV500 (*2)

    CVM1

    IDSC

    SRM1 (*1)

    SYSMAC Board, orSYSMAC CS1 Board

    (Internal connection of a PCwith the SYSMAC board thatis built-in the PC where CX-Programmer is installed)

    FQM1 Series FlexibleMotion Controller

    CS1H-CPU67/66/65/64/63 (-V1)CS1G-CPU45/44/43/42 (-V1)CS1G-CPU45H/44H/43H/42HCS1H-CPU67H/66H/65H/64H/63HCS1D-CPU67H/65HCS1D-CPU67S/65S/44S/42S

    CJ1G-CPU45/44CJ1M-CPU23/22/21/13/12/11CJ1G- CPU45H/44H/43H/42HCJ1H-CPU66H/65HCP1H-X40DR-A/X40DT-D/X40DT1-DCP1H-XA40DR-A/XA40DT-D/XA40DT1-D

    C1000H-CPU01 (-V1)

    C2000H-CPU01 (-V1) (Simplex system only)

    C200H-CPU01/02/03/11/21/22/23/31

    C200HX-CPU34/44/54/64C200HG-CPU33/43/53/63C200HE-CPU11/32/42

    C200HX-CPU34-Z/CPU44-Z/CPU54-Z/CPU64-Z/CPU65-Z/CPU85-ZC200HG-CPU33-Z/CPU43-Z/CPU53-Z/CPU63-ZC200HE-CPU11-Z/CPU32-Z/CPU42-Z

    C200HS-CPU01/03/21/23/31/33

    CPM2A-20CD/30CD/40CD/60CDCPM2C-10CD/10C1D/20CD/20C1D

    CPM2C-S100C/110CCPM2C-S110C-DRT

    CPM1(A)-10CDR/20CDR/30CDR/40CDR (-V1)

    CQM1H-CPU11/21/51/61

    CQM1-CPU11/21/41/42/43/44/45

    CV1000-CPU01 (-V1)

    CV2000-CPU01 (-V1)

    CV500-CPU01 (-V1)

    CVM1-CPU01/11 (-V1) (-V2)/CPU21-V2

    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)CS1PC-PCI01H-DRM CS1G-CPU45H *4

    FQM1-CM001/MMA21 / MMP21

    C200PC-ISA03-SRM (C200HG-CPU43 *3)C200PC-ISA13-DRM (C200HX-CPU64 *3)C200PC-ISA13-SRM (C200HX-CPU64 *3)CS1PC-PCI01-DRM (CS1G-CPU45 *4)

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    6/59

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    7/59

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    8/59

    Before installation of CX-Programmer, you must:terminate all Windows programs, and

    uninstall older version of CX-Programmer and peripheral tools (such as CX-Protocol) ifthey are already installed.Installation takes about 5 to 20 minutes depending on your PC. (5 minutes for a PC withCPU: Celeron2.2GHz, main memory: 512MB, and CD-ROM drive: 48x)To change/modify/delete CX-Programmer after installation, refer to the PDF manualCX-Programmer Operation Manual, Chapter 2 Installation and Uninstallation.

    Before installation of CX-Programmer, you must:terminate all Windows programs, and

    uninstall older version of CX-Programmer and peripheral tools (such as CX-Protocol) ifthey are already installed.Installation takes about 5 to 20 minutes depending on your PC. (5 minutes for a PC withCPU: Celeron2.2GHz, main memory: 512MB, and CD-ROM drive: 48x)To change/modify/delete CX-Programmer after installation, refer to the PDF manualCX-Programmer Operation Manual, Chapter 2 Installation and Uninstallation.

    Insert the CX-Programmer installation disk (CD-ROM) to your PCs CD-ROM drive.[Choose Setup Language] dialog box is displayed. Default language of the OS on your PC isautomatically selected.Check if the language is appropriate, then click [OK].

    Click [OK].

    CX-Programmer splash screen is displayed, then CX-Programmer installation is started.

    1. Installation procedure of CX-Programmer

    1-1. Installing CX-Programmer

    Installationto Startup

    Installationto Startup

    Opening anew projectOpening a

    new projectDevice type

    settingsDevice type

    settingsCreating aprogram

    Creating aprogram

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    9/59

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    10/59

    [Setup Type] dialog box is displayed.

    elect an installationlder, then click [Next].

    By selecting [Custom], you canindividually select and install aperipheral tool.

    [Ready to Install the Program] dialog box is displayed.

    Read the message andclick [Next].

    Click [Install].CX-Programmer installation is started.

    Select the radio button[Complete].

    Click [Next].

    [Choose Destination Location] dialog box is displayed.

    If OMRON FB Library is selected, [Choose Destination Location] dialog box of OMRON FB

    Library is displayed.

    Installationto Startup

    Installationto Startup

    Opening anew projectOpening a

    new projectDevice type

    settingsDevice type

    settingsCreating aprogram

    Creating aprogram

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    11/59

    Click [Finish].

    A dialog box (left) is displayed.Click [Finish] button to finish theinstallation wizard.Now installation is completed.

    By checking [Online registration]check box, you can proceed toonline registration.

    Installationto Startup

    Installationto Startup

    Opening anew projectOpening a

    new projectDevice type

    settingsDevice type

    settingsCreating aprogram

    Creating aprogram

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    12/59

    If you have Internet environment for the installed PC, you can perform online user registration.

    After installation is completed, [Online Registration] dialog box is displayed.

    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 isdisplayed every time CX-Programmer is started.*2: If you do not have Internet environment, or you do not want to register online, fill and sendthe user registration card that comes with the product.

    1-2. Online Registration

    Installationto Startup

    Installationto Startup

    Opening anew projectOpening a

    new projectDevice type

    settingsDevice type

    settingsCreating aprogram

    Creating aprogram

    MEMO

    Use to record license No. etc.

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    13/59

    MEMO

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    14/59

    Windows task bar

    [Start]

    [Programs]

    [Omron]

    [CX-One]

    [CX-Programmer]

    [CX-Programmer]

    2. Startup of CX-Programmer

    The initial screen when starting up CX-Programmer is displayed.

    Installationto Startup

    Installationto Startup

    Opening anew projectOpening a

    new projectDevice type

    settingsDevice type

    settingsCreating aprogram

    Creating aprogram

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    15/59

    3. New Project Opening and Device Type Settings

    Click the toolbar button [New] in CX-Programmer.

    Click

    Click the left mousebutton on the Settings

    button to show the[Device Type Settings]dialog.

    Click the left mousebutton.

    Click the left mouse button onand select a CPU type.

    Click [OK] to decide theselected CPU type.

    Installationto Startup

    Installationto Startup

    Opening anew projectOpening a

    new projectDevice type

    settingsDevice type

    settingsCreating aprogram

    Creating aprogram

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    16/59

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    17/59

    The keyboard mapping function allows the function keys to operate like SYSWIN.

    Select the [Tools] -> [Keyboard Mapping...] menu.

    Click

    Click

    When SYSWIN key allocation is selected, a key operation guide will be displayed at the bottom of the display.When SYSWIN key allocation is selected, a key operation guide will be displayed at the bottom of the display.

    Display in Full View

    Right mouse-click

    Display in Normal View

    When Alt is pressed

    When Shift is pressed

    When Ctrl is pressed

    4-1. Compatible SYSWIN Key Allocation

    After the above operations,the key allocations will bechanged and becomecompatible with SYSWIN.

    Click the icon shown inthe task bar on the right-

    bottom of the display.

    Function keys will beavailable for entering

    ladder programs.

    Click

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    18/59

    4-2. Section

    Section is a function to create/display a block of a program divided per function. Itimproves not only the visibility of a program but also the development productivity byreusing components if the program consists of similar controls, because copy and paste onthe program tree are available.Moreover, program upload by section is possible and it enables you to do online operationsmoothly.

    Giving namesndicating the contentsf processing orontrols is possible.

    here is no limit on theumber of sections perrogram.

    Changing a section name

    Click the rightbutton of themouse on thesection whosename is to bechanged.

    Select [Rename].

    hanging the order ofections and copy & pastere possible by drag &rop with a mouse.

    Example

    Enter a given name.

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    19/59

    Addition of a section

    Click the rightmouse button on[NewProgram1].

    Select [InsertSection].

    It is possible to go to each section (a ladder block) from a section list.

    Perform the sameoperation as theprevious page toname the insertedsection.

    Double-click asection thatyou want tocheck its

    ladder.

    As checking the global image (control flow) of a program on the section list, you can go to a specified section.

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    20/59

    4-3. Deletion and Display of Unnecessary Windows

    Normal screen

    Alt 1

    ress from a keyboard

    To delete ProjectWorkspace,

    ress [Alt]+[1] tohow Project

    Workspace again.

    Alt 2

    ress from a keyboard

    o delete OutputWindow,

    ress [Alt]+[2] tohow Output

    Window again.

    SC] or

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    21/59

    5. Program CreationCoding of a simple program is explained here.

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    22/59

    After checking the cursor position at the upper left of Ladder Window, start programming.

    5-1. Entry of Normally Open Contact

    Press [C] from a keyboard to open the [New Contact] dialog.C

    00 of the upperdigit of anaddress canbe omitted.

    ENT

    Switch 1

    Enter a symbolcomment.ENT

    0 of the upper digit of an address is omitted when shown.[.] (period) is displayed between a channel number and a relay number.

    Deletion of instructionsMove the cursor to the instructionand then press the DEL key.Move the cursor to the right cell ofthe instruction and press the BS key.

    Installationto Startup

    Installationto Startup

    Opening anew projectOpening a

    new projectDevice type

    settingsDevice type

    settingsCreating aprogram

    Creating aprogram

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    23/59

    Output Windowautomatically opens.

    5-2. Entry of Coil

    Press [O] from a keyboard to open the [New Coil] dialog.O

    100

    ENT

    Coil 0

    ENT

    Press [R] to normalize a rung.

    R

    Useful Function: Automatic check of duplicated coilsIf a duplicated coil is entered during program creation, the following message isdisplayed and you can notice that the coil is duplicated right away.

    Useful Function: Automatic check of duplicated coilsIf a duplicated coil is entered during program creation, the following message isdisplayed and you can notice that the coil is duplicated right away.

    Press the [ESC] key to closethe open Output Window.

    The place of a duplicated coil in the program is displayed.

    Double-click by using a mouse (or press F4). The cursormoves to the place of the applicable coil on Ladder Window.

    Double-clickDouble-click

    Rungs are also normalized when you move thecursor position to the cell inverted in blue bypressing the arrow keys from a keyboard orusing a mouse.

    Installationto Startup

    Installationto Startup

    Opening anew projectOpening a

    new projectDevice type

    settingsDevice type

    settingsCreating aprogram

    Creating aprogram

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    24/59

    [Reference]

    1. Press [Alt]+[Y]. You can switch showing/hiding of Symbol Comment.

    Alt Y

    Tools] -> [Options]

    3. Select [Tools] | [Options] from the CX-Programmer menu. You can set hidingof the comment entry dialog.

    Click the check boxo remove the check

    mark.

    he comment entryialog is not displayednymore.

    2. Click the toolbar button [Show Program/Section Comments] to switch thedisplay of the comments shown in the head row.

    Click

    Installationto Startup

    Installationto Startup

    Opening anew projectOpening a

    new projectDevice type

    settingsDevice type

    settingsCreating aprogram

    Creating aprogram

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    25/59

    5-3. Edit of Symbol Comment

    Click

    adder Window iswitched to the Symbol

    Comment Editingwindow.

    ouble-click the leftouse button on a bitmber that you want toter a symbol comment,d you will able to enter

    ymbol comment.

    Example of copying & pasting comments of two bitsDrag the mouse with theight mouse buttonressed to invert theource bits of copy inlue.

    Click the rightmouse button onthe range, andselect [Copy] fromthe popup menu.

    Click the right mouse buttonon the bit number of the copydestination, and select [Paste].

    The comments of the selectedtwo bits are copied.

    Copy&Paste of symbolcomments is possible betweenExcel and CX-Programmer too.

    Copy&Paste of symbolomments is possible between

    Excel and CX-Programmer too.

    Installationto Startup

    Installationto Startup

    Opening anew projectOpening a

    new projectDevice type

    settingsDevice type

    settingsCreating aprogram

    Creating aprogram

    Copy&Paste and deletion of one or more comments are possible by the cell.Copy&Paste and deletion of one or more comments are possible by the cell.

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    26/59

    5-4. Entry of Rung Comment

    ove the cursor to thissition. (The rung isverted in blue.)

    ENT

    The entry screenshows up.

    Process_at_Startup]ter a rung comment.

    ENT

    5-5. Entry of Normally Closed Contact

    /

    1

    ENT

    Sensor 1

    ENT

    Press / from a keyboard to show the [New Closed Contact] dialog.

    Installationto Startup

    Installationto Startup

    Opening anew projectOpening a

    new projectDevice type

    settingsDevice type

    settingsCreating aprogram

    Creating aprogram

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    27/59

    101

    NT Coil 1

    ENT R

    5-6. Entry of Attached Comments

    This function is very useful for keeping change histories at maintenance and notesof debug bits at startup.

    Move the cursor tohe contact to whichou want to write annnotation.

    Alt ENT

    r click the rightouse button.

    > [Properties]

    The entry screen shows up.

    nter [Mar. 2002dded by Tanaka,aintenance Dept.].

    ENTPress [Alt] + [A] to switchshowing/hiding ofattached comments.

    Installationto Startup

    Installationto Startup

    Opening anew projectOpening a

    new projectDevice type

    settingsDevice type

    settingsCreating aprogram

    Creating aprogram

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    28/59

    5-7. Entry of Differential ContactUp

    C

    100

    ENT

    Click

    Click [Up].

    ENTThis entry method is available only forCS/CJ and CV series PLCs.For the other series PLCs, use DIFU (13).

    5-8. Entry of Differential ContactDownC

    101

    ENT

    Click

    This entry method is available only forCS/CJ and CV series PLCs.For the other series PLCs, use DIFD (14).

    Click [Down].

    Installationto Startup

    Installationto Startup

    Opening anew projectOpening a

    new projectDevice type

    settingsDevice type

    settingsCreating aprogram

    Creating aprogram

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    29/59

    5-9. Entry of VerticalUp

    Ctrl

    Or

    U

    O 200

    ENT Coil 2

    ENT R

    5-10. Entry of VerticalDown

    C 200

    ENT ENT

    ENT

    Coil 3

    O 300

    ENT

    Ctrl

    Or

    V

    Installationto Startup

    Installationto Startup

    Opening anew projectOpening a

    new projectDevice type

    settingsDevice type

    settingsCreating aprogram

    Creating aprogram

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    30/59

    5-11. Entry of Advanced Instructions 1 - Entry of Strings

    I

    ENT

    R

    Show the [New Instruction] dialog.

    ++ d0

    oducts ENT

    Enter an instruction and its operand.

    Enter a comment.

    See the next page forthe contents ofinstructions.

    Installationto Startup

    Installationto Startup

    Opening anew projectOpening a

    new projectDevice type

    settingsDevice type

    settingsCreating aprogram

    Creating aprogram

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    31/59

    Click

    Click

    .The reference guide screen of theinstruction shows up.

    Instruction Help Function

    Click .

    The list of advanced instructionsper function shows up.

    Find Instruction Function

    PLCs supporting the applicableinstruction are listed.

    5-12. Entry of Advanced Instructions 1 - Useful Functions

    Installationto Startup

    Installationto Startup

    Opening anew projectOpening a

    new projectDevice type

    settingsDevice type

    settingsCreating aprogram

    Creating aprogram

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    32/59

    C

    ENT

    5-13. Entry of Auxiliary Relay - 1.0 Second Clock Pulse Bit

    Show the [New Contact] dialog.

    Click

    lect [P_1s] from thell-down menu.

    Installationto Startup

    Installationto Startup

    Opening anew projectOpening a

    new projectDevice type

    settingsDevice type

    settingsCreating aprogram

    Creating aprogram

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    33/59

    ENT

    5-14. Entry of Advanced Instructions 2- Entry of Differential Instructions

    Differential InstructionsInstructions executed

    in only one scan when running a program.

    I

    Show the [New Instruction] dialog.

    Attach @ (at mark)efore instructions. It

    makes the instructionsifferential.

    ttach @ (at mark)efore instructions. Itakes the instructionsfferential.

    Enter a comment if necessary.

    ENT

    R

    efer to the formerages to executeding.

    Enter

    @MOV #0

    D100

    Installationto Startup

    Installationto Startup

    Opening anew projectOpening a

    new projectDevice type

    settingsDevice type

    settingsCreating aprogram

    Creating aprogram

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    34/59

    5-15. Entry of OR Rung

    ENT

    W 3

    ENT

    efer to the formerages to executeding.

    ENT

    ENT

    W 4

    ENT ENT

    Entry ofcomments isomitted here.

    efer to the section 5-o enter annotations.fer to the section 5-o enter annotations.

    Installationto Startup

    Installationto Startup

    Opening anew projectOpening a

    new projectDevice type

    settingsDevice type

    settingsCreating aprogram

    Creating aprogram

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    35/59

    5-16. Entry of Advanced Instructions 3 - Entry by Fun No.

    Show the [New Instruction] dialog.Show the [New Instruction] dialog.

    I

    021

    ENTer

    0 D0

    The instructioncorresponding to theentered Fun No. isdisplayed.

    The instructionorresponding to thentered Fun No. isisplayed.

    ENT

    R

    Refer to the section 5-4 to enter a rung comment.

    Note:The Fun No. of MOVdepends on PLC types.

    CS-series -> 021CJ-series -> 021

    CV-series -> 030C-series -> 21

    Note:The Fun No. of MOVdepends on PLC types.

    CS-series -> 021CJ-series -> 021CV-series -> 030C-series -> 21

    Installationto Startup

    Installationto Startup

    Opening anew projectOpening a

    new projectDevice type

    settingsDevice type

    settingsCreating aprogram

    Creating aprogram

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    36/59

    5-17. Entry of Timer Instructions

    Refer to the formerpages to enterrungs andcomments.

    Refer to the formerpages to enterungs andomments.

    ENT

    ENT

    T0: Indicates TIM0.

    nter a comment.

    imer 1

    Entry of a Timer bit

    Entry of a Timer instruction

    I

    TIM 0 #30

    ENT

    R

    Installationto Startup

    Installationto Startup

    Opening anew projectOpening a

    new projectDevice type

    settingsDevice type

    settingsCreating aprogram

    Creating aprogram

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    37/59

    C0

    5-18. Entry of Counter Instructions

    Refer to the formerpages to executecoding.

    Refer to the formerages to execute

    oding.

    I

    CNT 0 #5

    ENT

    R

    ove the cursor bying arrow keys or aouse.nter a bit for reset.

    ENT

    R

    402 ENT

    Entry of a Counter instruction

    Entry of a Counter bitENT

    ENT

    Installationto Startup

    Installationto Startup

    Opening anew projectOpening a

    new projectDevice type

    settingsDevice type

    settingsCreating aprogram

    Creating aprogram

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    38/59

    5-19. Edit of Rungs Copy & Paste

    Refer to the former sections to enter a rung.

    Ctrl C

    Move the cursor tohis position. Theung is inverted ashown right.

    ove the cursor tois position. Theng is inverted asown right.

    (Copy a rung) You can copy instructions selected by dragging a mouse.You can also cut selected rungs (instructions) by [Ctrl]+[X].

    Press the key to

    move the cursor tothis position.

    Press the key to

    move the cursor tothis position.

    Ctrl V

    Paste a copied rung)

    lick each instructionnd then change theit numbers.

    ick each instructiond then change thet numbers.

    When making a mistake, press or [Ctrl+Z] for Undo(return to the previous operation)

    press or [Ctrl+Y] for Redo (go to the next operation)

    Installationto Startup

    Installationto Startup

    Opening anew projectOpening a

    new projectDevice type

    settingsDevice type

    settingsCreating aprogram

    Creating aprogram

    5-20. Entry of END Instruction

    At the creation of a new project, asection of the END instruction only isautomatically generated.You do not need to enter an ENDinstruction.

    At the creation of a new project, asection of the END instruction only isautomatically generated.You do not need to enter an ENDinstruction.

    Note:The END section is not generated when you load a programcreated with CX-Programmer V2 or the former versions.

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    39/59

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    40/59

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    41/59

    Onlineto Transfer

    Onlineto Transfer MonitoringMonitoring

    Force OnForce OffForce OnForce Off

    ProgramCheck

    ProgramCheck

    OnlineEdit

    OnlineEdit

    2. Going Online

    Normal online. Enables you to go online with a PLC of the device type and method specified when opening a project.Normal online. Enables you to go online with a PLC of the device type and method specified when opening a project.

    Auto online. Automatically recognizes the connected PLC and enables you to go online with a PLC with one button.-> Uploads all data such as programs from the PLC.

    Auto online. Automatically recognizes the connected PLC and enables you to go online with a PLC with one button.-> Uploads all data such as programs from the PLC.

    Online with Simulator. Enables you to go online with CX-Simulator with one button (You need to install CX-Simulator.)Online with Simulator. Enables you to go online with CX-Simulator with one button (You need to install CX-Simulator.)

    This time, online/debugfunctions when working

    online with CX-Simulatorare explained in thisguide (Install CX-Simulator separately).

    This time, online/debugfunctions when workingonline with CX-Simulatorare explained in thisguide (Install CX-Simulator separately).

    Click [OK].

    Click [OK].

    The background color

    of Ladder Windowchanges to gray.

    The background color

    of Ladder Windowchanges to gray.

    Scan time is displayed(except for Program Mode).Scan time is displayed(except for Program Mode).

    The operating modeof the active PLC isshown.

    The operating modeof the active PLC isshown.

    Click

    The CX-SimulatorConsole box isshown.

    The CX-SimulatorConsole box isshown.

    CX-Programmer provides three kinds of connecting methods depending on usage.

    Program transfer starts.

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    42/59

    Onlineto Transfer

    Onlineto Transfer MonitoringMonitoring

    Force OnForce OffForce OnForce Off

    ProgramCheck

    ProgramCheck

    OnlineEdit

    OnlineEdit

    3. Monitoring

    The on/off statuses of contacts and coils are monitored.

    Click

    Change the PLCsimulator) to

    Monitor Mode.

    hange the PLCimulator) to

    Monitor Mode.

    Click [Yes].

    If your program has a large volume ofdata, the scroll speed of the screenmay become slow when monitoring.

    In that case, click the below icon tocancel monitoring once, scroll thescreen to the address you want tomonitor, and then change tomonitoring mode again.

    toggles on/off of PLC monitoring.

    The rungs beingmonitored are shownin a specified color.

    The rungs beingmonitored are shownin a specified color.

    The present value ofI/O memory is shown.The present value ofI/O memory is shown.

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    43/59

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    44/59

    ENT

    Alt 3

    6. Monitoring - 4 Watch Window

    I/O monitoring of the addresses specified in Watch Window is executed.

    Display WatchWindow.

    Enter a bit numberhat you want to

    monitor. 400

    ess the ENT keyntinuously for autocrement of addresses.

    You can also enter a givenaddress in this status.You can also enter a givenaddress in this status.

    ENTENT

    ENT

    Onlineto Transfer

    Onlineto Transfer MonitoringMonitoring

    Force OnForce OffForce OnForce Off

    ProgramCheck

    ProgramCheck

    OnlineEdit

    OnlineEdit

    Entry of BOOL type (contact)ntry of BOOL type (contact) Example: Entry of 4CH 00Bit

    Or enter 400 without a period in the Name oraddress box and then specify BOOL in the DataType/Format box (Reverse the box and then press Bkey form the keyboard.)

    Or enter 400 without a period in the Name oraddress box and then specify BOOL in the DataType/Format box (Reverse the box and then press Bkey form the keyboard.)

    Enter . (period) between CH and Bit.Enter . (period) between CH and Bit.

    The addresses registered in Watch Window are still storedwhen CX-Programmer is opened next time.

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    45/59

    Onlineto Transfer

    Onlineto Transfer MonitoringMonitoring

    Force OnForce OffForce OnForce Off

    ProgramCheck

    ProgramCheck

    OnlineEdit

    OnlineEdit

    7. Monitoring - 5 Present Value Change and Binary Monitoring in Watch Window

    In Watch Window, binary monitoring is possible for the data that can betreated by the word.

    uble-click the mouse.

    The present values of bits and words are changed in Watch Window.

    An entry dialogopens.

    Enter a newvalue that youwant to change to.

    Click

    word data issplayed in thenary system.

    word data isplayed in the

    nary system.

    Click the right mouse buttonon a bit, and you will be ableto select Force On/Off andSet On/Off from the popupmenu.As shown in the guidance at

    the bottom of the dialog,Force On/Off and Set On/Offare enabled also by keyoperation.

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    46/59

    8. Useful Functions of Watch Window

    ick the right buttona mouse on Sheet1,d then select

    Watch Sheet] ->ename].

    ck the right buttona mouse on Sheet1,d then select

    Watch Sheet] ->ename].

    To add a sheet,

    select [Watch sheet]-> [Insert].

    To add a sheet,

    select [Watch sheet]-> [Insert].

    Watch Window has a function that classifies and displays data in sheets like MS-EXCEL and names each sheet given names.This function is useful for debug or startup if you gather and manage the bits and wordsyou want to check as one block in one sheet.

    Click [OK].Click [OK].

    It is useful to manage data if you name sheets by thephase or assembly.

    The names set by this operation are all saved when the project is saved (extension: .opt).Therefore, they are loaded as well as data such as ladder programs when the project isloaded next time.

    The names set by this operation are all saved when the project is saved (extension: .opt).Therefore, they are loaded as well as data such as ladder programs when the project isloaded next time.

    Onlineto Transfer

    Onlineto Transfer MonitoringMonitoring

    Force OnForce OffForce OnForce Off

    ProgramCheck

    ProgramCheck

    OnlineEdit

    OnlineEdit

    Enter a name.Enter a name.

    Right-click on Watch Window. -> Select[View] from the popup menu. And then youwill be able to choose showing/hiding of eachitem on Watch Window.

    Right-click on Watch Window. -> Select[View] from the popup menu. And then youwill be able to choose showing/hiding of eachitem on Watch Window.

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    47/59

    9. Monitoring - 6 Watch Window - 2

    Drag & Drop from Ladder Diagram enables you to add an address to be monitored.Move the mousecursor to thisposition.

    Move the mousecursor to thisposition.

    Drag and drop on WatchWindow.Drag and drop on WatchWindow.

    Data such as rungs, bits per block, or operands of advanced instructions ispasted on Watch Window.Moreover, the on/off statuses of the bits and the present values of wordsare displayed.

    Data such as rungs, bits per block, or operands of advanced instructions ispasted on Watch Window.Moreover, the on/off statuses of the bits and the present values of wordsare displayed.

    Onlineto Transfer

    Onlineto Transfer MonitoringMonitoring

    Force OnForce OffForce OnForce Off

    ProgramCheck

    ProgramCheck

    OnlineEdit

    OnlineEdit

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    48/59

    10. Monitoring - 7 Rung-wrap of Long Rung on Display

    This function makes a rung longer than the right bus bar as shown in the below figurewrap when displayed.

    Select [View] ->[Show inRungWrap].

    The rung is wrapped at the right bus bar.

    Once set, this function is always active until released by taking the reverseprocedure of the above one.

    Onlineto Transfer

    Onlineto Transfer MonitoringMonitoring

    Force OnForce OffForce OnForce Off

    ProgramCheck

    ProgramCheck

    OnlineEdit

    OnlineEdit

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    49/59

    11. Monitoring - 8 Differential Monitor

    The function detects differential up/down of a specified bit and indicates thatdifferential conditions are satisfied by sound or display.The function eliminates the use of a trap rung for checking operation andimproves the efficiency of programming and debug operations.

    Click

    click the right mousetton on the applicableand selectifferential Monitor]m the popup menu.

    Move the cursor to ait to be monitored.

    Click [Start].

    The count number is displayed on thedialog every time the differentialcondition (differential up in this

    example) is satisfied and the color ofthe box changes each time.

    The count number is displayed on thedialog every time the differentialcondition (differential up in thisexample) is satisfied and the color ofthe box changes each time.

    Onlineto Transfer

    Onlineto Transfer MonitoringMonitoring

    Force OnForce OffForce OnForce Off

    ProgramCheck

    ProgramCheck

    OnlineEdit

    OnlineEdit

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    50/59

    12. Force On/Off

    Contacts/coils are forced on/off from CX-Programmer.ve the cursor to a

    ntact or coil that you

    nt to force on/off.

    ick the right mousetton. ->orce] -> [On]

    ck the right mouseton. ->rce] -> [On] mark indicates that the bit is

    now being forced on/off.

    13. Displaying List of Forced-on/off Bits

    The bits forced on/off can be listed in a table.

    This function enables you to check the forced statuses of more than one bit at a glance.Display ProjectWorkspace.[Alt] + 1

    Double-click[Memory].

    Click the[Address] tab.

    Double-click[Forced Status].

    Onlineto Transfer

    Onlineto Transfer MonitoringMonitoring

    Force OnForce OffForce OnForce Off

    ProgramCheck

    ProgramCheck

    OnlineEdit

    OnlineEdit

    rce Off/Cancel ofs/coils are enabledthe same way.

    rce Off/Cancel ofs/coils are enabledhe same way.

    Once bits/coils are forced on/off, the forced statuses are held until cancelled or thereverse procedures of on/off are taken.The statuses do not change by an external input or the operational result of theprogram.Moreover, force operations are not enabled when the PLC is in the Run mode.

    hortcut Keytrl+J: Force Ontrl+K: Force Off

    hortcut Keytrl+J: Force Ontrl+K: Force Off

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    51/59

    Onlineto Transfer

    Onlineto Transfer MonitoringMonitoring

    Force OnForce OffForce OnForce Off

    ProgramCheck

    ProgramCheck

    OnlineEdit

    OnlineEdit

    14. Changing Set Value of Timer

    The set value of a timer is changed while CPU is running (in the Monitor mode only).

    ove the cursor to thet value of a timer.

    Enter the new set value #100.

    Click [OK] to complete.

    15. Changing Present Value of Timer

    ove the cursor to theesent value of a

    mer.

    Enter a new present value 5000.

    Click [Set] to complete.

    The present value of a timer is changed while CPU is running (in the Monitor mode only).

    btraction starts frome new value 5000.

    ENT

    Or double-click.

    ENT

    Or double-click.

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    52/59

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    53/59

    Onlineto Transfer

    Onlineto Transfer MonitoringMonitoring

    Force OnForce OffForce OnForce Off

    ProgramCheck

    ProgramCheck

    OnlineEdit

    OnlineEdit

    17. Find Function - 2 Retrace Find of Ladders

    The function retraces ladder rungs so that you can find the causes of the coils not turned on.

    (1)The reason why the coil 3.00 is not turned on is that its contact 2.00 is not turned on.

    Therefore, the function retraces rungs to find the coil 2.00.(2)Move the cursor to the following position (contact 2.00) and press the [Space] key.

    Space

    (3)The reason why the coil 2.00 is not turned on is that the contact 1.00 or 1.01 is notturned on. Suppose the cause is the contact 1.00 and find the coil of 1.00. Move thecursor to the contact 1.00 and press the [Space] key as well as the above operation (2).

    (4)If this rung is not a cause press [Shift]+[Space], and you will able to go back to therung before you started to find this rung.

    Space

    Spacehift

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    54/59

    Onlineto Transfer

    Onlineto Transfer MonitoringMonitoring

    Force OnForce OffForce OnForce Off

    ProgramCheck

    ProgramCheck

    OnlineEdit

    OnlineEdit

    (5)Then retrace rungs to find a cause from the contact 1.01. As well as the operationsso 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.01that was not turned on.

    Press the [Space] key to jump from a coil to a contact having the same address as thecoil 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 nextone 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.

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    55/59

    Onlineto Transfer

    Onlineto Transfer MonitoringMonitoring

    Force OnForce OffForce OnForce Off

    ProgramCheck

    ProgramCheck

    OnlineEdit

    OnlineEdit

    18. Find Function - 3 Find by Keyword in Comment

    If you enter an operators name or an operation date in annotations as a note atstartup or maintenance, this function finds the bit or word that the name or date isused and displays the result on Output Window.

    Click

    The [Find] dialog

    shows up.

    Click .Select [All (strings)] from thepull-down menu.

    PLCTo find a target from all tasks(programs).

    Current viewTo find from a section or task(program) being edited-> Click an icon in ProjectWorkspace to select a task.

    Scope of Find is specifiable.

    Click [OK].

    nter a keyword tond.

    Click

    Double-click an item, and thenthe cursor moves to theapplicable bit in LadderWindow.

    Double-click an item, and thenthe cursor moves to theapplicable bit in LadderWindow.

    The contacts/coils of whichannotations include thekeyword entered in theFind dialog are displayedon Output Window.

    The contacts/coils of whichannotations include thekeyword entered in theFind dialog are displayedon Output Window.

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    56/59

    Onlineto Transfer

    Onlineto Transfer MonitoringMonitoring

    Force OnForce OffForce OnForce Off

    ProgramCheck

    ProgramCheck

    OnlineEdit

    OnlineEdit

    19. Find Function - 4 Go To Rung Comment

    This is a function that displays a list of rung comments on the screen and moves thecursor to the position where a selected rung comment is used in the ladder.Rung comments improve the efficiency of debug or maintenance of rungs divided intoblocks per function.

    list of the rungomments used inungs are displayed onseparate window.

    t Shift R

    ck a rung comment inlist, and the cursor

    es to the positionere the rung comment

    used in the ladder.

    L

    Or

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    57/59

    Onlineto Transfer

    Onlineto Transfer MonitoringMonitoring

    Force OnForce OffForce OnForce Off

    ProgramCheck

    ProgramCheck

    OnlineEdit

    OnlineEdit

    20. Find Function - 5 Find Bit Addresses

    ck the right mouseton on Ladderndow. Select [FindAddresses] frompopup menu.

    Enter an addressbit number) to find.period between a

    channel and a bit isunnecessary.)

    Click the [How toInput] button, andthe Help of [Find

    and ReplaceExamples] will bedisplayed.

    Set the scope ofFind (Current view).

    Click [Report].

    Click [OK].

    Output Window isisplayed and theesults are listed.

    utput Window issplayed and thesults are listed.

    Double-click an itemn the list, and theursor will go to thepplicable bit.

    ouble-click an item

    the list, and theursor will go to thepplicable bit.

    Find Addresses and FindMnemonics are alsoavailable.

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    58/59

    Onlineto Transfer

    Onlineto Transfer MonitoringMonitoring

    Force OnForce OffForce OnForce Off

    ProgramCheck

    ProgramCheck

    OnlineEdit

    OnlineEdit

    21. Online Edit

    (1) Move the cursor to a rung you want to modify.

    (2) Select [Program] -> [Online Edit] -> [Begin] from the CX-Programmer menu.

    (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.

    Double-clickDouble-click

    End

    ou can also select morean one rung byrag&Drop with a mouse.

  • 8/6/2019 [696]CX Programmer Introduction Guide R132 E1 02

    59/59

    You can select either vertical or horizontal display of output instructions.

    Useful Functions

    Vertical display of output instructions

    [Tools(T)] -> [Options(O)]

    Check the [Showutput instructions

    horizontally (H)] box.

    heck the [Showutput instructionsorizontally (H)] box.

    Horizontal display of output instructions