CX-Programmer User Manual (986752), страница 15
Текст из файла (страница 15)
Double-click on the object to redisplaythe Edit dialogue, this is dependent upon the selection.The Auto Error Detection bar to the left of the rung indicates the validity of the entries.It is possible to design a network and get the geometry right before entering specific symbol or addressinformation.A Grid can be toggled on or off using by selecting the Grid button from the toolbar.When the Grid is on, dots are displayed at the connection points of each cell in theprogram.Page 70Revision 2.0OMRONCHAPTER 4 – ReferenceProgram steps (graphically represented) are entered in a row or ladder ‘rung’ between the left (powersupply) and right (output) bus-bars.Additional rows and columns can be inserted into the Ladder program via the Insert Row option andInsert Column option from the context sensitive menu.
Rows and columns can also be removed byselecting Delete Row option and Delete Column option from the context sensitive menu.It is necessary to create a new rung before a new ladder circuit can be entered. This can be done via theInsert/Rung menu, and it is possible to insert a new rung above or below the currently selected one.Inserting a ProgramA program is set up when the project is initially configured. For CS1-series PLCs and CV-series PLCs,it is possible to add multiple programs.Use the following procedure to insert a program.1, 2, 3…1.To insert a new program, select the PLC object in the project workspace.2.Select the New Program button from the toolbar.
An empty Ladder program isplaced in the Diagram Workspace.3.The task type associated with the program must be assigned. Select the programobject in the project workspace and select the Show Properties button from thetoolbar. The Program Properties dialogue is displayed.4.From the General tab, select an option from the Task Type field.5.Select the Close button from the title bar to close the Program Properties dialogue.The project is updated, showing a new program inserted at the bottom of the hierarchy together with anempty local symbol table.
Task types available are as follows (the icon is displayed next to the Programobject in the project workspace, and the task number is shown in brackets to the right).Task TypeIconTask TypeUnassignedInterval TimerInterrupt TaskIO InterruptPower FailureCyclic TaskIconContact and Coil EditingThe Edit Contact dialogue or Edit Coil dialogue allow the name or address of the contact or coil to beentered or selected from a list of global and local symbols. The name or address can also be defined asa new symbol from this dialogue and inserted into the local or global symbol table.Revision 2.0Page 71CHAPTER 4 – ReferenceOMRONUse the following procedure to edit contacts or coils.1, 2, 3…1.Double-click on the required contact in the Ladder program.
The Edit Contactdialogue or Edit Coil dialogue is displayed.2.Enter a name or address for the contact or coil. This can be typed in directly orselected from the field. Select the Edit Symbol pushbutton to amend an existingsymbol if required.To enter a symbol with an automatically allocated address, enter the name andleave the address empty. To enter an unnamed symbol, enter an address and acomment.Note:Page 723.The Differentiation status of the operand bit can be set to prevent it from beingturned ON for more than one cycle after the execution condition goes from ON toOFF (Down) or OFF to ON (Up). Select the Up option for OFF to ON or theDown option for ON to OFF.4.Select the Immediate Refresh option if the operand is to be updated as soon as theinstruction has been executed.5.When adding a new symbol, select Global to add a symbol to the PLCs symboltable. Select Link to the CX-Server file to share the symbol definition with otherapplications (named, global symbols only)6.Select the OK pushbutton to complete the operation.
Select the Cancel pushbuttonto abort the operation.The Differentiation option and Immediate Refresh setting can also be set from thecontact or coil context sensitive menu by selecting the element in the Ladder programand clicking the right-mouse button. A symbol is placed in the Ladder program toindicate that these options have been set: ‘!’ for Immediate refresh, ‘^’ forDifferentiate up; ‘v’ for Differentiate down.Revision 2.0OMRONCHAPTER 4 – ReferenceInvert (NOT)The Invert (NOT) setting allows the normal state of a contact or coil (open or closed) to be reversed.Select Invert (NOT) from the context sensitive menu, whilst the contact or coil is selected.Forced BitsThe state of an address can be ‘forced’ regardless of its physical state.
This is useful when testing certainconditions or rungs in the Ladder program. A bit can be forced on (value changed to 1) or forced off(value changed to 0), the value of the bit can also be cleared. The following rules apply:♦Bit references that are read-only cannot be forced;♦ Word references may not be forced.Forcing is only allowed when the PLC is in Debug or Monitor mode (not Run mode).Use the following procedure to force bits.1, 2, 3…1.Obtain the Ladder program and select the element to be forced.2.Select Force from the context sensitive menu, followed by On, Off or Cancel.Select Force from the context sensitive menu, followed by Cancel All to cancel all forced bits so thatcurrent values are free to be changed by the PLC program.Once an element has been forced, a symbol is placed in the Ladder program to indicate that its status hasbeen forced.♦Set.
Set is available from the contact or coil context sensitive menu. The bit can be set to 1 or 0 byselecting the Set option from the contact or coil context sensitive menu followed by Value, To 1 orTo 0.♦Differentiate. Differentiate is available from the contact or coil context sensitive menu, performingthe same functions as that within the Edit Contact dialogue. Select Differentiate from the contextsensitive menu, followed by Up or Down.♦Immediate. Immediate Refresh is available from the contact or coil context sensitive menu,performing the same functions as that within the Edit Contact dialogue.
Select Immediate Refreshfrom the context sensitive menu.♦Differential Monitor. Differential Monitor is for bits that are not accessible for conventionalmonitoring (for instance, values changing too rapidly), but which can be monitored via theDifferential Monitor dialogue. The dialogue permits the selection of a particular bit to monitor,whether it is monitored against its falling or rising edge, and whether sound should be used whenthe bit value changes.Revision 2.0Page 73CHAPTER 4 – ReferenceOMRONUse the following procedure to apply the differential monitor.1, 2, 3…1.Select the Program object in the project workspace to display the Ladder programin the Diagram Workspace.2.Select the Work On-line button from the toolbar. A confirmation message isdisplayed: select the Yes pushbutton to connect to the PLC.3.Select the Run Mode button from the toolbar.
Differential monitoring can onlybe accomplished in this PLC operating modes.4.Select the Toggle PLC Monitoring button from the toolbar to start monitoringpower flow in the Ladder program.5.Select the contact or coil to monitor.6.Select the Differential Monitor button from the toolbar. The Differential Monitordialogue is displayed.7.The address associated with the contact or coil selection is displayed in the Addressfield. Select an Edge option.8.Select the Sound setting to retrieve audio whilst monitoring.9.Select the Start pushbutton to start monitoring. The Start pushbutton becomes aStop pushbutton.10. Select the Stop pushbutton to cancel monitoring.
Select the Close pushbutton toexit the dialogue.11. Select the Toggle PLC Monitoring button from the toolbar to stop monitoring.Instruction EditingThe Edit Instruction dialogue allows an instruction to be selected and entered into the Ladder program.Page 74Revision 2.0OMRONCHAPTER 4 – ReferenceUse the following procedure to edit instructions.1, 2, 3…1.Double-click on the instruction field in the Ladder program. The Edit Instructiondialogue is displayed.2.Enter an instruction, either by name or by number.