Home
- Divelbiss Corporation
Contents
1. Page 4 of 4 SECTION 17 TARGET FEATURES amp FUNCTIONS LISTS EZ LADDER User s Manual Tien Divelbiss Corporation Section 17 Target Features amp Functions Lists EZ LADDER is designed to interface and program multiple products targets Each target s features and sup ported functions may differ based on the design of the target and it s intended uses This section describes each target s supported features and functions PLC oN A CuiP PLCHIP M2 1280X The supported features include all features that are supported individually Using certain features may limit availability of other features SUPPORTED FEATURES Analog Inputs 8 Channels Real Time Clock External SUPPORTED FUNCTIONS Less Than lt Less Than Equal To lt Not Equal To lt gt Equal To Greater Than gt Greater Than Equal To gt Absolute Value ABS Addition ADD Bitwise AND AND Average AVG Bit Pack BIT PACK Bit Unpack BIT UNPACK Convert to Boolean BOOLEAN Compare CMP Hardware Counter CNTRTMR Count Down CTD Count Up CTU Count Up Down CTUD Division DIV Drum Sequencer DRUM SEQ Falling Edge Detect TRIG Get Date GETDATE Get Time GETTIME High Speed Timer HIGH SPD TMR Hysteresis HYSTER Convert to Integer INTEGER Latching Coil LATCH Hardware Counter Retentive Varia
2. 545 171217941846 65262 EngmeTemperawe 1s 6 65263 ngineFiudLeveVPressue EEFUPt sooms 6 p2o4ost00101 1001 bananas Lun me l a 2227 2228 65265 Cruise Control Vehicle Speed CCVS 100 ms 600 601 602 976 966 967 968 1237 1633 L 6 0000000 6 _ 102 106 106 107 12173 6 rasi 65271 Vehicle Electrical Power V 65272 _ rransmission Fuis r ns C T1 TF Related Functions EZ LADDER User s Manual 20 45 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects JMP Symbol Inputs gt gt Labell None Outputs None Description The JMP function allows sections of ladder to be skipped by jumping to another section A LABEL must first be placed before the JMP is inserted When the condition is true to trigger the jump the program scan jumps to the label skipping any ladder between the jump and label Example Circuit Inputi He o Labell Output Labell Output Related Functions LABEL EZ LADDER User s Manual 20 46 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects KEYPAD Symbol NND MANU KEVPADI EN Boolean Function Enable Input function is disabled if EN is false MI Integer Real Minimum value allowed to be entered JEN QF MA Integer Real Maximum value allowed to be entered Outputs aL ee Q Boolean Function En
3. EZ BEE EZ Dea X amp ES 5 f IMP Label mud C Abc dt CTU CTD CTUD TP TON TOF Insert Function TON Start Stop ST Motor i ka ontacts Boolean Variable Motor on Motor on Lab Part of Object 2 Motor on TONI Time ST 3 IN Q l Timer Variable PT ET Be STA z Linked to Object 4 4 NUM Figure 5 3 Declaring and Placing Variables Placing and declaring variables is easy When placing certain objects coils and contacts Contact Properties dialog box will appear You can choose a variable from the drop down list or type in a new name and click ok If you select a name that already exists the object placement is finished If a new variable name is given a warn ing is given that the Variable doesn t exist Create it now Click YES to create the variable and configure its type see later this section on variable attributes Figure 5 4 shows the Contact Properties dialog box Figure 5 5 shows the warning dialog Figure 5 6 shows configuring the variable Variables must begin with a letter EZ LADDER User s Manual 9 3 Divelbiss Corporation Section 5 Using EZ LADDER to Create Ladder Diagrams Contact Properties Variable Mame CRI EZ LADDER Contact Type Normally Open A variable doens t exist Normally Closed Create iE now Edit Variables Cancel No Figure 5 4 Figure 5 5 When placing other types of objects that require li
4. Data Bits o Baud Aate dg o Packet Transmit Delay 3 5 Character Times Cancel Figure 7 2 EZ LADDER User s Manual l 2 Divelbiss Corporation Section 7 Modbus Slave Configure the parameters of the Modbus Setup window and click OK The parameters are Slave ID This is the slave ID 1 247 of the unit where the ladder diagram is to be installed Each target slave in the network should have its own unique ID number Duplicate ID numbers on targets will interfere with communications RTU Binary communication packet less data and faster than ASCII ASCII Hex communication packet more data and slower than RTU Comm Mode Type of communiations RS232 RS422 or RS485 Parity Select parity for the communication packet Even Odd or None Databits Select the number of databits in the communication packet 7 or 8 Baud Rate Select the baud rate for the serial port 9600 19200 38400 57600 or 115200 bps Packet Transmit Delay Minimum number of charater times to delay before sending a response Example 9600 baud 10 9600 1000 3 5 3 65mSec Register Assignments EZ LADDER supports the following register assignments for Modbus communiation Type Begin End Coils MB 10001 MB 20000 Used to set state of Output or Internal Coils variables Discrete Inputs MB 20001 30000 Used to read status of Internal or Real World Inputs Input Registers MB 30001 40000 Read only registers th
5. INSERT VARIABLES Opens the ADD vari Edit zen vae Inst able dialog box and inserts variables into the Ua EL p dies Yars ae Yars workspace fy P MONITOR Switches from the workspace to C COMPILE Compiles the EZ LADDER pro the real time monitoring screen for program Abc COMMENT Use to add comments to the lad gram to work with the selected Target der diagram project debugging and viewing J 1 DIRECT CONTACT Places Direct Contact jil NEGATED CONTACT Places Negated DIRECT OUTPUT COIL Places a Direct objects in the workspace Contact objects in the workspace in Output Coil in the workspace NEGATED OUTPUT COIL Places a Negated COUNT UP FUNCTION Places an Up COUNT DOWN FUNCTION Places a Down ill Output Coil in the workspace CTU Counter function in the workspace CTD Counter function in the workspace EZ LADDER User s Manual 2 4 Divelbiss Corporation Section 2 Navigating EZ LADDER COUNT UP DOWN FUNCTION Places an TP PULSE TIMER FUNCTION Places a Pulse TON TON ON DELAY TIMER FUNCTION Places a Up Down Counter function in the workspace Timer function in the workspace TON function in the workspace CTUD TOF TOF OFF DELAY TIMER FUNCTION Places ks FUNCTION Insert Function Drop down box Scroll and a TOF function in the workspace Insert Function lt select the desired function block Ladder Diagram Workspace The ladder diagram workspace is
6. Type copy amp paste the provided Counter Key below then click Proceed Activation Ken TC1C1C1C1C0E16121C Counter Key Cancel Proceed 3 Copy Paste or type your Activation key into the Activation key box if not already pre loaded Complete all other form entries All information must be completed 4 Click the REGISTER amp GET KEY button The Activation key and other information will be confirmed and if valid a Counter key will be displayed If the information is not valid the registration will fail Xmaet Paris Jur Plugs Automati BPraduik CPurthabe Suppo Conger Contect UM EZ LADDER Toolkit Activation Plaara complete thin form ta activate tha F7 LADDER Tacthit and receive your activation kay Baby Bear EF We Select x Zipi ila j Cortified Hey TORE WIZIC 150 9001 2000 with Design CID Gode Register amp Get Key Padte Pine pe Abend Privacy amp Terma cd Use Pokey Tema amp Conditions to Petmastergeleelbins com xx TT EZ LADDER User s Manual 1 5 Divelbiss Corporation Section 1 Getting Started 5 Copy Paste the Counter Key that is returned into the Activation dialog box in the Counter Key field Make sure no extra spaces are present and click PROCEED EZ LADDER will now verify the Counter Key and if valid will activate the installed copy Please note one copy of EZ LADDER may only
7. alg ll To connect to the hardware target select the Connect button from the tool bar If the opened ladder dia gram project in EZ LADDER is already installed on the target same version the monitor mode window will show the ladder diagram execution including power flow and scan time EZ LADDER s staus will change to Running f the currently opened ladder diagram project is not loaded then EZ LADDERS s status will change to Waiting If the currently opened ladder diagram project is loaded but not the same version or build a dialog box will be displayed with the version information 2 iii To disconnect from the hardware target select the Disconnect button from the tool bar To monitor a program the version currently opened in EZ LADDER and the program stored on the target must match name and version If these do not match the program must be downloaded to the target or the down loaded version must be opened in EZ LADDER Build information increments each time a program is compiled Downloading to Targets To monitor a program the version currently opened in EZ LADDER and the program stored on the target must match name and version This is accomplished by downloading the program to the target This action send the compiled program and stores it in the targets non volatile memory where it will remain until overwritten To download the program to the target select the Download button from the tool bar EZ LADDER must be
8. EZ LADDER User s Manual 13 3 Divelbiss Corporation SECTION 14 MATRIX KEYPAD EZ LADDER User s Manual 14 1 Divelbiss Corporation Section 14 Matrix Keypad Keypad Functionality The Keypad feature provides that ability to add a 4x5 keypad matrix and monitor it from the ladder diagram The Keypad functionality must be installed on the target before it may be used For information on connections and compatability of the keypad please refer to the PLC on a Chip Circuit Design Guildelines document To install the Keypad in the target configuration Use the menu select PROJECT SETTINGS The ProjectSettingsForm dialog will open Select the target Click the PROPERTIES button Click the ADD button From the provided ADD dialog Devices list select the Keypad See Figure 14 1 DIS Sc Deniert Settings Ex Target Version Options Target Description Enhanced Baby Bear 128K Divelbiss Corporation Enhanced Baby Bear Enhanced Baby Bear 255K Divelbiss Corporation Enhanced Baby Bear Modbus Filler Hea M l l a 4 te ite LI J L 1 Me m enel PCS 2o0 EE Device Mame Description GPO5 Onboard digital output 5 GPO6 Onboard digital output 6 PO Onboard digital output 7 HDIO Divelbiss High Density IO Bus KEYPAD Kevpad Din Di Width Miadi variable Mames Figure 14 1 5 Click ok to install
9. Limit LIMIT Moving Average MAVG Maximum MAX Minimum MIN Modulo MOD Multiplication MULT Bitwise NOT NOT Bitwise OR OR Rising Edge Detect R_TRIG Convert to Real REAL Rotate Left ROL Rotate Right ROR Reset Set Reset Dominant RS Select SEL Set Date SETDATE Set Time SETTIME Shift Left SHL Shift Right SHR Serial Print SERIAL_PRINT Set Reset Set Dominant SR Subtraction SUB Convert to Timer TIMER Time Delay Off TOF Time Delay On TON Pulse Timer TP Unlatching Coil UNLATCH Bitwise XOR XOR EZ LADDER User s Manual 17 20 Divelbiss Corporation Section 17 Target Features amp Functions Lists PLC on A CHIP CONTROL SvsrEM PCS 1X1 PCS 1X2 The supported features include all features that are supported individually Using certain features may limit availability of other features SUPPORTED FEATURES Retentive Variables Real Time Clock HDIO Bus Serial Printing Modbus Slave EEPROM Storage Analog Inputs 6 Channels Analog Outputs 4 Channels PWM Outputs 2 Channels SUPPORTED FUNCTIONS Less Than lt Less Than Equal To lt Not Equal To lt gt Equal To EEPROM Read EEPROM_READ EEPROM Write EEPROM_WRITE Greater Than gt Greater Than Equal To gt Absolute Value ABS Addition ADD Bitwise AND AND Average AVG Bit Pack BIT_PACK Bit Unpack BIT UNPACK Convert to Boolean BOOLEAN Compare CMP Count Down
10. Section 5 Using EZ LADDER to Create Ladder Diagrams 7 EZ Ladder EZ Ladder3 dld ela EZ Os tan 6 JMP Edit Inst Ys l 3x DEL arsi Vas fy C Abc 9 CTU CTD CTUD TP TON TOF Insert Function CTD CR3 Starting verify LINK ERROR Vertical link not found at 7 1 1 Errors found 6 1 Figure 5 12 EZ 1 1 3 4 _ 2 EZ a i Dock X5 8 V JMP Edit Inst sy ABEL vun E C MON Abc JF 4 4 CTD CTUD TP TON TOF Insert Function CTD CR3 Coils Contacts Functions Variables Labels EEPROM bytes used 0 EEPROM bytes left 1984 End compile Figure 5 13 EZ LADDER User s Manual 5 12 Divelbiss Corporation SECTION 6 DOWNLOADING amp MONITORING LADDER DIAGRAMS EZ LADDER User s Manual 6 1 Divelbiss Corporation Section 6 Downloading amp Monitoring Ladder Diagrams Switching To From Monitor Mode EZ LADDER has two modes of operation Edit and Monitor The Edit mode is where the ladder diagram is creat ed edited and compiled To communicate with hardware targets EZ LADDER must be placed in the Monitor mode MON To switch to the Monitor Mode select the Monitor button from the tool bar The workspace will change showing different tool bars Figure 6 1 shows the monitor mode EZ Desa 3 Program Info Program Scan Time S Info N Status Program Mame Program Version
11. TILE Standard Windows features ARRANGE ICONS Standard Windows features HELP MENU ABOUT EZ LADDER Displays the current EZ LADDER file versions and the licensing information EZ LADDER Tool Bars and Buttons Tool bars are provided for easy and quick access for commonly used objects and actions There are three basic toolbars Each toolbar has shortcut buttons for easy access Below is description of each toolbar shortcut but ton Lah 55m 5m TY JMP Edit Inst Label MON Abe k gt gt Vars Yars fy C it ill il CTU CTD CTUD TP TON TOF Insert Function E Figure 2 2 3 y OPEN Opens the Open File dialog box for SAVE Saves the currently active EZ LADDER NEW Creates a NEW EZ LADDER Project selecting EZ LADDER programs mj Diagram in the workspace CUT Cuts Selected EZ LADDER objects from COPY Duplicates Copies the selected object T the workspace in the workspace PRINT Opens the Print dialog box ABOUT Displays information about the EZ SELECTION TOOL Selects Highlights VERTICAL CONNECTION Draws vertical LADDER program k objects in the workspace p connection bars between ladder objects JUMP Places a JUMP command for the lad der diagram to jump to a label The label Label LABEL Creates a Label for the JUMP tool HORIZONTAL CONNECTION Draws horizon JMP tal connection bars between ladder objects gt gt must be placed before the JUMP The label must be created before the JUMP
12. stop Motor 1 CRI 2 aia cia alae seal BLUE Indicates a FALSE RED Indicates a TRUE Tip NO POWER FLOW Condition POWER FLOW Condition 3 i Figure 6 2 V The program execution may be stopped by pressing the Stop button on the tool bar Y To start a stopped program execution press the Go button on the tool bar Targ To get information about the targets kernel software it uses to execute the ladder diagram press the Into Targ Info button from the tool bar Hover Boxes In the Monitor mode EZ LADDER provides additional information in real time Placing the pointer over an object will cause a hover box to appear This box provides additional information about the object the pointer is hovering over Figure 6 3 shows a hover box EZ LADDER User s Manual 6 4 Divelbiss Corporation Section 6 Downloading amp Monitoring Ladder Diagrams E LADDER mstart dld Dc s Targ Info EZ File Edit Project Reports Window Help x Status Running Program Mame mstart Program version 0 0 0 0 Build Number 5 0000 es OPEN CONTACT i Sii Ea Hoy E TEN M INTERNAL Hover Box shows type of object M object name internal or I O address and current state Th Figure 6 3 Changing Variable Values In the Monitor mode EZ LADDER provides an option for changing the value of a variable
13. true when function is enabled O Integer Real Output Moving average of P input Description The MAVG function calculates the moving average of the P input The number of samples are specified when the object is placed The output O is the cacluated moving average value of the P1 input The enable EN must be true for the MAVG function to be enabled When EN is true the output is the moving average When EN is false the output is equal to the P input Input MAYG1 Example Circuit Related Functions AVG EZ LADDER User s Manual 20 59 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects MAX Symbol Inputs EN Boolean Function Enable Input function is disabled if EN is false EN Px Integer Real Input Output is equal to the largest input PI 0 Outputs Q Boolean Function Enable Output true when function is enabled O Integer Real Output Equal to the largest Px input value Pe Description The MAX function outputs the largest of the Px input values The number of inputs is specified when the object is placed The enable EN must be true for the MAX function to be enabled Input Number Number Example Circuit Related Functions MIN EZ LADDER User s Manual 20 60 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects MIN Symbol Inputs MIN EN Boolean Function Enable Input function is disabled if EN is false EN Px Integer Real Input Outp
14. 12 Click ok to close the ProjectSettingsForm dialog and save the changes The PWM channels are now ready for use using the PWM and PWM FREQ functions a ee EZ LADDER User s Manual 10 3 Divelbiss Corporation Section 10 PWM Outputs PWM Properties Fw Channels CLE AJ Phd CLE FwM2 CLE B PwW3 CLE Remove Phd CLE A PhS CLK AJ FwMB CLK E CLK E Max Frequency 47 058 KHz Min Frequency 1 436 Hz CLE Desired Frequency Hz 2500 Actual Frequency Hz 2526 31 CLE B Desired Frequency Hz ji EL Actual Frequency Hz ji B00 000 Figure 10 3 EZ LADDER User s Manual 10 4 Divelbiss Corporation SECTION 11 SPI SLAVE EZ LADDER User s Manual Tr Divelbiss Corporation Section 11 SPI Slave SPI SLAVE EZ LADDER supports SPI Slave configuration and use depending upon the actual hardware target that is to be used The following information is necessary to use the SPI Slave feature of EZ LADDER SPI SLAVE CONFIGURATION Before these functions can be used to control the target s hardware SPI port it must be installed using EZ LAD DER in the target s configuration To install SPI Slave in the target configuration Use the menu select PROJECT SETTINGS The ProjectSettingsForm dialog will open Select the target Click the PROPERTIES button Click the ADD button From the provided ADD dialog Devices list select the SPI Slave See Figure 11 1
15. 5 Maximum Momentary Engine Override Speed Poit 65251 16 168 0125 o mm mm 594 Maximum Momentary Engine Override Time Limit 65251 8 wa o1 o s s 535 Requested Speed Control Range Lower Limit 65251 s 192 10 o mm mm 536 Requested Speed Control Range Upper Limit 65251 s 200 l 10 o mm mm ss Requested Speed Control Torque Lower Limit ess s 28 1 ms 538 Requested Speed Control Torque Upper Limit ess zie 1 ms 539 PementToueAtide Pont essi s v 1 ms a s 540 Percent TorqueatPoint2 esi s 40 1 ms s 541 Percent TorqueatPonts 7700100000 esi s e l 1 ms ww _ 542 Percent Torgue AtPointa essi e e 1 ms v 543 Percent TorqueatPonts s n 1 s om 544 Reference Engine Torque 1 essi ve tse 1 o bt 545 Gain of Endspeed Govemor 251 16 136 Joooozaj o rpm 974 Remote Accelerator Cotta e 2 o4 o 1134 Engine intercooler Thermostat Opening ese2 se oa o Parameter Group Number Info PGN Description Abbrev Repetition Rate Priority Length 61443 Electronic Engine Controller 2 EEC2 91 92 558 559 974 1437 61444 Electronic Engine Controller 1 EECT 190 512 513 899 1483 1675 2432 5 61445 Electronic Transmission Controller 2 Er2 he2163523524520 65251 JEngine Configuration ec f ss e
16. BIT UNPACK Reset Set Reset Dominant RS Clear Display SI CLRDISP Select SEL Convert to Boolean BOOLEAN Set Date SETDATE Compare CMP Set Time SETTIME Hardware Counter CNTRTMR Shift Left SHL Count Down CTD Shift Right SHR Count Up CTU Set Reset Set Dominant SR Count Up Down CTUD Subtraction SUB Division DIV Convert to Timer TIMER Drum Sequencer DRUM SEQ Time Delay Off TOF Falling Edge Detect F_TRIG Time Delay On TON Get Date GETDATE Pulse Timer TP Get Time GETTIME Unlatching Coil UNLATCH Hysteresis HYSTER Write to Display SI DISP Convert to Integer INTEGER Bitwise XOR XOR EZ LADDER User s Manual 17 25 Divelbiss Corporation Section 17 Target Features amp Functions Lists SoLvES IT PLUG iN PLC SI 110 The supported features include all features that are supported individually Using certain features may limit availability of other features SUPPORTED FEATURES EEPROM Storage Programmable LED 1 Hardware Counter 3 Analog Inputs 2 Pots 4 Dual Function I O In Out 2 Outputs SUPPORTED FUNCTIONS Less Than lt Latching Coil LATCH Less Than Equal To lt Limit LIMIT Not Equal To lt gt Moving Average MAVG Equal To Maximum MAX EEPROM Read EEPROM_READ Minimum MIN EEPROM Write EEPROM WRITE Modulo MOD Greater Than gt Multiplication MULT Greater Than Equal To gt Bitwise NOT NOT Absolute Value ABS Bitwise OR OR
17. Internal Retentive Cancel Figure 5 15 When this input is true it signifies the variable bit associated is true In this example if the 2 bit would be true then the input would be true Keeping Variable Values on Power Loss In the event of a power loss to the target EZ LADDER is designed to allow ladder diagram variables to be stored and then be reloaded when power is restored This is called the Retentive feature See section 8 for more details on the retentive feature C O OOOO T T l EZ LADDER User s Manual 9 8 Divelbiss Corporation Section 5 Using EZ LADDER to Create Ladder Diagrams Placing Objects and Drawing Links A ladder diagram is made of objects tied together by links To place an object in a project select the object from the tool bar or the tool bar s drop down menu Position the pointer where the object is to be inserted and left click This places the object Repeat this step for other objects as required Figure 5 10 shows placement of a direct contact and a direct coil Refer to section 10 for details on all the functions and their variable require ments The last placed object stays selected until a different object is chosen and can be placed multiple times without the need of re selecting the object E aa EZ Oem X 5 JMP Edit Inst k Label e Viro e C Abc T CTU CTD CTUD TP TON TOF Insert Function lt vj CRI CR2 1
18. PLCHIP M2 2563X Info 17 4 PLC on a Chip Module PLCMOD M2 12800X Info 17 5 PLC on a Chip Module PLCMOD M2 12801X Info 17 6 PLC on a Chip Module PLCMOD M2 25600X Info 17 7 PLC on a Chip Module PLCMOD M2 25601 X Info 17 8 PLC on a Chip Module PLCMOD M2 25620X PLCMOD M2 25630X Info 17 9 PLC on a Chip Module PLCMOD M2 25621X PLCMOD M2 25631X Info 17 10 Enhanced Baby Bear ICM EBB 100 Info 17 11 Enhanced Baby Bear ICM EBB 200 Info 17 12 Enhanced Baby Bear ICM EBB 300 Info 17 13 Enhanced Baby Bear ICM EBB 400 Info 17 14 Enhanced Baby Bear ICM EBB 500 Info 17 15 Enhanced Baby Bear ICM EBB 600 Info 17 16 Enhanced Baby Bear ICM EBB 700 Info 17 17 Harsh Environment Controller HEC 1000 Info 17 18 Harsh Environment Controller HEC 2000 Info 17 19 PCS Controllers PCS 1X0 Info 17 20 PCS Controllers PCS 1X1 PCS 1X2 Info 17 21 PCS Controllers PCS 2X0 Info 17 22 PCS Controllers PCS 2X1 PCS 2X2 Info 17 23 Solves It Plug in PLC SI 100 Info 17 24 Solves It Plug in PLC SI 200 Info 17 25 Solves It Plug in PLC SI 110 Info 17 26 Solves It Plug in PLC S1210 Info 17 27 Section 18 EZ LADDER Reports 18 1 Variable Definitions 18 2 Cross References 18 2 Section 19 Troubleshooting 19 1 Error Messages 19 2 Connecting Functions to Functions Mistakes 19 5 Section 20 EZ Ladder Functions amp Objects 20 1 Object Basics 20 2 List of EZ Ladder Functions amp Objects 20 2 Language Functions amp Objects 20 4 EZ L
19. Reset Set Reset Dominant RS Select SEL Shift Left SHL Shift Right SHR Set Reset Set Dominant SR Subtraction SUB Convert to Timer TIMER Time Delay Off TOF Time Delay On TON Pulse Timer TP Unlatching Coil UNLATCH Bitwise XOR XOR EZ LADDER User s Manual 17 5 Divelbiss Corporation Section 17 Target Features amp Functions Lists PLC A CHIP PLCMOD M2 12801X The supported features include all features that are supported individually Using certain features may limit availability of other features SUPPORTED FEATURES Analog Inputs 8 Channels Real Time Clock SUPPORTED FUNCTIONS Less Than lt Less Than Equal To lt Not Equal To lt gt Equal To Greater Than gt Greater Than Equal To gt Absolute Value ABS Addition ADD Bitwise AND AND Average AVG Bit Pack BIT_PACK Bit Unpack BIT UNPACK Convert to Boolean BOOLEAN Compare CMP Hardware Counter CNTRTMR Count Down CTD Count Up CTU Count Up Down CTUD Division DIV Drum Sequencer DRUM_SEQ Falling Edge Detect F_TRIG Get Date GETDATE Get Time GETTIME High Speed Timer HIGH SPD TMR Hysteresis HYSTER Convert to Integer INTEGER Latching Coil LATCH Hardware Counter Retentive Variables Limit LIMIT Moving Average MAVG Maximum MAX Minimum MIN Modulo MOD Multiplication MULT Bitwise NOT NOT Bitwise OR OR Rising Edge Detect R_T
20. Variables are placed in the text using flags and print specification fields The following is the configuration for adding variables to the text flag width precision Example Text OIL PSI 3d Jo identifies the beginning of a variable or other type of text entry flag This flag is optional Use the following flags to change the way data is transmitted Flag Description Left align the variable within the specified width Default is align right 0 If width is prefixed with 0 leading zeros are added until the minimum width is reached If 0 and are used together the 0 is ignored If O is specified in an integer format the 0 is ignored width This flag is optional Width is the number of characters that will be printed total precision This flag is optional The precision is the number of digits after the decimal point when using REAL variables VARIABLE FORMATS Variables are formatted based on the variable type The following are supported variable types and their format Jod Signed Integer jo X Upper Case Hexidecimal 9 Unsigned Integer of Real or Float Variable Vox Lower Case Hexidecimal Job binary 0 Octal OTHER SPECIAL CHARACTERS FORMATS Print Use Print Use Boolean 1 Jod FALSE TRUE Jo T Examples Format Result Format Result OIL d OIL 25 OIL 04d OIL 0025 LS1 T LS1 TRUE LS1 O LS1 OFF TEMP 6 2f TEMP 234 12 TEMP 3 f TEMP 234 Example Circuit CR LCD P
21. gt Equal To EEPROM Read EEPROM_READ EEPROM Write EEPROM_WRITE Greater Than gt Greater Than Equal To gt Absolute Value ABS Addition ADD Bitwise AND AND Average AVG Bit Pack BIT PACK Bit Unpack BIT UNPACK Convert to Boolean BOOLEAN Compare CMP Hardware Counter CNTRTMR Count Down CTD Count Up CTU Count Up Down CTUD Division DIV Drum Sequencer DRUM_SEQ Falling Edge Detect F_TRIG Get Date GETDATE Get Time GETTIME High Speed Timer HIGH SPD TMR Hysteresis HYSTER Convert to Integer INTEGER J1939 Receive 1939 SPN Latching Coil LATCH Hardware Counters 2 Channels Retentive Variables J1939 Communications EEPROM Storage Programmable Status LED Limit LIMIT Moving Average MAVG Maximum MAX Minimum MIN Modulo MOD Multiplication MULT OptiCAN Node Status OPTICAN NODESTATUS OptiCAN Transmit Message OPTICAN TXNETMSG Bitwise NOT NOT Bitwise OR OR Pulse With Modulation PWM PWM Frequence PWM_FREQ Rising Edge Detect R_TRIG Convert to Real REAL Rotate Left ROL Rotate Right ROR Reset Set Reset Dominant RS Select SEL Set Date SETDATE Set Time SETTIME Shift Left SHL Shift Right SHR Set Reset Set Dominant SR Subtraction SUB Convert to Timer TIMER Time Delay Off TOF Time Delay On TON Pulse Timer TP Unlatching Coil UNLATCH Bitwise XOR XOR EZ LADDER User s Manual 17
22. must be enabled installed in the target settings project settings and is only available on targets with CAN net work capability 41939 Target Configuration Before J1939 parameters may be received the J1939 communications must be installed in the target settings Divelbiss standard controllers based on PLC on a Chip Enhanced Baby Bear PCS XXX etc are configured based on the part number To configure select the correct part number Click 1939 PROPERTIES and jump to step 8 to configure the serial port To install J1939 in the target configuration for PLC on a Chip 1 Use the menu select PROJECT SETTINGS The ProjectSettingsForm dialog will open Select the target 2 Click the PROPERTIES button 3 Click the ADD button 4 From the provided ADD dialog Devices list select the J1939 See Figure 15 1 EZ Ladder Standard EZ Ladder aag EZ amp k Project Settings Sets jt Target Version Options Target jiet Description Enhanced Baby Bear 128K Divelbiss Corporation Enhanced Baby Bear Enhanced Baby Bear 256K Divelbiss Corporation Enhanced Baby Bear Modbus x HEC 1000 Divelbiss Corporation Harsh Environment PLC ICE CUBE Nivelhiss Cormoration CLIBE Controller 5 Coils 1 Pesa f Pus Contacts PCS 2XX Functions PLC ON A CE Variables DCPN PLCHIP M2 2563X Labels 2 Code Type i Devices C Device Marr C Device 3 Description GPO7 Onboard digita
23. provided that the EZ LADDER Toolkit i has not been modified ii has been maintained according to all applicable maintenance recommendations iii has not been used with hardware or software or installed or operated in a manner inconsistent with any manuals or relevant system requirements provided by Divelbiss and iv has not been subjected to abuse negligence or other improper treatment including without limitation use outside the operating environment or range of applications prescribed in any manuals or relevant system requirements provided by Divelbiss by Divelbiss Provided that Licensee gives prompt written notice to Divelbiss of any alleged breach of the foregoing warranty and that such alleged breach can be reproduced by Divelbiss Divelbiss will use commercially reasonable efforts to repair or replace the EZ LADDER Toolkit so that it performs as warranted or at its sole option refund to Licensee a prorated share of the license fee paid by Licensee for the portion of the EZ LADDER Toolkit which caused the alleged breach of warranty Licensee acknowledges that the foregoing represents Divelbiss s sole obligation and Licensee s sole remedy for any alleged breach of warranty regarding the EZ LADDER Toolkit Divelbiss expressly disclaims any and all warranties concerning any Resulting Products and any applications developed tested installed or distributed by Licensee using the Licensed Software and Licensee expressly acknowledges that it
24. to the DIRECT COIL then it will be true on If there is no power flow to the DIRECT COIL then it will be false off Example Circuit Inputi Outputl Related Functions INVERTED COIL LATCH UNLATCH DIRECT CONTACT INVERTED CONTACT EZ LADDER User s Manual 20 21 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects DIRECT CONTACT Normally Open Symbol Inputs None Outputs None Description The DIRECT CONTACT is a boolean representation of an internal variable Control relay or an actual hardware real world input Its normal state is false or normally open A true on condition of the input will cause the con tact to close and allow power flow A false off condition of the input the contact will be open and not allow power flow Example Circuit Inputi Outputl Related Functions INVERTED CONTACT DIRECT COIL INVERTED COIL LATCH UNLATCH EZ LADDER User s Manual 20 22 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects DIV Symbol Inputs Y EN Boolean Function Enable Input function is disabled if EN is false EN Q P1 Integer Real Input Dividend to be divided P2 Integer Real Input Divisor to divide by Pl Outputs Q Boolean Function Enable Output true when function is enabled B O Integer Real Output result quotient of the division Description The DIV function divides the P1 input by the P2 input and outputs the result
25. 2 33 PM Filename C temptEZ Ladder3 did Target Divelbiss Corporation PLC ON A CHIP Version 0 0 0 0 Build Number 1 BOOLEAN Harme i Humber L efault Value Description CRI INTERHAL 0 CR INTERNAL 0 CRS INTERNAL CRA INTERMAL INTEGER Hare Type Lil Number Default Value Description cntval INTERNAL count INTERNAL REAL Harme Type Ii Humber Default Value Descnption TIMER Name Lil Humber Default Value D escnption Figure 18 1 EZ LADDER User s Manual 18 3 Divelbiss Corporation Section 18 EZ LADDER Reports Cross References Date 1 4 2005 3 03 PM Filename C temp EZ Ladders did Target Divelbiss Corporation PLC ON A CHIP Version 0 0 0 0 Build Humber 1 INPUT Desenption OUTPUT Harme Euns Descnption INTERNAL ung Description CRI GHA CR3 CRA cntval count FUNCTION Hame Description 1 NOT USED CONTACTS WITHOUT COILS Harre Fung Description CRI 2 CR2 3 CR3 1 COILS WITHOUT CONTACTS Eung Description GHA 1 Figure 18 2 EZ LADDER User s Manual 18 4 Divelbiss Corporation SECTION 19 TROUBLESHOOTING EZ LADDER User s Manual 19 1 Divelbiss Corporation Section 19 Troubleshooting Error Messages The following is a list and description of errors that my be encountered while using EZ LADDER to develop down load and monitor programs A different program is running Monitor Mode When connecting to
26. Addition ADD Rising Edge Detect R_TRIG Bitwise AND AND Convert to Real REAL Average AVG Rotate Left ROL Bit Pack BIT_PACK Rotate Right ROR Bit Unpack BIT UNPACK Reset Set Reset Dominant RS Convert to Boolean BOOLEAN Select SEL Compare CMP Shift Left SHL Hardware Counter CNTRTMR Shift Right SHR Count Down CTD Set Reset Set Dominant SR Count Up CTU Subtraction SUB Count Up Down CTUD Convert to Timer TIMER Division DIV Time Delay Off TOF Drum Sequencer DRUM_SEQ Time Delay On TON Falling Edge Detect F_TRIG Pulse Timer TP Hysteresis HYSTER Unlatching Coil UNLATCH Convert to Integer INTEGER Bitwise XOR XOR EZ LADDER User s Manual 17 26 Divelbiss Corporation Section 17 Target Features amp Functions Lists SOLVES IT PLUG IN PLC SI 210 The supported features include all features that are supported individually Using certain features may limit availability of other features SUPPORTED FEATURES EEPROM Storage 4 Digit 7 Segment Display Programmable LEDs 4 Programmable Pushbuttons 2 Real Time Clock Retentive Variables Hardware Counter 3 Analog Inputs 2 Pots 4 Dual Function I O In Out 2 Outputs SUPPORTED FUNCTIONS Less Than lt Latching Coil LATCH Less Than Equal To lt Limit LIMIT Not Equal To lt gt Moving Average MAVG Equal To Maximum MAX EEPROM Read EEPROM READ Minimum MIN EEPROM Write EEPROM WRITE Modulo M
27. Build Number Scan Time ms Coils 1 Contacts Functions Variables Labels 2 Status of Target PROM REAI CRI Q Tam 1 AD 5 lt gt Ready Nn Figure 6 1 The following is a description of the Monitor mode s tool bar buttons Edit EDIT Exits the Monitor Screen and returns 8 ernie pont nter en LAM AJ 015 Dis connects the EZ LAD I to the EDIT Ladder Diagram Workspace lr E nication g 8 DER application from the hardware target POANEJAD me arie BUE ae STOP Halts execution of a ladder diagram START Starts execution of a stopped ladder gram to the hardware target and start its execu f liem unctioning on the hardware target diagram on the hardware target Targ TARGET INFO Displays information about the ERASE EEPROM Frases all contents from Info ladder diagram and the hardware target EEPROM on the hardware target Qe When using the ERASE EEPROM button use caution as the erase action can not be undone E dit To return to the Edit mode select the Edit button from the tool bar The Monitor mode will close and the Edit mode window will then reappear xx EZ LADDER User s Manual 6 2 Divelbiss Corporation Section 6 Downloading amp Monitoring Ladder Diagrams Connecting to Targets In order to send a program to a target or monitor the program running on a target EZ LADDER must first con nect to the target
28. Codes Status Codes Common Error Codes 1 Reset 65535 CAN Controller Receive Error 2 Active 65534 CAN Controller Receive Warning 4 Reset 65533 CAN Controller Transmit Error 65532 CAN Controller Transmit Warning 65531 CAN Controller Bus Off State 65530 CAN Controller Data Overrun 65519 OptiCAN Heartbeat Timeout 65518 CAN Controller Error OptiCAN Node List Notes Notes can be added to the list of nodes to help with documentation and service later This is accessed from the OptiCAN Configuration Tool To access this feature click Reports Node List The Node List Report window will open Place the cursor under the Note Heading next to the node of choice Simply type in the notes for that node The node list and notes may be saved and printed for future reference EE Node List Report Made ID Serial Number Type Notes 4 OY 240004 HEC 1000 Harsh Environment Controller This i where can type a note for 1100 Harsh Environment Digital lO This ig where can type nate for Figure 16 17 EZ LADDER User s Manual 16 18 Divelbiss Corporation OptiCAN Controller Network Planning This form is to be used with OptiCAN enabled controllers only for the purpose of identifying planning and logging network registers and ID s Controller Network Setup Controller Description 1300 Broadcast Heartbeat Y N Will this controller Broadcast Start Stop Reset Y N Broadcast Rate PI ms Registe
29. Days The number of days duration the timer is required to function 4 Hours The number of hours duration the timer is required to function 5 Minutes The number of minutes duration the timer is required to function 6 Seconds The number of seconds duration the timer is required to function 7 Milli Seconds The number of milli seconds duration the timer is required to function The milli second resolution is target specific 8 Retentive This checkbox specifies the timer to keep its value when power is lost on the target Click OK to close the Add Variable box once all the attributes are complete Click OK again to close the Variables dialog box A timer variable has been successfully added Larger times may be entered into fields provided that the total timer value does not exceed 24 days For exam ple 1000 ms may be entered and will be considered 1 second when the program executes However if 750 hours is entered its time is greater than 24 days and the timer will not function correctly Add Timer Seles Mame TmrMame Retentive Description this is the description of the timer variable LI as 55 Hours Minutes B Seconds NEN Milliseconds D 2 5 ms Cancel WN CO Figure 5 9 Bit Addressible Variables Variables may be defined as bit addressible Integer only These variables individual bits may be modified set or read using other boolean variables Each integer addressible var
30. Divelbiss shall be relieved of any obligation pursuant to the limited warranty set forth in Section 5 hereof Should Licensee request modifications to the Licensed Software Divelbiss may charge for and make such changes subject to the terms of a separate agreement between the parties Licensee may not modify the Licensed Software or engage any third party to modify the Licensed Software without the express written consent of Divelbiss Any and all modifications made to the Licensed Software whether by Licensee or any third party and all rights therein are hereby assigned to and shall be the sole and exclusive property of Divelbiss Ownership of Licensed Software Licensee acknowledges that subject only to the license specifically granted herein all right title and interest in and to the Licensed Software all revisions and copies thereof provided to or created by Licensee and all modifications thereof by whomever made are and shall remain the sole and exclusive property of Divelbiss LICENSEE ACKNOWLEDGES THAT VARIOUS ASPECTS AND FEATURES OF THE LICENSED SOFTWARE MAY BE PROTECTED UNDER APPLICABLE PATENT COPYRIGHT TRADEMARK AND TRADE SECRET LAW AND THAT EXCEPT AS EXPRESSLY AUTHORIZED IN WRITING BY DIVELBISS LICENSEE MAY NOT USE DISCLOSE OR REPRODUCE OR DISTRIBUTE ANY COPIES OF THE LICENSED SOFTWARE IN WHOLE OR IN PART NOR AUTHORIZE OR PERMIT OTHERS TO DO SO Licensee further acknowledges that any applications made by Licensee using the
31. EEPROM_READ EEPROM Write EEPROM_WRITE Greater Than gt Greater Than Equal To gt Grey Scale Encoder GC SSI Absolute Value ABS Addition ADD Bitwise AND AND Average AVG Bit Pack BIT_PACK Bit Unpack BIT UNPACK Convert to Boolean BOOLEAN Compare CMP Hardware Counter CNTRTMR Count Down CTD Count Up CTU Count Up Down CTUD Division DIV Drum Sequencer DRUM_SEQ Falling Edge Detect F_TRIG Get Date GETDATE Get Time GETTIME High Speed Timer HIGH SPD TMR Hysteresis HYSTER Convert to Integer INTEGER Keypad KEYPAD Latching Coil LATCH LCD Clear LCD CLEAR LCD Print LCD PRINT Limit LIMIT Moving Average MAVG Maximum MAX Minimum MIN Modulo MOD Multiplication MULT Bitwise NOT NOT Bitwise OR OR Pulse With Modulation PWM PWM Frequence PWM FREQ Rising Edge Detect R_TRIG Convert to Real REAL Rotate Left ROL Rotate Right ROR Reset Set Reset Dominant RS Select SEL Set Date SETDATE Set Time SETTIME Shift Left SHL Shift Right SHR Serial Print SERIAL_PRINT Set Reset Set Dominant SR Subtraction SUB Convert to Timer TIMER Time Delay Off TOF Time Delay On TON Pulse Timer TP Unlatching Coil UNLATCH Bitwise XOR XOR EZ LADDER User s Manual 17 8 Divelbiss Corporation Section 17 Target Features amp Functions Lists PLC oN A CHIP MoouLE PLCMOD M2 25620X PLCMOD M2 25630X The s
32. Enhanced Baby Bear 255K Divelbiss Corporation Enhanced Baby Bear 3 Code Type Serial Settings Par JLUMI hal 5 2 Buad Rate 57600 4 Figure 4 1 1 Project Setting Tabs 2 Serial Settings Select the appropriate tab to configure target settings Figure 4 2 represents the TARGET tab Figure 4 3 represents the VERSION tab and Figure 4 4 represents the OPTIONS tab Configure the Serial Port to what will be used to communicate to the target These settings are used to connect download and monitor ladder diagram programs running in EZ LADDER s program run and monitor mode 3 Target Select the hardware target for the EZ LADDER diagram project 4 Code Type Configure the type of code for EZ LADDER to generate Refer to specific target requirements or contact the hardware manufacturer Setting this option is not available on all hardware targets 5 Properties Display Configure specific properties for each specific target selected This button is only available on certain targets Properties may include J1939 PWM and OptiCAN 6 Modbus Display Configure Modbus settings for hardware target This button is only available on certain targets EZ LADDER User s Manual 4 2 Divelbiss Corporation Section 4 Configuring EZ LADDER for Targets Selecting the Hardware Target Select the hardware target from the list Certain targets PLC on a Chip require additional configurations Once the target
33. HYSTER EN Boolean Function Enable Input function is disabled if EN is false Min A Real Input Actual input R Real Input Rise input A FQ F Real Input Fall input Outputs RQ Boolean Output true when actual A is gt rise R FQ Boolean Output true when actual A is fall F Description The HYSTER provides hysteresis into a control loop When the actual A is grater than the rise R then output RQ is true and FQ is false When actual A is less than fall F the output FQ is true and RQ is false The enable EN must be true for the HYSTER function to be enabled Example Circuit CR3 HYSTER CR1 Related Functions LIMIT EZ LADDER User s Manual 20 39 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects INTEGER Symbol Inputs INTEGER EN Boolean Function Enable Input function is disabled if EN is false EN Q P Boolean Real Timer Input Output is integer of this input P Outputs Q Boolean Function Enable Output true when function is enabled O Integer Output Integer conversion of P input If the input type is a timer then the output is a integer representation in milliseconds of the input value Description The INTEGER function converts the input P into an integer ouput O The enable EN must be true for the INTEGER function to be enabled The Q output is true when the INTEGER function is enabled Example Circuit Inputi INTEGER Related Functions REA
34. LADDER Functions amp Objects SI CLRDISP Symbol Inputs Sl CLADISP EN Boolean Function Enable Input function is disabled if EN is false EH Outputs Q Boolean Function Enable Output true when function is enabled Description The SI CLRDISP function erases what is currently displayed on the Solves It s 4 digit display Example Circuit sl CLADISP Related Functions SI DISP EZ LADDER User s Manual 20 89 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects SQRT Symbol Inputs SORT EN Boolean Function Enable Input function is disabled if EN is false EN Q P1 Real Input Output is square root of this input PI Outputs Q Boolean Function Enable Output true when function is enabled O Real Output Square root value of P1 input Description The SQRT function provides the square root O from the input value P1 The enable EN must be true for the SQRT function to be enabled The Q output is true when the SQRT function is enabled Input SQRT InputNum f Outputi Example Circuit Related Functions MULT DIV MOD EXP LN EXPT LOG a JY EZ LADDER User s Manual 20 90 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects SR Symbol Inputs SR S Boolean Input function SET input R Boolean Input function RESET input Outputs Q Boolean Output Latched output Description The SR function acts as a set dominant bistable If the set input S is
35. Licensed Software including any incorporated into Resulting Products are derivative works made solely with the authorization of Divelbiss in consideration for which Licensee agrees to provide upon request from Divelbiss copies of all such applications to Divelbiss and grants to Divelbiss a perpetual irrevocable royalty free license to copy and use such applications so long as Divelbiss is not competing with Licensee Licensee shall not nor will it assist others in attempting to decompile reverse engineer or otherwise re create the source code for or functionality of the Licensed Software Licensee shall not use the Licensed Software for the purpose of developing any similar or competing product or assisting a third party to develop a similar or competing product At no expense to Divelbiss Licensee will take any action including executing any document requested by Divelbiss in order to secure perfect or protect the rights of Divelbiss in the Licensed Software or Confidential Information as hereinafter defined Confidentiality Except as expressly provided in this Agreement Licensee shall not disclose or permit disclosure to any third parties the Licensed Software including object code source code and documentation or any other confidential information provided by Divelbiss Confidential Information Further Licensee will use all reasonable precautions and take all steps necessary to prevent any Confidential Information from be
36. Not Equal To lt gt Equal To EEPROM Read EEPROM_READ EEPROM Write EEPROM WRITE Greater Than gt Greater Than Equal To gt Absolute Value ABS Addition ADD Bitwise AND AND Average AVG Bit Pack BIT_PACK Bit Unpack BIT UNPACK Convert to Boolean BOOLEAN Compare CMP Count Down CTD Count Up CTU Count Up Down CTUD Division DIV Drum Sequencer DRUM SEQ Falling Edge Detect F_TRIG High Speed Timer HIGH SPD TMR Hysteresis HYSTER Convert to Integer INTEGER EEPROM Storage Latching Coil LATCH Limit LIMIT Moving Average MAVG Maximum MAX Minimum MIN Modulo MOD Multiplication MULT Bitwise NOT NOT Bitwise OR OR Rising Edge Detect R_TRIG Convert to Real REAL Rotate Left ROL Rotate Right ROR Reset Set Reset Dominant RS Select SEL Shift Left SHL Shift Right SHR Set Reset Set Dominant SR Subtraction SUB Convert to Timer TIMER Time Delay Off TOF Time Delay On TON Pulse Timer TP Unlatching Coil UNLATCH Bitwise XOR XOR EZ LADDER User s Manual Divelbiss Corporation Section 17 Target Features amp Functions Lists ENHANCED BABY BEAR ICM EBB 200 The supported features include all features that are supported individually Using certain features may limit availability of other features SUPPORTED FEATURES Retentive Variables SUPPORTED FUNCTIONS Less Than Less Than Eq
37. O The enable EN must be true for the DIV function to be enabled The Q output is true when the DIV function is enabled The result O is the whole number quotient only No remainder is provided Example Circuit Input InputNum InputNum2 Related Functions ADD SUB MULT ABS EZ LADDER User s Manual 20 23 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects DRUM SEQ Symbol Inputs Drumi RST Boolean Function Reset Input function is disabled if RST is true RST Q ST Boolean Input Step Input Causes increment of sequencer step ST Outputs Q Boolean Function Enable Output true when function is enabled Description The DRUM SEQ function steps through a pre programmed set of on off channel contact settings when the ST input is pulsed The drum sequence is programmed with a maximum of 32 channels Each channel may be pro grammed to be on or off 1 or 0 for each step When the ST input is pulsed the drum sequencer increments to the next step and the channel s contacts change to the appropriate state Each channel is designed to represent a contact When the channel is set to O off its contact is false When the channel is set to 1 on its contact is true The contacts are automatically named according to the DRUM SEQ name The channel settings are defined in a matrix For each step in the drum sequencer using the check box select the state of each channel for each drum sequencer step Example Ci
38. P1 Integer Input Base number that will have bit rotations P2 Integer Input Number of right one bit rotations to occur for P1 Pl Outputs Q Boolean Function Enable Output true when function is enabled O Integer Output Output result of bit rotation Description The ROR function provides a right bit rotation of the P1 input P2 specifies the number of one bit rotations The P1 number is a integer representation of a binary number The P2 number is an integer representation of the number of binary rotations shifts to occur to P1 The actual bit only rotates when the minimum number is reached example 32 bit rotation to the input number 32 The enable EN must be true for the ROR function to be enabled The Q output is true when the ROR function is enabled The O Output is the rotated number repre sented in integer form Example Circuit Input Related Functions ROL EZ LADDER User s Manual 20 77 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects RS Symbol Inputs Rs S Boolean Input function SET input R Boolean Input function RESET input Outputs Q Boolean Output Latched output Description The RS function acts as a reset dominant bistable If the set input S is true the output Q is true A true on the reset R input sets the output Q to false regardless of the set S input state Example Circuit Inputl HS Output Input RESET Q RESULT Truth T
39. RETENTIVE checkbox must be checked If the variable type is an input or output then the VAR I O NUMBER must be set The DEFAULT VALUE may optionally be set if the variable type is internal See manual Section 5 Creating Ladder Diagrams for more details on adding or editing variables and variable types The last box to configure is the ADDRESS REGISTER text box This box is used to identify special functions of the variable like register number or address This box is used to configure the variable to receive data from the OptiCAN network See Figure 16 4 Click the EDIT button next to the Address Register box The Edit Address Register dialog box will open Click on the drop down menu and select CAN OptiCAN from the choices This enables this variable to access the OptiCAN network See Figure 16 5 When selected other OptiCAN entry boxes will appear and be editable EZ LADDER User s Manual 16 9 Divelbiss Corporation Section 16 OptiCAN Network Enter the node identification number of the device you wishing to listen for in the Node ID box If left blank any broadcast with the same register number will be received Enter the register number in the Register Number box that it will listen for in the broadcast packet Click the IN checkbox to identify this variable as an input Note the Broadcast Trigger drop down menu is disabled See Figure 16 7 Edit Address Register Prefie CAN Made ID 15
40. Real Timer or Boolean Output Actual value read from EEPROM Description The EEPROM READ recalls variables stored in non volatile memory EEPROM The function is enabled when EN is true AD provides the actual address to read from and V is the actual value that is read from the EEP ROM Q is true when the read cycle has completed Note The same variable type that writes to the EEPROM location should be used to read the EEPROM location EEPROM READ is available only on 256K PLC on a Chip target models Example Circuit PROM REA CHI Other Each EEPROM address is absolute and is one byte in size Boolean variables fill two bytes while all other vari able types fill four bytes of EEPROM When reading variables from EEPROM storage it is important that use the exact address location for the variable only taking into account variable types and sizes A memory map is rec ommended for organizing variables stored in EEPROM See EEPROM WRITE for more on how variables are written to EEPROM storage Related Functions EZ LADDER User s Manual 20 26 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects EEPROM WRITE Symbol Inputs EPROM WRITE EN Boolean Function Enable Input function is disabled if EN is false Integer Input Address to write value to 0 2906 See Below V Integer Real Timer or Boolean Input Actual value to write to EEPROM address AD Outputs Q Boolean Function Enable Output true whe
41. Selector Output Number Value Value Value IN1 100 4 125 IN2 250 3 375 IN3 375 2 250 INA 725 1 100 Related Functions SEL EZ LADDER User s Manual 20 64 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects NOT Symbol Inputs NOT EN Boolean Function Enable Input function is disabled if EN is false P1 Integer Input Output is one s complement of this input Outputs Q Boolean Function Enable Output true when function is enabled O Integer Output One s complement of P1 Input Description The NOT function provides a one s complement bit to bit negation of the P input The output O provides the one s complement The enable EN must be true for the NOT function to be enabled Example Circuit Input NOT Number f OutNum Related Functions OR XOR A EZ LADDER User s Manual 20 65 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects NOT EQUAL TO lt gt Symbol Inputs EN Boolean Function Enable Input function is disabled if EN is false EN Px Integer Real Input Input numbers for comparison P1 Outputs Q Boolean Output true when not equal to conditions are met B Description The NOT EQUAL TO provides an if greater than or less than comparison for the Px inputs The number of inputs is specified when the object is placed The output Q is true if P1 is not equal to P2 and P2 is not equal to P3 and so on The enable EN must be true for the NOT EQU
42. Shift Right SHR Set Reset Set Dominant SR Subtraction SUB Convert to Timer TIMER Time Delay Off TOF Time Delay On TON Pulse Timer TP Unlatching Coil UNLATCH Bitwise XOR XOR EZ LADDER User s Manual 17 15 Divelbiss Corporation Section 17 Target Features amp Functions Lists ENHANCED BABY BEAR ICM EBB 600 The supported features include all features that are supported individually Using certain features may limit availability of other features SUPPORTED FEATURES Retentive Variables Hardware Counter EEPROM Storage Real Time Clock Enhanced Baby Bear Expansion Port J1939 Communications OptiCAN Networking Modbus Slave Serial Printing SUPPORTED FUNCTIONS Less Than lt Less Than Equal To lt Not Equal To lt gt Equal To EEPROM Read EEPROM_READ EEPROM Write EEPROM_WRITE Greater Than gt Greater Than Equal To gt Absolute Value ABS Addition ADD Bitwise AND AND Average AVG Bit Pack BIT PACK Bit Unpack BIT UNPACK Convert to Boolean BOOLEAN Compare CMP Hardware Counter CNTRTMR Count Down CTD Count Up CTU Count Up Down CTUD Division DIV Drum Sequencer DRUM_SEQ Falling Edge Detect F_TRIG Get Date GETDATE Get Time GETTIME High Speed Timer HIGH SPD TMR Hysteresis HYSTER Convert to Integer INTEGER J1939 Receive 1939 SPN Latching Coil LATCH Limit LIMIT Moving Average MAVG Maximum MAX Minimum M
43. The GREATER THAN OR EQUAL TO provides an if greater than or equal to comparison for the Px inputs The number of inputs is specified when the object is placed The output Q is true if P1 is greater than or equal to P2 and P2 is greater than or equal to P3 and so on The enable EN must be true for the GREATER THAN OR EQUAL TO function to be enabled Example Circuit Output Related Functions lt gt lt lt gt EZ LADDER User s Manual 20 37 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects HIGH SPD TMR Symbol Inputs 3H SPD TM IN Boolean Function Enable Input Rising Edge Triggered IN Q CV Outputs Q Boolean Output true when IN is true CV Integer Timer output value in 100 microsecond increments Description The HIGH SPD TMR is a 100 microsecond resolution timer When the IN detects a rising edge transition the timer resets and begins timing from zero When the IN detects a falling edge transition the timer latches the cur rent timer value CV holds the current elapsed time when the timer is timing and the latched elapsed timer value when the timer stops timing The output will be in 100 microsecond increments as an integer Example if the CV is 1000 then the actual time would be 100 milliseconds Example Circuit Trigger 3H SPD TM CRI Related Functions EZ LADDER User s Manual 20 38 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects HYSTER Symbol Inputs
44. The serial port that is configured in EZ Ladder cannot be opened for use ERROR progamming target Monitor Mode EZ Ladder detected an undefined error while attempting to save the program on the target Error staring program Progam doesn t exist Monitor Mode The program that is trying to start does not exist on the target Download the program Error staring program Program could not be started Monitor Mode The program cannot be started Re compile and download the program Error while receiveing packet Monitor Mode There was an error when receiving communications packets from the target File could not be opened Monitor Mode When downloading the program to target the file with the compiled code could not be opened Invalid File Editor Mode The file selected to load was not an EZ Ladder diagram file EZ LADDER User s Manual 19 2 Divelbiss Corporation Section 19 Troubleshooting Invalid HEX file Monitor Mode When downloading to a target the file used to store compiled code is invalid or corrupt The ladder diagram needs to be re compiled x is not supported by the current target Editor Mode The selected object is not supported by specified target Ladder program is not present Monitor Mode No ladder diagram program was detected on the target connected to EZ Ladder Link at x y had an invalid Grid point Editor Mode Link is not valid Editor Mode The link you are trying to create is not valid Check th
45. This is where the variable is assigned a modbus or SPI register if supported by the target This is only shown if the target supports modbus or SPI Note For the Variable I O Number and the Default Value only one field will be active to enter data into The active field will depend on the type of variable selected Figure 5 8 shows the ADD dialog for an integer real or boolean variable Add Variable Sele Name 1 Description 2 Variable Type t Input Var 10 Number 4 Output Default salue 5 Internal 3 Address Register Fietentive 6 arcat Figure 5 8 Click OK to close the Add Variable box once all the attributes are complete Click OK again to close the Variables dialog box A real boolean or integer variable has been successfully added EZ LADDER User s Manual 2 6 Divelbiss Corporation Section 5 Using EZ LADDER to Create Ladder Diagrams Timer Variable Attributes Timer variables are required to be used as variables on timer objects for ET Elapsed Time and PT Preset Time When a timer variable is placed a different dialog box appears for setting the timer parameters Figure 5 9 shows the timer dialog box 1 Variable Name The variable name is entered in this field This name will be used to identify the variable and will be the name viewed in the workspace and any cross reference and reports 2 Variable Description This is a text based description of the variable and what it is used for 3
46. a target the program running on the target is different than the program currently opened in EZ Ladder Could not connect to target Monitor Mode EZ Ladder was not able to connect to a hardware target Could not get target version Please connect first Monitor Mode EZ Ladder was unable to retrieve the target version when using the target information function Could not open COMX Monitor Mode When connecting to a target the selected Com Port does not exist or is in use Error downloading file Monitor Mode An unknown error occurred while downloading the program to target Try downloading the program again ERROR downloading user program invalid address Monitor Mode An invalid address was detected in a communications packet while EZ Ladder was connected to a target ERROR downloading user program invalid record Monitor Mode An invalid record was detected in a communications packet while EZ Ladder was connected to a target ERROR downloading user program checksum error Monitor Mode An invalid checksum was detected in a communications packet while EZ Ladder was connected to a target ERROR downloading user program record to long Monitor Mode An invalid record length was detected in a communications packet while EZ Ladder was connected to a target ERROR putting target into bootloader Monitor Mode An error occurred when EZ Ladder was trying to access the target bootloader Error serial port not open Monitor Mode
47. additional rung is scanned left to right in order and internal variables are set Figure 3 9 EZ LADDER User s Manual 3 5 Divelbiss Corporation SECTION 4 CONFIGURING EZ LADDER FOR TARGETS EZ LADDER User s Manual a Divelbiss Corporation Section 4 Configuring EZ LADDER for Targets Project Settings EZ Ladder requires the selection and configuration of a hardware target prior to allowing placement of any objects in the ladder diagram This selection is used to display only objects and functions that are supported by the target These settings identify the operating parameters and limits of the hardware on which the completed ladder diagram will operate This setting should match the actual hardware that the ladder diagram will be installed on The target may be selected using the PROJECT SETTINGS menu or the Project Settings window will be automati cally displayed when an object placement is attempted if a target has not been selected PLEASE NOTE actual dialog boxes and options will vary depending upon which actual target is selected The Project Settings window is divided into three individual tabs TARGET VERSION OPTIONS See Figure 4 1 ProjectSettinesForm Beji Target Version Options 1 Target Properties 9 Plus Divelbiss Corporation Plus PLC OM 4 CHIP Divelbize Corporation PLC OM 4 CHIP Modbus 6 Enhanced Baby Bear 128K Divelbiss Corporation Enhanced Baby Bear
48. be registed two times using the web portal 1 desktop 1 laptop per license agreement If additional installations are required please contact Divelbiss Technical Support Installing EZ LADDER on a Second Computer The EZ LADDER license agreement allows the EZ LADDER Toolkit to be installed on up to two computers usu ally a PC and a laptop To install on a second computer install EZ LADDER as was done on the first Follow the same registration steps for the second computer 1 EZ LADDER User s Manual l 6 Divelbiss Corporation SECTION 2 NAVIGATING EZ LADDER This section provides basic information about navigating and working with EZ LADDER tool bars menus and windows EZ LADDER User s Manual 2 1 Divelbiss Corporation Section 2 Navigating EZ LADDER EZ LADDER Overview The following describes the EZ LADDER application layout including descriptions of each of the sections of the application window 1 2 E Em c amp F e JMP Edit Inst 4 X 22 Spa Vars C MON il it i CTU CID CTUD TP TON TOF Insert Function lt Coils Contacts Functions 3 Variables Labels 5 3 ag lt dese Figure 2 1 1 Project Filename The name of the currently open active EZ LADDER project will be dis played in this position 2 Menus Drop down menus for EZ LADDER programming features and
49. broad casts are received in registers and then the controller can make decisions and act upon the results OptiCAN Controller Heartbeat Each OptiCAN controller has the ability to broadcast a heartbeat This signal is broadcast at a regular interval This is used to ensure that all devices on the network are communicating properly Each node automatically monitors this heartbeat In the event the heartbeat is lost then the local ladder program should ignore data from the network as the loss of heartbeat signifies that communication with part or all of the network has been lost By using the OPTICAN NODESTATUS function block the controller or user can determine if a node has network problems One node on the OptiCAN network MUST broadcast the heartbeat message for the network to function properly Although it is possible to have multiple controllers on one network sending heartbeats it is recommended only one controller send a heartbeat per network EZ LADDER User s Manual 16 5 Divelbiss Corporation Section 16 OptiCAN Network Configuring a Controller on the OptiCAN Network Before a controller can be used on the OptiCAN network the controller must be configured using EZ LADDER Using EZ LADDER create or open the project program that will be installed loaded into the controller To configure a controller 1 From the main screen Edit Mode using the top menu s click Project Settings This will open the P
50. connected to the target before a program can be downloaded When downloading a progress indicator dia log box will display the status of the transmission of the program to the target When downloading is complete the indicator dialog box will disappear Target status will be Running and the ladder diagram will be colored for power flow When a program is downloaded it is automatically given the command to execute Power Flow Indications With a program downloaded and executing EZ LADDER shows the status of the function and objects by color ing the objects contacts and coils and various links Red indicates power flow currently energized while blue represents no power flow not energized Figure 6 2 shows a EZ LADDER connected to a target executing a program and is indicating power flow Scan Time In the Monitor mode EZ LADDER provides a display of the current scan time for the ladder diagram that is run ning The scan time resolution is dependent upon the hardware target Refer to the hardware target s informa tion for actual scan time resolution EZ LADDER User s Manual 6 3 Divelbiss Corporation Section 6 Downloading amp Monitoring Ladder Diagrams EN E LADDER mstart dld ZEN iBl xi n GJA Targ an Vath eB so Info EZ File Edit View Project Reports Window X x Status Running Frogram Name mstart Program Version 0 0 0 0 Build Number 8 E Start
51. each variable the report shows Name Type I O Number Default Value and its Description To view this report select VARIABLE DEFINITIONS from the REPORT menu Figure 8 1 shows a sample Variable Defintions Report Cross References The Cross Reference Report provides a summary of the objects in the ladder diagram project These object are sorted by the type of object The report is customizable To view this report select CROSS REFERENCES from the REPORT menu A configuration dialog will open allowing the selection of what to view in the report Figure 8 2 shows a sample Cross Refernces Report Input Will show all the inputs on the report Internal Will show all the internal contacts and coils on the report Function Will show all the functions on the report Unused Variables Will show any variables declared but not used in the ladder diagram on the report Contact without Coil Will show any contacts in the ladder diagram that do not have associated coils on the report Coil without Contact Will show any coils in the ladder diagram that do not have associated contacts on the report Drum Sequencer Tables Will show the I O and state maxtrix table for the drum sequencers on the report For each of the items selected to add to the report the report will show the Name Rung Number Type and Description EZ LADDER User s Manual 18 2 Divelbiss Corporation Section 18 EZ LADDER Reports Variable Definitions Date 1 4 2005
52. function to be enabled lt Numberl Number Example Circuit Output Related Functions gt lt gt lt gt EZ LADDER User s Manual 20 55 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects LIMIT Symbol Inputs LIMIT EN Boolean Function Enable Input function is disabled if EN is false EN MN Integer Real Input Minimum limit value IN Integer Real Input Actual input MX Integer Real Input Maximum limit value MN Outputs Q Boolean Function Enable Output true when function is enabled O Integer Real Output Actual Minimum or Maximum value i Description The LIMIT function provides minimum and maximum limited output for the input IN The function compares the input IN If it is greater that the maximum MX then the ouput O is equal to the maximum MX If it is less than the minimum MN then the output O is equal to the minimum MN If it is in between the maximum and minimum then the output O is equal to the actual input IN The enable EN must be true for the LIMIT func tion to be enabled Example Circuit Input LIMIT Related Functions CMP HYSTER MUX EZ LADDER User s Manual 20 56 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects LN Symbol Inputs LN EN Boolean Function Enable Input function is disabled if EN is false EN Q P1 Real Input Output is natural logarithm of this number Pl Outputs Q B
53. function is enabled Description The SETDATE function sets the current date on the hardware real time clock The date is set by using variables to apply values to each of the inputs The enable EN must be true for the SETDATE function to be enabled Example Circuit CR1 SETDATE CR2 Related Functions SETTIME GETTIME GETDATE EZ LADDER User s Manual 20 83 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects SETTIME Symbol Inputs SETTIME EN Boolean Function Enable Input function is disabled if EN is false EN M HR Integer Input Hours value 0 23 MN Integer Input Minutes value 0 59 SC Integer Input Seconds value 0 59 Boolean Function Enable Output true when function is enabled Description The SETTIME function sets the current time on the hardware real time clock The time is set by using variables to apply values to each of the inputs The enable EN must be true for the SETTIME function to be enabled Example Circuit CR1 SETTIME CR2 EN Q Related Functions SETDATE GETTIME GETDATE EZ LADDER User s Manual 20 84 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects SHL Symbol Inputs mE EN Boolean Function Enable Input function is disabled if EN is false EN Q P1 Integer Input Number to be shifted left P2 Integer Input Number of one bit left shifts Pl oO Outputs Q Boolean Function Enable Output true when function is enabled O I
54. function to be enabled The Q output is true when the ACOS function is enabled Example Circuit Inputi ACOS InputNum f Outputl Related Functions SIN TAN ASIN ATAN COS T MM M HE M E M am n sssans JJ EZ LADDER User s Manual 20 5 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects ADD Symbol Inputs Boolean Function Enable Input function is disabled if EN is false EN Px Integer Real Inputs Output is sum of these inputs PI 0 Outputs Q Boolean Function Enable Output true when function is enabled O Integer Real Output Sum of all Px inputs is Description The ADD functions sums all the inputs Px together and outputs this number O The number of inputs is spec ified when the function is placed in the program The enable EN must be true for the ADD function to be enabled The Q output is true when the ADD function is enabled Inputi InputNum InputNuma Example Circuit Related Functions SUB MULT DIV ABS EZ LADDER User s Manual 20 6 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects AND Symbol Inputs AND EN Boolean Function Enable Input function is disabled if EN is false EN P1 Integer Input Output is bitwise AND of inputs P2 Integer Input Output is bitwise AND of inputs Pl Outputs Q Boolean Function Enab
55. functions in this link for the functions to operate properly it will compile regardless x8x8 80 EZ LADDER User s Manual 9 9 Divelbiss Corporation Section 5 Using EZ LADDER to Create Ladder Diagrams Er ET iadd me EZ 5 Duk amp F 2 JMP Edit Inst 4 k s gt Label vars Yars MON Abc it i ilr CTU CID CTUD TP TOM Insert Function gt gt ___ CTD ka CR3 CIDI Coils 1 Contacts Functions Variables Labels e 3 cntval Good Links BAD Link Ti Figure 5 11 amp Paste Functions links parts of rungs and whole rungs may be copied and pasted into another part of the ladder gram project To Copy choose the Selection Tool from the tool bar Left click on the object to copy for selecting multi ple objects or a whole rung left click and drag to select what is to be copied You may also left click on objects holding the CTRL key to select multiple objects Once the objects have been selected from EDIT menu select COPY or right click and select COPY To paste an object hover the pointer in the position where you want to paste and right click Select PASTE NOTE When pasting objects or rungs there must be enough room to paste the copied section or an error will occur When pasting rungs move the pointer near the left power rail EZ LADDER User s Manual 9 10 Divelbiss Corporation Section 5 Using EZ LADDER to Create Ladder Dia
56. is solely responsible for any and all Resulting Products and applications developed tested installed or distributed using the Licensed Software and for any and all claims damages settlements expenses and attorney s fees arising from the distribution or use of the PLC ON A CHIP Kernel or Resulting Products by Licensee Licensee s customers or others DIVELBISS MAKES NO OTHER WARRANTIES OF ANY KIND WITH RESPECT TO THE LICENSED SOFTWARE OR THIS AGREEMENT AND EXPRESSLY DISCLAIMS ALL OTHER WARRANTIES EXPRESS OR IMPLIED INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT Licensee Warranties Licensee represents warrants and covenants that Licensee has all necessary authority to enter into and to fulfill its obligations under this Agreement Licensee will comply with all federal state and local laws and regulations applicable to the use or disposition of the Licensed Software including without limitation all export laws and regulations Licensee shall be solely liable for all Resulting Products any and all warranties on Resulting Products shall be made only by and on behalf of Licensee and Licensee shall make NO representations or warranties on behalf of Divelbiss For the term of this Agreement and any renewal thereof and for one 1 year thereafter Licensee will not solicit or hire any of Divelbiss s employees Limitation of Liability LICENSEE ACKNOWLEDGES AND AGREES T
57. is a string EZ LADDER User s Manual 9 9 Divelbiss Corporation Section 5 Using EZ LADDER to Create Ladder Diagrams Variable Attributes When adding new variables each variable will have attributes that will need to be configured Attributes are dif ferent for different types of variables Integer Real Boolean Variable Attributes The integer real and boolean variable types share the same required properties 1 Name The variable name is entered in this field This name will be used to identify the variable and will be the name viewed in the workspace and any cross reference and reports 2 Variable Description This is a text based description of the variable and what it is used for 3 Variable Type The variable type is selected in this box Select INPUT if the variable represents a physical I O input Select OUTPUT if the variable represents a physical I O output Select INTERNAL if the variable has no real world connection but is internal program usage only Retentive check box is used to specify this variable to maintain its value in the event of a power loss on the target 4 Var I O Number If the variable type is INPUT or OUTPUT type then the actual I O point assignment number is entered here Digital and Analog I O See the hardware target manual information for more detail on the I O assignments 5 Default Value The default power up value of an nternal type variable is set here 6 Address Register
58. is shown in Figure 3 2 which illustrates a relay ladder rung as used in relay control systems M pees Solenoid 1 Figure 3 2 The same circuit is shown as it s ladder diagram equivalent in Figure 3 3 PB1 SWI Solenoid Figure 3 3 EZ LADDER User s Manual 3 2 Divelbiss Corporation Section 3 Ladder Diagram Basics Basic Ladder Diagram Symbols This section will explains the most basic ladder diagram objects Section 10 provides definitions and usage for all EZ LADDER Objects DIRECT CONTACT p The direct contact may represent real world inputs or internal relay contacts CRs A TRUE condition on the real world input or CR will cause the contact to be TRUE A FALSE condition on the real world input or CR will cause the contact to be FALSE INVERTED CONTACT H The inverted contact operates the same as the direct contact with the exception that the actual logic is opposite of the direct contact When the real world input or CR is FALSE the contact is TRUE and when the real world input or CR is TRUE then the contact is FALSE DIRECT COIL The direct coil may represent real world outputs or internal relay coils CRs A TRUE condition on the direct coil will cause a TRUE condition on the real world output or CR while a FALSE condition on the direct coil will cause a FALSE condition on the real world outputs or CR INVERTED COIL f The inverted coil operates the same as a direct coil with the exc
59. l X Functions Variables Labels 2 Placed Direct Contact Placed Direct Coil J v x Figure 5 10 NOTE When placing objects near the left or right power rails links are automatically drawn to the power rails as Y shown in Figure 5 10 This also applies when variables are inserted next to functions the links are automatically drawn from the inserted variable to the function All that is required is to draw the link from the input to the output contact Select the horizontal link tool from the tool bar Create the link by clicking in the position where the link should start and then drag to the posi tion where the link should stop Start by clicking on the open side of the input contact and drag across to the open side of the output contact This will draw the link between the two objects If a vertical link is required as in parallel circuits select the vertical link tool Create the link by clicking in the position where the link should start and then drag to the position where the link should stop NOTE When drawing links to objects and variables the link must connect to the object for a complete circuit If X the link does not connect then an error will occur when Verifying or Compiling the ladder diagram program Figure 5 11 shows a connected link and a link that is not connected When connecting a variable output of a function block to a variable input of another function block a variable must be placed between the
60. menu 11 Select the Appropriate Bit Order for your application needs MSB First or LSB First using the drop down menu 12 Click ok to close the SPI Slave Properties and save the changes 13 Click ok to close the Target Settings Properties and save the changes 14 Click ok to close the ProjectSettingsForm dialog and save the changes The SPI Slave is now ready for use USING THE SPI SLAVE FEATURE The SPI Slave feature provides an easy way to pass data to an SPI Master device The data is simply stored in registers that the Master will read There are a total of 512 registers each of which are 32 bit To store data into a register use the Address Register add variable edit variable properties box box to apply the address of the SPI register that will be asigned to the variable SPI registers begin with SPL You may add the SPI Address Register manually or click the edit button which opens a dialog with drop down menus to help with the entry of the SPI address See Figure 11 3 Add Variable M ame X XxX i Description U O Variable Type t Input Var 140 Number Output Default Value ia Internal Address Register E dit Retentive Cancel Figure 11 3 EZ LADDER User s Manual 11 3 Divelbiss Corporation Section 11 SPI Slave USING THE SPI SLAVE FEATURE Con t The following is important information regarding the implementation an use of the SPI Slave feature in EZ LAD
61. options 3 Cross Reference Palette Clickable Cross References for functions objects and variables 4 Tool Bars Tool bars for placing functions objects and drop down function lists o Ladder Workspace Area where the ladder diagram is drawn 6 Output Window This is where status messages are displayed when Verifying or Compiling ladder diagram programs The Cross Reference Palette and the Output Window may be viewed or hidden To change the viewing option Select the VIEW menu Select your viewing options here The Tool Bars may be repositioned by right clicking on the end of the tool bar and dragging it to a new position These tool bars may also be closed To open a closed tool bar select the tool bar from the VIEW menu 358585 EZ LADDER User s Manual 2 2 Divelbiss Corporation Section 2 Navigating EZ LADDER EZ LADDER Menus The EZ LADDER has many features and options Basic commands features and options are accessed through menus Figure 3 1 shows the standard EZ LADDER application FILE MENU NEW OPEN CLOSE SAVE SAVE AS PRINT PRINT PREVIEW PRINT SETUP Previous Projects EXIT EDIT MENU UNDO REDO CUT COPY PASTE SELECT ALL SETTINGS VIEW MENU TARGET INFORMATION CROSS REFERENCES OUTPUT PROJECT MENU SETTINGS BOOTLOADER REPORTS MENU VARIABLE DEFINITIONS CROSS REFERENCE Creates a new ladder diagram project Opens an existing ladder diagram project Closes the currently open ladder d
62. quick reference provides an easy method to locate where a contact or other function is located in the ladder diagram program Figure 2 4 shows the Cross Reference Window Cross references are updated automatically when one of the objects changes This palette may be used to find objects quickly Double click on any of the object rung numbers and X EZ LADDER will locate and display that section of the ladder diagram Coils MatLatch Coil Name a 2 Coil Location Grid Column Rung 3 Matar 8 1 Contacts MatLatch Contact Name 2 2 Contact Location Grid Column Rung Shark 2 1 Stop Double clicking on location will cause this 3 1 rung to viewed in the ladder diagram work Functions space Variables Labels Figure 2 4 Output Window The Output window is where ERROR MESSAGES are displayed during the ladder diagram program Verify and Compile operations Figure 2 5 shows the Output Window displaying error messages LINK ERROR Vertical or Object link not found at 3 1 ERROR Object Motor at 9 1 doesn t have a left link at 8 1 2 Errors found Figure 2 5 358588 EZ LADDER User s Manual 2 6 Divelbiss Corporation SECTION 3 LADDER DIAGRAM BASICS EZ LADDER User s Manual 3 1 Divelbiss Corporation Section 3 Ladder Diagram Basics Understanding Relay Logic vs Ladder Logic Ladder Diagram LD is a graphical representation of boolean equations using contacts inputs and
63. s Manual 20 2 Divelbiss Corporation Section 20 Name INVERTED CONTACT J1939 SPN JMP KEYPAD LABEL LATCH coil LCD CLEAR LCD PRINT LESS THAN LESS THAN EQUAL TO LIMIT LN LOG MAVG MAX MIN MOD MULT MUX NOT NOT EQUAL TO OPTICAN NODESTATUS OPTICAN TXNETMSG OR PID PWM PWM FREQ RANDOM REAL R TRIG ROL ROR RS SEED SEL SERIAL PRINT SETDATE SETTIME SHL SHR SIN SI DISP SI CLRDISP SQRT SR SUB TAN TIMER TOF TON TP UNLATCH coil XOR 20 3 Divelbiss Corporation EZ LADDER User s Manual EZ LADDER Functions amp Objects Description Normally Closed Boolean Input or Internal Contact Reads broadcast messages from J1939 CAN Network Jump to another section of the program Reads the Keypad matrix Labels sections for the JMP function to operate correctly Direct Coil that maintains it s energized state until UNLATCHed Clears the LCD Display Prints to the LCD Display If less than comparison of variable input values If less than or equal to comparison of variable input values Limits range of a variable Outputs Natural Logorithm of variable input value Calculates the logarithm base 10 of the variable input value Provides a moving average of the input variable values Outputs the largest of the input variable values Outputs the smallest of the input variable values Calculates the modulo value of the input variable values Multiplies the i
64. such software and Divelbiss is prepared to license such rights subject to the terms and condi tions of this Agreement therefore in consideration of the mutual covenants contained herein and intending to be legally bound hereby Divelbiss and Licensee agree as follows 1 Licensed Software The PLC ON A CHIP Kernel and EZ LADDER Toolkit software whether in source code or object code format and all related documentation and revisions updates and modifications thereto collectively Licensed Software is licensed by Divelbiss to Licensee strictly subject to the terms of this Agreement 2 License Grant Divelbiss hereby grants to Licensee a nonexclusive non transferable license to use the Licensed Software as follows a Except as otherwise provided herein one 1 user may install and use on one 1 desktop personal computer and on one 1 portable personal computer the EZ LADDER Toolkit i to develop test install configure and distribute certain applications on certain hardware devices such as programmable logic controllers each a Resulting Product and ii to configure the PLC ON A CHIP Kernel on designated processors which shall constitute Resulting Products b Licensee may copy the EZ LADDER Toolkit only for backup purposes c Licensee may not amend modify decompile reverse engineer copy except as expressly authorized in Section 2 of this Agreement install on a network or permit use by more than a single user
65. the Keyapd and return to the target s properties dialog 6 Click on Keypad and a Properties button will appear on the right side of the target properties dialog 7 Click the PROPERTIES button The Keypad Properties dialog will open This dialog is used to configure the Keyapd on the target See Figure 14 2 EZ LADDER User s Manual 14 2 Divelbiss Corporation Section 14 Matrix Keypad Keypad Properties Keypad Port Keypad an GPU8 GPO15 Keypad an 51 RT 51 BPI27 GPO GPO2 GPO30 Keupad on GPO19 GPO26 ara Figure 14 2 8 Select the KEVPAD PORT to use from the available ports You may use any of the listed ports provided it is not being used by another feature 9 Click to close the Keypad Properties and save the changes 10 Click ok to close the Target Settings Properties and save the changes 11 Click ok to close the ProjectSettingsForm dialog and save the changes The Keypad is now ready for use once the keypad is physically connected Refer to Section 20 EZ LADDER Functions for using the KEYPAD function The Keypad is read using the Keypad function but individual keys may be read as a discreet digital input EZ LADDER User s Manual 14 3 Divelbiss Corporation SECTION 15 J1939 COMMUNICATIONS EZ LADDER User s Manual 15 1 Divelbiss Corporation Section 15 J1939 Communications J1939 Communications CAN network enabled PLC on a Chip products support monitoring common J1939 broadcast parameters J1939
66. the area of the screen where objects and links are placed to create the ladder diagram program Most objects can be placed at any location in the workspace provided there is actual space available The DIRECT coil INVERTED coil LATCH coil and UNLATCH coil are the only objects that must be placed in a particular location They must be located next to the right power rail Any attempt to place one of them in another location will cause an error dialog box to be displayed A ladder diagram is created using rungs A rung is a horizontal line of logic EZ LADDER allows the maximum number of rungs to be configured when the target is selected in the PROJECTS and SETTINGS menu Figure 2 3 shows the ladder diagram workspace and rungs of horizontal logic adder EZ Ladder2 EEJ 2 il ID ce El X amp Edit Inst Us k gt gt Yars Mars 1 ses Sar it il 1t CTU CTD CTUD TP TOF Insert Function MA FA x Start Stop Elements on Rung 1 Contacts Functions variables Matl atch MotLatch ue 9 lt a Elements on Rung 2 3 Rung Numbers ag lt Figure 2 3 EZ LADDER User s Manual 2 5 Divelbiss Corporation Section 2 Navigating EZ LADDER Cross Reference Palette EZ LADDER provides a real edit time Cross Reference Palette This palette provides lists of contacts coils vari ables labels and functions as well as their location by rung This
67. the input variable value 20 17 CTD Down Counter Counts in the downward direction 20 18 CTU Up Counter Counts in the upward direction 20 19 CTUD Up Down Counter Counts in the Up and Down direction 20 20 DIRECT COIL Normally De energized Boolean Output or Internal Coil 20 21 DIRECT CONTACT Normally Open Boolean Input or Internal Contact 20 22 DIV Divides by input variable value 20 23 DRUM SEQ Drum Sequencer 20 24 EQUAL TO Provides equal comparison of variable input values 20 25 EEPROM READ Block to read values from EEPROM storage 20 26 EEPROM WRITE Block to write values to EEPROM storage 20 27 EXP Outputs Natural Exponential of variable input value 20 28 EXPT Outputs Exponentiation for the variable input values 20 29 F TRIG Falling Edge Trigger 20 30 FLOOR Outputs a rounded down value for the input variable value 20 31 GC SSI Interface to encoder with gray code synchronous serial 20 32 GETDATE Reads current date from hardware Real Time Clock 20 34 GETTIME Reads current time from hardware Real Time Clock 20 35 gt GREATER THAN If greater than comparison of variable input values 20 36 gt GREATER THAN EQUAL TO If greater than equal to comparison of variable input values 20 37 HIGH SPD TMR 100 microsecond resolution Rising to Falling Edge Timer 20 38 HYSTER Hysteresis 20 39 INTEGER Converts input variable value into a Integer variable 20 40 INVERTED COIL Normally Engergized Boolean Output or Internal Coil 20 41 EZ LADDER User
68. this Agreement shall operate or be construed as a waiver of any subsequent breach f The invalidity illegality or unenforceability of any provision of this Agreement shall not affect the remainder of the Agreement and this Agreement shall be construed and reformed without such provision provided that the ability of neither party to obtain substantially the bargained for performance of the other shall have thereby been impaired g All notices consents and other communications between the parties shall be in writing and shall be sent by i first class mail certified or registered return receipt requested postage prepaid ii electronic facsimile transmission iii overnight courier service iv telegram or telex or v messenger to the respective addresses that the parties may provide h Licensee shall be deemed an independent contractor hereunder and as such shall not be deemed nor hold itself out to be an agent or employee of Divelbiss Under no circumstances shall any of the employees of a party hereto be deemed to be employees of the other party for any purpose This Agreement shall not be construed as authority for either party to act for the other party in any agency or other capacity or to make commitments of any kind for the account of or on behalf of the other except to the extent and for the purposes provided herein i LICENSEE ACKNOWLEDGES THAT IT HAS READ THIS AGREEMENT UNDERSTANDS IT AND AGREES TO BE BOUND BY ITS TE
69. true the output Q is true A true on the reset R input sets the output Q to false only if the set S input is also false Example Circuit inputi SH Output Input Truth Table SET RESET Q Q RESULT 5 0 0 QO0 3 3 OO Oo Related Functions RS a EZ LADDER User s Manual 20 91 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects SUB Symbol Inputs oe EN Boolean Function Enable Input function is disabled if EN is false EN 0 P1 Integer Real Input Number to subtract P2 from P2 Integer Real Input Number to subtract from P1 Pl Outputs Q Boolean Function Enable Output true when function is enabled O Integer Real Output Result of subraction P1 P2 Description The SUB functions subracts the P2 input from the P1 input The output O is the result of the subtraction The enable EN must be true for the SUB function to be enabled The Q output is true when the SUB function is enabled Example Circuit Related Functions ADD MULT DIV ABS EZ LADDER User s Manual 20 92 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects TAN Symbol Inputs Tn EN Boolean Function Enable Input function is disabled if EN is false EN P1 Real Input Output is tangent of this input Pl Outputs Q Boolean Function Enable Output true when function is enabled O Real Output Tangent value of P1 input Description The TAN funct
70. while the ladder dia gram is executing Double click on the object and an dialog box appears with the current state or variable value This box is editable and the value may be changed Change the value as needed and click The changes take place immediately The change does not affect the actual ladder diagram in the Edit mode only the exe cuting program This is helpful for adjusting timer and counter values in real time Changing a contact variable boolean does not always have the desired effect For example If the value of an internal coil that is connected to real world input is changed using the dialog box the actual value will change only until the next scan and then will revert to its real world status Since all I O status is re evaluated each scan the contacts and coils are updated and will override variable changes Actual real world inputs cannot be changed at all eS O EZ LADDER User s Manual 6 5 Divelbiss Corporation SECTION 7 MODBUS SLAVE EZ LADDER User s Manual us Divelbiss Corporation Section 7 Modbus Slave Modbus Slave Modbus is a register based communication protocol connecting multiple devices to a single network This net work is divided into two types of devices The first is the Master The master is the device that is in control and initiates communication to the other devices The other devices are Slaves These devices listen for communication from the master and then
71. 1 20 52 20 53 20 55 20 56 20 57 20 58 20 59 20 60 20 61 20 62 20 63 20 64 20 65 20 66 20 67 20 68 20 69 20 70 20 71 20 72 20 73 20 74 20 75 20 76 20 77 20 78 20 79 20 80 20 81 20 83 20 84 20 85 20 86 20 87 20 88 20 89 20 90 20 91 20 92 20 93 20 94 20 95 20 96 20 97 20 98 20 99 Section 20 EZ LADDER Functions amp Objects ABS Symbol Inputs ABS EN Boolean Function Enable Input function is disabled if EN is false P1 Integer Real Input Output is absolute of this input Outputs Q Boolean Function Enable Output true when function is enabled O Integer Real Output Absolute value of P1 input Description The ABS function provides an absolute value output O from the input value P1 The enable EN must be true for the ABS function to be enabled The Q output is true when the ABS function is enabled Example Circuit inputi Related Functions ADD SUB MULT DIV a JY EZ LADDER User s Manual 20 4 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects ACOS Symbol Inputs ACOS EN Boolean Function Enable Input function is disabled if EN is false m m P1 Real Input Output is arc cosine of this input Pl Outputs Q Boolean Function Enable Output true when function is enabled O Real Output Arc Cosine value of P1 input Description The ACOS function provides an Arc cosine O from the input value P1 The enable EN must be true for the ACOS
72. 18 Divelbiss Corporation Section 17 Target Features amp Functions Lists HARSH ENVIRONMENT CONTROLLER HEC 2000 The supported features include all features that are supported individually Using certain features may limit availability of other features SUPPORTED FEATURES 8 Inputs 8 Outputs Retentive Variables PWM Outputs J1939 Communications OptiCAN Networking EEPROM Storage Output Monitoring 2 Counter Inputs SUPPORTED FUNCTIONS Less Than lt Less Than Equal To lt Not Equal To lt gt Equal To EEPROM Read EEPROM READ EEPROM Write EEPROM WRITE Greater Than gt Greater Than Equal To gt Absolute Value ABS Addition ADD Bitwise AND AND Average AVG Bit Pack BIT PACK Bit Unpack BIT UNPACK Convert to Boolean BOOLEAN Compare CMP Hardware Counter CNTRTMR Count Down CTD Count Up CTU Count Up Down CTUD Division DIV Drum Sequencer DRUM SEQ Falling Edge Detect F_TRIG Get Date GETDATE Get Time GETTIME High Speed Timer HIGH SPD TMR Hysteresis HYSTER Convert to Integer INTEGER J1939 Receive 1939 SPN Latching Coil LATCH Limit LIMIT Moving Average MAVG Maximum MAX Minimum MIN Modulo MOD Multiplication MULT OptiCAN Node Status OPTICAN NODESTATUS OptiCAN Transmit Message OPTICAN TXNETMSG Bitwise NOT NOT Bitwise OR OR Pulse With Modulation PWM PWM Frequence PWM_FREQ Rising Edge Detect R_TRIG Convert to Re
73. ADDER User s Manual TOC 5 Divelbiss Corporation SECTION 1 GETTING STARTED This section provides detailed information for getting started using EZ LADDER Included in this section are installation instructions activating EZ LADDER and instructions on how to use this manual EZ LADDER User s Manual a Divelbiss Corporation Section 1 Getting Started How to Use this Manual In this manual the following conventions are used to distinguish elements of text BOLD Denotes labeling commands and literal portions of syntax that must appear exactly as shown italic Used for variables and placeholders that represent the type of text to be entered by the user SMALL CAPS Used to show key sequences or actual buttons such as OK where the user clicks the OK button In addition the following symbols appear periodically appear in the left margin to call the readers attention to specific details in the text Warns the reader of a potential danger or hazard that is associated with certain actions Y Appears when the text contains a tip that is especially helpful l Indicates that the text contains information to which the reader should pay particularly close attention Installing EZ LADDER To install EZ LADDER on your computer follow the following steps Once EZ LADDER is installed it must be activated before it may be used with actual hardware targets Windows Administrator Rights are required for proper installation The EZ
74. AL TO function to be enabled Example Circuit Output Related Functions lt gt lt gt EZ LADDER User s Manual 20 66 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects OPTICAN NODESTATUS Symbol Inputs EE OPTICAN_NODESTATUS EN Boolean Function Enable Input function is disabled if EN is false EN Q Outputs Q Boolean Output true when node status messages are being received false when no node status messages are received within the specified timeout YAL VAL Integer Output 32 bit number Lower 16 bits represent the node status and the upper 16 bits represent the actual error code Description The OPTICAN_NODESTATUS function listens for OK of the node status register for the specified address over the OptiCAN network When placing the function the NODE ID is specified as well as the Timeout An optional description may be included The function block will listen for the node status register broadcast of the Node ID and update VAL and Q accordingly The Timeout value is the duration that the function block will listen without receiving a status without generating an Error See EZ LADDER Manual Section 16 OptiCAN Network for more information regarding using the function block and general OptiCAN networking Function Dialog Box OptiCAN Node Status Properties Mame OPTICAN_NODESTATUS1 Description Timeout ms 1 000 Made ID 1 Cancel Example Cir
75. ATAN function provides an Arctangent O from the input value P1 The enable EN must be true for the ATAN function to be enabled The Q output is true when the ATAN function is enabled Example Circuit Input ATAN Related Functions SIN TAN ASIN ACOS COS u 2 M M EZ LADDER User s Manual 20 9 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects AVG Symbol Inputs AVG EN Boolean Function Enable Input function is disabled if EN is false EN Q Px Integer Real Input Output is average of these inputs P 0 Outputs Q Boolean Function Enable Output true when function is enabled O Integer Real Output Average of all Px inputs i Description The AVG function averages all the inputs Px together and outputs this number O The number of inputs is specified when the function is placed in the program The enable EN must be true for the AVG function to be enabled The Q output is true when the AVG function is enabled Inputi Number Number2 Example Circuit Related Functions MAVG MAX MIN EZ LADDER User s Manual 20 10 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects BIT PACK Symbol Inputs BIT PACKI EN Boolean Function Enable Input function is disabled if EN is false EN Q Bx Boolean Input The output is a result of these inputs packed Outputs Boolean Function Enab
76. Basic Ladder Diagram Symbols 3 3 Power Rails and Links 3 3 Connection Types 3 4 Understanding How a Ladder Diagram Functions 3 5 Section 4 Configuring EZ Ladder for Targets 4 1 Project Settings 4 2 Selecting the Hardware Target 4 2 Version Settings 4 3 Options Settings 4 4 Viewing Target Information 4 5 Updating Target Software 4 6 Target Utilities 4 7 Section 5 Using EZ Ladder to Create Ladder Diagrams 5 1 Creating Ladder Diagram Projects 5 2 Understanding Objects and Variables 5 3 Declaring and Placing Variables 5 3 Variable Types 5 5 Variable Attributes 5 6 Bit Addressible Variables 5 7 Keeping Variable Values on Power Loss 5 8 Placing Objects and Drawing Links 5 9 Copy Paste 5 10 Inserting Deleting Rungs 5 11 Saving Ladder Diagram Projects 5 11 Compiling amp Verifying Ladder Diagrams 5 11 Section 6 Downloading and Monitoring Ladder Diagrams 6 1 Switching To From Monitor Mode 6 2 Connecting to Targets 6 3 Downloading to Targets 6 3 Power Flow Indications 6 3 Scan Time 6 4 Hover Boxes 6 4 Changing Variable Values 6 5 EZ LADDER User s Manual TOC 3 Divelbiss Corporation Table of Contents Section 7 Modbus Slave 7 1 Modbus Slave 7 2 Modbus Configuration 7 2 Register Assignments 1 3 Master Functions 1 3 Communications Errors 7 4 Assigning Registers 1 4 Section 8 Retentive Variables 8 1 Retentive Variables 8 2 Section 9 SSI Encoder Input 9 1 SSI Encoder Input 9 2 Slave SSI Encoder Input 9 3 Section 10 PW
77. CTD Count Up CTU Count Up Down CTUD Division DIV Drum Sequencer DRUM_SEQ Falling Edge Detect F_TRIG Get Date GETDATE Get Time GETTIME High Speed Timer HIGH_SPD_TMR Hysteresis HYSTER Convert to Integer INTEGER Latching Coil LATCH Limit LIMIT Moving Average MAVG Maximum MAX Minimum MIN Modulo MOD Multiplication MULT Bitwise NOT NOT Bitwise OR OR Pulse With Modulation PWM PWM Frequence PWM_FREQ Rising Edge Detect R_TRIG Convert to Real REAL Rotate Left ROL Rotate Right ROR Reset Set Reset Dominant RS Select SEL Set Date SETDATE Set Time SETTIME Shift Left SHL Shift Right SHR Serial Print SERIAL PRINT Set Reset Set Dominant SR Subtraction SUB Convert to Timer TIMER Time Delay Off TOF Time Delay On TON Pulse Timer TP Unlatching Coil UNLATCH Bitwise XOR XOR EZ LADDER User s Manual 17 21 Divelbiss Corporation Section 17 Target Features amp Functions Lists PLC ON A CHIP CONTROL SvsrEM PCS 2X0 The supported features include all features that are supported individually Using certain features may limit availability of other features SUPPORTED FEATURES Retentive Variables Real Time Clock HDIO Bus Serial Printing Modbus Slave EEPROM Storage Hardware Counter Grey Scale SSI Encoder Interface J1939 Communications OptiCAN Networking SUPPORTED FUNCTIONS Less Than Less Than Equal To lt N
78. Circuit Related Functions MUX EZ LADDER User s Manual 20 80 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects SERIAL PRINT Symbol Inputs EN Boolean Function Enable Input function is disabled if EN is false SERIAL PRINT EN is rising edge sensitive viii EN Others as dynamically required Outputs Q Boolean Function Status Output Set true at completion of EH transmission ER Integer Error Output Set to one if transmit buffer is not empty when transmission starts or two if the transmit string is larger than the buffer Description The SERIAL PRINT function is the transmit block for sending serial information using a multi purpose serial port The Serial Print feature must be installed on the target prior to using this function block When then EN input senses a rising edge the block begins the serial transmission of its text that was provided when the SERIAL PRINT function was placed The Q output is set true when the transmission is completed The ER output is set true if there is still data in the buffer when the function block is enabled to transmit again Eunction Block Serial Print Properties Name Name of the function Name SERIAL PRINTI Description Description A description of what the function does Text The formatted text is placed here This is what will be transmitted Cancel Text Message Formatting The SERIAL PRINT function text formatted per ANSI C printf
79. DDER Functions amp Objects GC SSI Symbol Inputs GC 8811 EN Boolean Function Enable Input function is disabled if EN is false EN Q Outputs Q Boolean Function Enable Output true when function is enabled and mi there is communication to the encoder False when there is a communication error CV Integer representation of the Encoder s output Description Single or Master GC SSI The GC SSI function is used to interface to encoders that support Gray Code Synchronous Serial Interface The interface is via the PLC on a Chip or target s SPI interface port This function is not available on targets that do not support it The target must be configured properly if supported to allow the GC SSI function to be selected and placed The GC SSI communicates serially over the SPI port to the encoder additional interface circuitry required The Output is an Integer representation of the encoder s value The encoder value is read graycode and then con verted into a binary number This number is represented as an integer output The GC SSI Block must be configured to match the encoder s and cable specifications Example Circuit Enable GC Ssl sal OK EN CV Sol VAL Configuration Details Single Master GC SSI Setup Gray Code 551 Properties 5911 Name of the function Description Description of what function is used for SSI Port Select the SSI Port to use SSI Clock Rate Select the clock
80. DER and PLC on a Chip Targets Register Assignments SPI Register Beginning Address 0x0000 SPI Register Ending Address OxO1FF Registers 32 Bits Each Total f of Registers 512 Naming SPI regnum Communications Protocol Read Write Bit The high order bit selects Read 0 Write 1 Control Word 16 Bit Control Word 32 bit data Data Shift Shifts most significant byte first Chip Select Chip select to stay low for byte transfer and MUST go high after each byte for at least 1 2 of the clock cycle Clock Frequency Minimum is 10KHz Maximum is 15KHz Read Write Delay A 1mS delay is required between read and write transfers This allows time for everything to stabilize and reset after each action Read Command amp Data A 50uS delay is required between sending the read command and Read Delay actually reading the data Read Writing Sequential 50uS delay is required between reading and writing sequential data Delay Please Note f there is more than 1ms between bytes then the command is reset and the current byte is treated as the first byte of a new command WRITE Master D D D D Slave READ Master Slave EEEE EEE REPPPPEEPPEP EZ LADDER User s Manual 11 4 Divelbiss Corporation Section 11 SPI Slave USING THE SPI SLAVE FEATURE Con t BECIN END SCK ACTIVE HIGH SCK ACTIVE LOW SAMPLE INPUT MOSI CHANGE OUTPUT MISO PIN IF NEXT TRANSFER BEGINS HERE SEL SS IN
81. DER is fully functional and will operate with hardware targets The process of registering and activating is completing the on line registration form receiving a counter key This key must be loaded into EZ LADDER and will activate the license If EZ Ladder is not registered it will prompt you to do so when the application is started To activate register EZ LADDER follow the installation wizard as follows 1 You must read and agree to the license agreement to register the EZ Ladder Application License Agreement Please take a moment to read the license agreement now If you accept the terms of the license agreement below then click l agree and then click the Next Button otherwise click the Cancel Button DIVELBISS OEM SOFTWARE LICENSE AGREEMENT This OEM Software License Agreement the Agreemernt sets forth the terms by which Dwelbss Corporation an Ohio corporation having a principal place of business al 9778 Mt Gllead Road Frederncklown Divelbiss authorizes its bona fide bcensees who have paid al applicable fees each a Licensee la use the Licensed Software as defined below provided herewith Instaling using or attempting to metal or use such Licensed Software or othenwise expressing assent lo the terms herem constitutes acceptance of ths Agreement Any metalation use or attempted installation or use of such Licensed Software by any party other than a Licensee or otherwise in violation of
82. Detect F_TRIG High Speed Timer HIGH SPD TMR Hysteresis HYSTER Convert to Integer INTEGER Keypad KEYPAD Latching Coil LATCH LCD Clear LCD CLEAR LCD Print LCD PRINT Limit LIMIT Moving Average MAVG Maximum MAX Minimum MIN Modulo MOD Multiplication MULT Bitwise NOT NOT Bitwise OR OR Pulse With Modulation PWM PWM Frequence PWM FREQ Rising Edge Detect R_TRIG Convert to Real REAL Rotate Left ROL Rotate Right ROR Reset Set Reset Dominant RS Select SEL Shift Left SHL Shift Right SHR Serial Print SERIAL_PRINT Set Reset Set Dominant SR Subtraction SUB Convert to Timer TIMER Time Delay Off TOF Time Delay On TON Pulse Timer TP Unlatching Coil UNLATCH Bitwise XOR XOR EZ LADDER User s Manual Divelbiss Corporation Section 17 Target Features amp Functions Lists PLC on A CHIP PLCMOD M2 25601X The supported features include all features that are supported individually Using certain features may limit availability of other features SUPPORTED FEATURES Analog Inputs 8 Channels Hardware Counter Retentive Variables Real Time Clock External HDIO Bus Keypad Support LCD Display Support PWM Outputs SPI Slave Synchronous Serial Interface SSI Serial Printing Modbus Slave EEPROM Storage SUPPORTED FUNCTIONS Less Than lt Less Than Equal To lt Not Equal To lt gt Equal To EEPROM Read
83. Functions FLOOR EZ LADDER User s Manual 20 14 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects CMP Symbol Inputs EN Boolean Function Enable Input function is disabled if EN is false EN IT P1 Integer Real Input P2 Integer Real Input PI EQ Outputs LT Boolean Output True when P1 P2 EQ Boolean Output True when P1 P2 P2 GT GT Boolean Output True when P1 P2 Description The CMP function compares the P1 and P2 inputs LT is true when the P1 input is less than the P2 input EQ is true when the P1 input equals the P2 input GT is true when the P1 input is greater than the P2 input The enable EN must be true for the CMP function to be enabled Example Circuit LessThan EM LT EqualTo Input EQ GreaterThan P2 GT Related Functions LIMIT HYSTER A EZ LADDER User s Manual 20 15 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects CNTRTMR Symbol Inputs CNTRTMRI EN Boolean Input Enable or Pulse input EN Q R Boolean Input Reset Count Outputs Q Boolean Function Enable Output true when function is enabled CV Integer Output Current Counter Value Description The CNTRTMR function provides access and functionality to a hardware counter must be supported by target When configured as a counter the the trigger can be set to rising or falling edge of the input pulse on the EN input R resets the current counter value C
84. HAT NEITHER DIVELBISS NOR ITS SUPPLIERS EMPLOYEES OR AFFILIATES WILL BE LIABLE FOR ANY LOSS OF PROFITS LOSS OF BUSINESS OR GOODWILL LOSS OF DATA OR USE OF DATA INTERRUPTION OF BUSINESS NOR FOR ANY INDIRECT SPECIAL INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY KIND UNDER ARISING OUT OF OR RELATED TO THE SUBJECT MATTER OF THIS AGREEMENT SPECIFICALLY INCLUDING ANY LOSS TO OR DAMAGES OF LICENSEE S CUSTOMERS OF ANY SORT WHATSOEVER HOWEVER CAUSED WHETHER ANY SUCH CLAIM SOUNDS IN CONTRACT TORT STRICT LIABILITY OR OTHER LEGAL OR EQUITABLE THEORY EVEN IF DIVELBISS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSS IN NO EVENT WILL DIVELBISS S LIABILITY UNDER ARISING OUT OF OR RELATED TO THE SUBJECT MATTER OF THIS AGREEMENT EXCEED THE AMOUNT RECEIVED BY DIVELBISS FROM LICENSEE UNDER THIS AGREEMENT DURING THE NINETY 90 DAY PERIOD PRECEDING THE EVENT GIVING RISE TO SUCH LIABILITY OR THE AMOUNT OF A SINGLE USER LICENSE FEE FOR THE EZ LADDER TOOLKIT WHICHEVER IS GREATER 8 a Indemnification Subject to the limitations of Section 7 of this Agreement Divelbiss will indemnify Licensee from and against liability for any judgment finally awarded by a court of competent jurisdiction against Licensee based upon a claim that the EZ LADDER Toolkit infringes any current U S patent or copyright of a third party provided that Divelbiss is promptly notified of any such threats claims or proceedings afforded the opportunity to intervene in any such proce
85. IN Modulo MOD Multiplication MULT OptiCAN Node Status OPTICAN NODESTATUS OptiCAN Transmit Message OPTICAN TXNETMSG Bitwise NOT NOT Bitwise OR OR Rising Edge Detect R_TRIG Convert to Real REAL Rotate Left ROL Rotate Right ROR Reset Set Reset Dominant RS Select SEL Set Date SETDATE Set Time SETTIME Shift Left SHL Shift Right SHR Serial Print SERIAL PRINT Set Reset Set Dominant SR Subtraction SUB Convert to Timer TIMER Time Delay Off TOF Time Delay On TON Pulse Timer TP Unlatching Coil UNLATCH Bitwise XOR XOR EZ LADDER User s Manual 17 16 Divelbiss Corporation Section 17 Target Features amp Functions Lists ENHANCED BABY BEAR ICM EBB 700 The supported features include all features that are supported individually Using certain features may limit availability of other features SUPPORTED FEATURES Retentive Variables Hardware Counter EEPROM Storage Real Time Clock HDIO Expansion Port J1939 Communications OptiCAN Networking Modbus Slave Serial Printing SUPPORTED FUNCTIONS Less Than lt Less Than Equal To lt Not Equal To lt gt Equal To EEPROM Read EEPROM_READ EEPROM Write EEPROM_WRITE Greater Than gt Greater Than Equal To gt Absolute Value ABS Addition ADD Bitwise AND AND Average AVG Bit Pack BIT PACK Bit Unpack BIT UNPACK Convert to Boolean BOOLEAN Compare CMP Hardware Counte
86. K Cancel E 30 1073741824 31 2147483648 Example Circuit CHI HT UNPACK Related Functions BIT PACK EZ LADDER User s Manual 20 12 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects BOOLEAN Symbol Inputs BOOLEAN EN Boolean Function Enable Input function is disabled if EN is false P Integer Real Input Output is boolean of this input Outputs Q Boolean Function Enable Output true when function is enabled O Boolean output of P input Description The BOOLEAN function converts the input P into a boolean zero or non zero ouput O The enable EN must be true for the BOOLEAN function to be enabled The Q output is true when the BOOLEAN function is enabled Example Circuit Input BOOLEAN Related Functions INTEGER REAL EZ LADDER User s Manual 20 13 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects CEIL Symbol Inputs CEIL EN Boolean Function Enable Input function is disabled if EN is false EN Q P1 Real Input Output is the rounded up result of this input Pl 0 Outputs Q Boolean Function Enable Output true when function is enabled O Real Output Rounded up result of the P1 input Description The CEIL function provides a rounded up result of the P1 Input and outputs this number O The enable EN must be true for the CEIL function to be enabled The Q output is true when the CEIL function is enabled Example Circuit Input CEIL Related
87. L skipping any ladder between the jump and label Example Circuit Inputi o Labell Output Labell Output2 Related Functions JMP EZ LADDER User s Manual 20 49 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects LATCH coil Symbol Inputs None xL Outputs None Description The LATCH coil acts like a direct coil except once the coil is energized it will maintain its energized state until the UNLATCH coil is triggered Example Circuit Inputi CRI Related Functions UNLATCH DIRECT COIL INVERTED COIL EZ LADDER User s Manual 20 50 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects LCD CLEAR Symbol Inputs NDS EN Boolean Function Enable Input sensed on rising edge LCD CLEAR EH Outputs Q Boolean Output true the function is enabled Description When the EN input detects a rising edge the LCD Display is set to be cleared The LCD display is cleared and updated at the END of the ladder scan Example Circuit CHR CD CLEAHT Related Functions LCD PRINT EZ LADDER User s Manual 20 51 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects LCD PRINT Symbol Inputs re EN Boolean Function Enable Input function is disabled if EN is false LCD PRINT EN is rising edge sensitive EM aL Others as dynamically required Outputs Q Boolean Function Status Output Set true at completion of EH printing ER Integ
88. L BOOL EZ LADDER User s Manual 20 40 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects INVERTED COIL Symbol Inputs d None Outputs None Description The INVERTED COIL is a boolean representation of an internal variable Control relay or an actual hardware real world output Its normal state is true or normally energized If there is power flow to the DIRECT COIL then it will be false off If there is no power flow to the DIRECT COIL then it will be true on Example Circuit inputi Related Functions DIRECT COIL LATCH UNLATCH EZ LADDER User s Manual 20 41 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects INVERTED CONTACT Symbol Inputs iF None Outputs None Description The INVERTED CONTACT is a boolean representation of an internal variable Control relay or an actual hard ware real world input Its normal state is true or normally closed A true on condition of the input will cause the contact to open and stop power flow A false off condition of the input the contact will be closed and allow power flow Example Circuit inputi Output Related Functions INVERTED CONTACT EZ LADDER User s Manual 20 42 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects J1939 SPN Symbol Inputs 41939 SPN EN Boolean Function Enable Input function is disabled if EN is false EN Q Outputs zen Q Boolean Func
89. L SvsrEM PCS 2X1 PCS 2X2 The supported features include all features that are supported individually Using certain features may limit availability of other features SUPPORTED FEATURES Retentive Variables Real Time Clock HDIO Bus Serial Printing Modbus Slave EEPROM Storage Hardware Counter Grey Scale SSI Encoder Interface J1939 Communications OptiCAN Networking Analog Inputs 6 Channels PWM Outputs 2 Channels Analog Outputs 4 Channels SUPPORTED FUNCTIONS Less Than lt Less Than Equal To lt Not Equal To lt gt Equal To EEPROM Read EEPROM_READ EEPROM Write EEPROM_WRITE Greater Than gt Greater Than Equal To gt Grey Scale Encoder GC_ SSI Absolute Value ABS Addition ADD Bitwise AND AND Average AVG Bit Pack BIT_PACK Bit Unpack BIT UNPACK Convert to Boolean BOOLEAN Compare CMP Hardware Counter CNTRTMR Count Down CTD Count Up CTU Count Up Down CTUD Division DIV Drum Sequencer DRUM SEQ Falling Edge Detect F_TRIG Get Date GETDATE Get Time GETTIME High Speed Timer HIGH SPD TMR Hysteresis HYSTER Convert to Integer INTEGER J1939 Receive 1939 SPN Latching Coil LATCH Limit LIMIT Moving Average MAVG Maximum MAX Minimum MIN Modulo MOD Multiplication MULT OptiCAN Node Status OPTICAN NODESTATUS OptiCAN Transmit Message OPTICAN TXNETMSG Bitwise NOT NOT Bitwise OR OR Pulse With Modulation PWM PWM Fr
90. LADDER directory security is depend ent on local network security settings and may be set for user Read Execute only To allow the user to be able to write to this directory an Administrator must change the permissions accordingly Windows Administrator Rights are required to install register activate EZ LADDER 1 Insert the EZ LADDER application CD into your CD drive Select the Start button and choose Run j Settings ai x Search Internet resource and Windows will open it For you FI Type the name of a program folder document or Help and Support E Open d setup exe v 2 Select the CD drive that the EZ LADDER CD was inserted Choose the setup exe and click OK Windows XP Profes OK Browse a Aw EZ LADDER User s Manual l 2 Divelbiss Corporation Section 1 Getting Started 3 This will open the EZ LADDER setup wizard that will install EZ LADDER onto the computer Click NEXT 4 Complete the Name and Organization fields and enter the Serial Number found on the EZ LADDER CD Click NEXT 6 Use the default location for installing EZ LADDER or browse and select a different location Click NEXT 7 All the information is gathered Click NEXT to install EZ LADDER The EZ LADDER installation will copy all the required files Installation will complete Click FINISH Welcome to the InstallShield Wizard for EZ Ladder Toolkit The InstallShi
91. M Outputs 10 1 PWM Outputs 10 2 Section 11 SPI Slave 11 1 SPI Slave 11 2 SPI Slave Configuration 11 2 Using the SPI Slave Feature 11 3 SPI Timing Diagrams 11 5 Section 12 Serial Printing 12 1 Serial Print Functionality 12 2 Section 13 LCD Displays 13 1 LCD Display Functionality 13 2 Section 14 Matrix Keypad 14 1 Keypad Functionality 14 2 Section 15 J1939 Communications 15 1 J1939 Communications 15 2 Section 16 OptiCAN Networking 16 1 What is OptiCAN 16 2 Planning Your Network 16 2 Hardware Requirements amp Recommendations 16 2 Twisted Pair Shielded Cable Specifications Requirements 16 3 Terminating Resistor Specifications Requirements 16 3 OptiCAN Specifications 16 5 OptiCAN Controller Operation 16 5 OptiCAN Controller Heartbeat 16 5 Configuring a Controller on the OptiCAN Network 16 6 Broadcasting Sending Data to another Device 16 7 Receiving Data on a Controller from another Device 16 9 The OPTICAN NODESTATUS Function Block 16 10 The OPTICAN TXNETMSG Function Block 16 11 Controller Node Registers 16 12 Configuring Other OptiCAN Devices Non Controller 16 13 OptiCAN Network Register Assignments 16 17 OptiCAN Node List Notes 16 18 Sample Network Planning Forms 16 19 EZ LADDER User s Manual TOC 4 Divelbiss Corporation Chapter X Chapter Title Here Section 17 Target s Features amp Functions 17 1 PLC on a Chip PLCHIP M2 1280X Info 17 2 PLC on a Chip PLCHIP M2 2560X Info 17 3 PLC on a Chip PLCHIP M2 2562X
92. M function is designed to be used with the SEED function Without the SEED the output will not be random Example Circuit Inputi RANDOM Related Functions SEED EZ LADDER User s Manual 20 73 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects REAL Symbol Inputs REAL EN Boolean Function Enable Input function is disabled if EN is false EN 0 P Boolean Integer Timer Input Output is real of this input P 0 Outputs Q Boolean Function Enable Output true when function is enabled O Real Output Conversion of the P input If the input type is a timer then the output is a real representation in milliseconds of the input value Description The REAL function converts the input P into an real ouput O The enable EN must be true for the REAL function to be enabled The Q output is true when the REAL function is enabled Example Circuit Input REAL Related Functions BOOL INTEGER EZ LADDER User s Manual 20 74 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects R TRIG Symbol Inputs TRIGI CLK Boolean Function Enable Input detects rising edge of CLK Outputs Q Boolean Output Pulsed Output true for one scan when CLK detects a rising edge Description The R TRIG is a function that may be used to trigger another function on the rising edge of a transition When the CLK detects a false to true transition the output Q is energized for one scan of the program o
93. Manual 16 1 Divelbiss Corporation Section 16 OptiCAN Network What is OptiCAN OptiCAN is a Divelbiss proprietary CAN Controller Area Network that provides a commuication link between Divelbiss OptiCAN enabled controllers and other OptiCAN enabled devices such as I O modules and controllers The Divelbiss OptiCAN network supports up to 64 nodes devices and is register based Each node supports up to 256 registers and communication can be triggered based on time or on an event Divelbiss OptiCAN can perform the following major functions 1 Allow controllers to access external I O Devices 2 Allow controllers to access other controllers 3 Allow the user to configure devices utilizing the CAN protocol Only Divelbiss OptiCAN enabled devices will commuicate on the network Planning your Network As with any network or communication scheme the network should be planned taking into account the amount of communication broadcast rate communication triggers register assignments and timing requirements This plan is essential for a successful implementation of the network All register needs should be identified and assigned for each device prior to the start of the programming Register assignments should start at the high end of available registers and work backward ie start with regis ter 127 and then assign 126 and so on As some devices utilize lower register numbers this will ensure that the controller register assigments will no
94. NLATCH Bitwise XOR XOR EZ LADDER User s Manual LL Divelbiss Corporation Section 17 Target Features amp Functions Lists ENHANCED BABY BEAR ICM EBB 500 The supported features include all features that are supported individually Using certain features may limit availability of other features SUPPORTED FEATURES Retentive Variables Real Time Clock SUPPORTED FUNCTIONS Less Than lt Less Than Equal To lt Not Equal To lt gt Equal To EEPROM Read EEPROM_READ EEPROM Write EEPROM_WRITE Greater Than gt Greater Than Equal To gt Absolute Value ABS Addition ADD Bitwise AND AND Average AVG Bit Pack BIT_PACK Bit Unpack BIT UNPACK Convert to Boolean BOOLEAN Compare CMP Count Down CTD Count Up CTU Count Up Down CTUD Division DIV Drum Sequencer DRUM_SEQ Falling Edge Detect F_TRIG Get Date GETDATE Get Time GETTIME Hardware Counter CNTRTMR High Speed Timer HIGH SPD TMR Hysteresis HYSTER Convert to Integer INTEGER Hardware Counter EEPROM Storage HDIO Expansion Port Latching Coil LATCH Limit LIMIT Moving Average MAVG Maximum MAX Minimum MIN Modulo MOD Multiplication MULT Bitwise NOT NOT Bitwise OR OR Rising Edge Detect R_TRIG Convert to Real REAL Rotate Left ROL Rotate Right ROR Reset Set Reset Dominant RS Select SEL Set Date SETDATE Set Time SETTIME Shift Left SHL
95. OD Greater Than gt Multiplication MULT Greater Than Equal To gt Bitwise NOT NOT Absolute Value ABS Bitwise OR OR Addition ADD Rising Edge Detect R TRIG Bitwise AND AND Convert to Real REAL Average AVG Rotate Left ROL Bit Pack BIT PACK Rotate Right ROR Bit Unpack BIT UNPACK Reset Set Reset Dominant RS Clear Display SI CLRDISP Select SEL Convert to Boolean BOOLEAN Set Date SETDATE Compare CMP Set Time SETTIME Hardware Counter CNTRTMR Shift Left SHL Count Down CTD Shift Right SHR Count Up CTU Set Reset Set Dominant SR Count Up Down CTUD Subtraction SUB Division DIV Convert to Timer TIMER Drum Sequencer DRUM SEQ Time Delay Off TOF Falling Edge Detect F_TRIG Time Delay On TON Get Date GETDATE Pulse Timer TP Get Time GETTIME Unlatching Coil UNLATCH Hysteresis HYSTER Write to Display SI DISP Convert to Integer INTEGER Bitwise XOR XOR EZ LADDER User s Manual 17 27 Divelbiss Corporation SECTION 18 EZ LADDER REPORTS EZ LADDER User s Manual 18 1 Divelbiss Corporation Section 18 EZ LADDER Reports EZ LADDER provides helpful reports for project management These reports are helpful in troubleshooting and documentation upkeep for a project Variable Definitions The variable definitions report provides a summary of all of the variables in the ladder diagram project These variables are sorted by type for easy reference For
96. OptiCAN Device 3 120 OHM RESISTOR OptiCAN Device 4 QN NV EGND OptiCAN Device 1 Figure 16 0 SS EZ LADDER User s Manual 16 4 Divelbiss Corporation V Section 16 OptiCAN Network OptiCAN Specifications Bandwith OptiCAN network operates at 250KBits Sec Maximum Cable Length The entire network s cable length should not exceed 40 meters Maximum of Nodes The maximum number of nodes devices that may be connected to one network is 64 Registers per Node Each node supports 256 registers OptiCAN Controller Operation A typical application involves a controller running its own program monitoring inputs and controlling outputs based upon the program that is running When connected to an OptiCAN network the same holds true but now the network functionality is gained The following describes how a controller operated when used on a active OptiCAN network A controller on an OptiCAN network will function as normal monitoring its inputs and controlling outputs based on local logic The controller can broadcast across the network for other devices I O and controllers to receive and act upon Broadcasting is the transmission of packets of data These packets of data include general formatting the con tents of and identifying attributes of registers that are set in the ladder program In addition to broadcasting data the controller can also listen for broadcasts from other devices These
97. PUT tT ti tL a MSB FIRST MSB BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 LSB MINIMUM 1 2 SCK LSB FIRST LSB BIT 1 BIT 2 BIT 3 BIT 4 BIT 5 BIT 6 MSB FOR tT H L tL MINIMUM LEADING TIME BEFORE FIRST SCK EDGE tT MINIMUM TRAILING TIME AFTER LAST SCK EDGE u ti MINIMUM IDLING TIME BETWEEN TRANSFERS MINIMUM SS HIGH TIME tL tT AND tl ARE REQUIRED Figure 11 4 DETAILED COMMUNICATIONS TIMING DIAGRAMS READ SEQUENTIAL ti 1213 t4 t5 t5 t6 EZ LADDER User s Manual DATA 31 24 DATA 23 16 DATA 15 8 DATA 7 0 Divelbiss Corporation Section 11 SPI Slave WRITE SEQUENTIAL Don tCare gt X Don tCare sox jum mm lur mmm MISO DATA 31 24 DATA 23 16 DATA 15 8 DATA 7 0 WRITE d t4 t5 6 SCK i JLLUBUUUL WLU UU UU MOSI DATA 31 24 DATA 23 16 DATA 15 8 X DATA 7 0 MISO 0 x 00 0 x 00 lt gt lt x9 L exon K exo gt Notes 1 All Detailed Communications Timing Diagrams are shown using ACTIVE HIGH SCK 2 t1 12 t3 and min 1 2 SCK t5 min 50uS 4 t6 min 1mS EZ LADDER User s Manual 11 6 Divelbiss Corporation SECTION 12 SERIAL PRINT EZ LADDER User s Manual 12 1 Divelbiss Corporation Section 12 Serial Print Serial Print Func
98. Q is true When the input IN sees a transition from true to false the timer begins timing When the elapsed time ET is equal to the preset time PT the output Q de energizes goes false When the input IN sees a false to true to false transition the timer is reset and begins timing again Example Circuit Inputi TOFI Qutputi Timing Diagram Related Functions TON TP EZ LADDER User s Manual 20 95 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects TON Symbol Inputs TONI IN Boolean Input Timer sense trigger input IN Q PT Timer Input Maximum time value preset timer value PT ET Outputs Q Boolean Output True when IN is true and ET PT ET Timer Output Current Elapsed timer value Description The TON on delay timer time delay on pick up is a programmable timer with a variable turn on time When the input IN input is true the timer begins timing When the elapsed time ET is equal to the preset time PT the output Q energizes goes true When the input IN sees a true to false transition the timer is reset and the output Q is de energized goes false Example Circuit Input TONI Qutputi Timing Diagram Related Functions TOF TP EZ LADDER User s Manual 20 96 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects TP Symbol Inputs TP1 IN Boolean Input Timer sense trigger input IN PT Timer Input Maximum time value pres
99. RIG Convert to Real REAL Rotate Left ROL Rotate Right ROR Reset Set Reset Dominant RS Select SEL Set Date SETDATE Set Time SETTIME Shift Left SHL Shift Right SHR Set Reset Set Dominant SR Subtraction SUB Convert to Timer TIMER Time Delay Off TOF Time Delay On TON Pulse Timer TP Unlatching Coil UNLATCH Bitwise XOR XOR EZ LADDER User s Manual 17 6 Divelbiss Corporation Section 17 Target Features amp Functions Lists PLC A CHIP MopuLE PLCMOD M2 25600X The supported features include all features that are supported individually Using certain features may limit availability of other features SUPPORTED FEATURES Analog Inputs 8 Channels Hardware Counter Retentive Variables HDIO Bus Keypad Support Modbus Slave LCD Display Support PWM Outputs SPI Slave Synchronous Serial Interface SSI Serial Printing EEPROM Storage SUPPORTED FUNCTIONS Less Than lt Less Than Equal To lt Not Equal To lt gt Equal To EEPROM Read EEPROM_READ EEPROM Write EEPROM_WRITE Greater Than gt Greater Than Equal To gt Grey Scale Encoder GC SSI Absolute Value ABS Addition ADD Bitwise AND AND Average AVG Bit Pack BIT PACK Bit Unpack BIT UNPACK Convert to Boolean BOOLEAN Compare CMP Hardware Counter CNTRTMR Count Down CTD Count Up CTU Count Up Down CTUD Division DIV Drum Sequencer DRUM_SEQ Falling Edge
100. RINTI Related Functions LCD CLEAR EZ LADDER User s Manual 20 53 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects LESS THAN lt Symbol Inputs i EN Boolean Function Enable Input function is disabled if EN is false EN Q Px Integer Real Input Input numbers for comparison P1 Outputs Q Boolean Output true when less than conditions are met Description The LESS THAN provides an if less than comparison for the Px inputs The number of inputs is specified when the object is placed The output Q is true if P1 is less than P2 and P2 is less than P3 and so on The enable EN must be true for the LESS THAN function to be enabled Example Circuit Outputl Related Functions gt lt gt lt gt EZ LADDER User s Manual 20 54 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects LESS THAN OR EQUAL TO lt Symbol Inputs EN Boolean Function Enable Input function is disabled if EN is false EN Px Integer Real Input Input numbers for comparison P1 Outputs Q Boolean Output true when less than or equal to conditions are met B Description The LESS THAN OR EQUAL TO provides an if less than or equal to comparison for the Px inputs The number of inputs is specified when the object is placed The output Q is true if P1 is less than or equal to P2 and P2 is less than or equal to P3 and so on The enable EN must be true for the LESS THAN OR EQUAL TO
101. RMS AND CONDITIONS
102. Register Number 5 Broadcast Trigger PF rl Address Register CAN IN 15 5 Figure 16 7 Click ok to save the variable information This variable will listen and update based on remote broadcasts from the configured Node ID and Register over the OptiCAN network The OPTICAN NODESTATUS Function Block This function block is used to monitor the status of any Node on the network provided the node has been con figured to broadcast its Status The function is OPTICAN NODESTATUS It can be placed from the functions drop down list if OptiCAN enabled and configured properly For this function to operate properly the remote node you will be listening for must be configured to broadcast its node status in a time interval less than the timeout value for the function To use the OPTICAN NODESTATUS function select the function from the nsert Function drop down list Locate in the ladder program and click where the function is to be placed The OptiCAN Node Status Properties z a dialog box will open See Figure 16 8 OptiCAN Node Status Properties Mame OPTICAN_NODESTATLUS1 Description Timeout ms 1 000 Made ID 8 Cancel Figure 16 8 EZ LADDER User s Manual 16 10 Divelbiss Corporation Section 16 OptiCAN Network The function NAME can be changed if preferred or the default name may be used The DESCRIPTION is an optional field to enter a description of what the function does for later reference
103. SEL Compare CMP Shift Left SHL Hardware Counter CNTRTMR Shift Right SHR Count Down CTD Set Reset Set Dominant SR Count Up CTU Subtraction SUB Count Up Down CTUD Convert to Timer TIMER Division DIV Time Delay Off TOF Drum Sequencer DRUM SEQ Time Delay On TON Falling Edge Detect F_TRIG Pulse Timer TP Hysteresis HYSTER Unlatching Coil UNLATCH Convert to Integer INTEGER Bitwise XOR XOR EZ LADDER User s Manual 17 24 Divelbiss Corporation Section 17 Target Features amp Functions Lists SOLVES IT PLUG IN PLC SI 200 The supported features include all features that are supported individually Using certain features may limit availability of other features SUPPORTED FEATURES EEPROM Storage 4 Digit 7 Segment Display Programmable LEDs 4 Programmable Pushbuttons 2 Real Time Clock Retentive Variables Hardware Counter 4 Inputs 4 Outputs SUPPORTED FUNCTIONS Less Than lt Latching Coil LATCH Less Than Equal To lt Limit LIMIT Not Equal To lt gt Moving Average MAVG Equal To Maximum MAX EEPROM Read EEPROM_READ Minimum MIN EEPROM Write EEPROM_WRITE Modulo MOD Greater Than gt Multiplication MULT Greater Than Equal To gt Bitwise NOT NOT Absolute Value ABS Bitwise OR OR Addition ADD Rising Edge Detect R_TRIG Bitwise AND AND Convert to Real REAL Average AVG Rotate Left ROL Bit Pack BIT PACK Rotate Right ROR Bit Unpack
104. SRON AM TXMET e Figure 16 11 Controller Node Registers OptiCAN controller network registers are numbered 0 255 Registers 0 to 127 are not assigned and are to be used in the ladder program to communicate over the OptiCAN network Registers 128 to 255 are pre assigned for other functions See the list of register assignments later in this OptiCAN network section mented For each device their register requirements should be identified registers assigned and registers docu mented by the programmer This will verify the all requirements are met and help to promote proper functionality and and design It is recommended that before programming is stared that all nodes identified assigned a node ID and docu 8 SSS SSS SSS EZ LADDER User s Manual 16 12 Divelbiss Corporation Section 16 OptiCAN Network Configuring Other OptiCAN Devices Non Controller Configuring other OptiCAN devices such as I O must be done using the built in Divelbiss OptiCAN Configuration Tool or the optionally purchsed OptiCAN Configuration Tool Pro OptiCAN Configuration Tool Professional The OptiCAN Configuration Tool Pro should be used when a number of nodes exceeds 10 or if you want to see more network data than the built in OptiCAN Configuration Tool can provide The Professional Pro version allows for more nodes viewing real time status sending network Start Stop and Reset Commands and addition al network data for troubleshooting T
105. T UNPACK Convert to Boolean BOOLEAN Compare CMP Hardware Counter CNTRTMR Count Down CTD Count Up CTU Count Up Down CTUD Division DIV Drum Sequencer DRUM_SEQ Falling Edge Detect F_TRIG Get Date GETDATE Get Time GETTIME High Speed Timer HIGH SPD TMR Hysteresis HYSTER Convert to Integer INTEGER Keypad KEYPAD Latching Coil LATCH LCD Clear LCD CLEAR LCD Print LCD PRINT Limit LIMIT Moving Average MAVG Maximum MAX Minimum MIN Modulo MOD Multiplication MULT Bitwise NOT NOT Bitwise OR OR Pulse With Modulation PWM PWM Frequence PWM FREQ Rising Edge Detect R_TRIG Convert to Real REAL Rotate Left ROL Rotate Right ROR Reset Set Reset Dominant RS Select SEL Set Date SETDATE Set Time SETTIME Shift Left SHL Shift Right SHR Serial Print SERIAL PRINT Set Reset Set Dominant SR Subtraction SUB Convert to Timer TIMER Time Delay Off TOF Time Delay On TON Pulse Timer TP Unlatching Coil UNLATCH Bitwise XOR XOR EZ LADDER User s Manual 17 3 Divelbiss Corporation Section 17 Target Features amp Functions Lists PLC oN A CuiP PLCHIP M2 2562X PLCHIP M2 2563X The supported features include all features that are supported individually Using certain features may limit availability of other features SUPPORTED FEATURES Analog Inputs 8 Channels Hardware Counter Retentive Variables Real Time Clock Exter
106. The TIMEOUT ms box is where a timeout value in milliseconds is entered The NODE ID is the node ID number of the remote device that will be listened to for status Click ok to place the function See Figure 16 9 AN NODEST NodedeErr Figure 16 9 EN Input This input enables the function to operate A true input will enable the function Q Output If the node status is not received during Timout ms period the function will timeout indicating an error has occured the normally high Q output will go low on error VAL Output This is a 32 bit integer number The upper 16 bits stores the error code while the lower 16 bits stores the node status A list of error codes can be found at the end of the this OptiCAN network section To monitor the status of your own node in the Add Edit variable dialog check the IN box leave the Node ID blank and enter register 191 The OPTICAN TXNETMSG Function Block This function block is used to send start stop and reset messages to all nodes on the OptiCAN network On power up the OptiCAN network does not start as a default The OptiCAN network communication must receive a start command from a controller To use the start stop or reset messages the OPTICAN TXNETMSG func tion block is used To use the OPTICAN TXNETMSG function select the function from the nsert Function drop down list Locate in the ladder program and click where the function is to be placed This function is
107. The function block examples shown are for VT100 terminals Variables as well as text may be printed These variables must be formatted correctly As variables are added to the text string the function block will automatically add the appropriate input for the vari ables Text Message Formatting TEXT Text is entered exactly as the message is intended EZ LADDER User s Manual 20 81 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects VARIABLES Variables are placed in the text using flags and print specification fields The following is the configuration for adding variables to the text flag width precision Example Text OIL PSI 3d Jo identifies the beginning of a variable or other type of text entry flag This flag is optional Use the following flags to change the way data is transmitted Flag Description Left align the variable within the specified width Default is align right 0 If width is prefixed with 0 leading zeros are added until the minimum width is reached If 0 and are used together the 0 is ignored If O is specified in an integer format the 0 is ignored width This flag is optional Width is the number of characters that will be printed total precision This flag is optional The precision is the number of digits after the decimal point when using REAL variables VARIABLE FORMATS Variables are formatted based on the variable type The following are supported variable type
108. Time Clack SPI slave SPI Slave 551 Bus Serial Print Serial Print n Variable Names Mame SPIO Ge Figure 9 1 xx m 88 EZ LADDER User s Manual 9 2 Divelbiss Corporation Section 9 SSI Encoder To use the GC SSI block select it from the functions list and place in the project workspace A dialog box will open See Figure 9 1 Gray Code 551 Properties Name jGC_SSI1 Description Made Master 551 Port 551 sl 551 Clock Rate KHz Resolution bits 12 Cancel Figure 9 2 Select the SSI Port using the drop down menu some targets may support mulitple GC SSI ports Select the SSI clock Rate using the drop down menu This rate is in KHZ Enter the resolution and click ok When functioning the GC SSI block returns an integer value representing the Graycode reading from the encoder This is read serially converted from Graycode to a binary number then returned to the block as an Integer output Slave SSI Encoder Input Two targets may be connected to one GC SSI encoder to provide redundancy These two are connected to a single GC SSI encoder input and are configured as Master and Slave See Section 20 for more details on the GC_ SSI function block EZ LADDER User s Manual 9 8 Divelbiss Corporation SECTION 10 PWM OUTPUTS EZ LADDER User s Manual 10 1 Divelbiss Corporation Section 10 PWM Outputs PWM Outputs EZ LADDER provides two functions that will
109. Up CTU Count Up Down CTUD Division DIV Drum Sequencer DRUM_SEQ Falling Edge Detect F_TRIG Get Date GETDATE Get Time GETTIME High Speed Timer HIGH SPD TMR Hysteresis HYSTER Convert to Integer INTEGER J1939 Receive 1939 SPN Keypad KEYPAD Latching Coil LATCH LCD Clear LCD CLEAR LCD Print LCD PRINT Limit LIMIT Moving Average MAVG Maximum MAX Minimum MIN Modulo MOD Multiplication MULT OptiCAN Node Status OPTICAN NODESTATUS OptiCAN Transmit Message OPTICAN TXNETMSG Bitwise NOT NOT Bitwise OR OR Pulse With Modulation PWM PWM Frequence PWM FREQ Rising Edge Detect R_TRIG Convert to Real REAL Rotate Left ROL Rotate Right ROR Reset Set Reset Dominant RS Select SEL Set Date SETDATE Set Time SETTIME Shift Left SHL Shift Right SHR Serial Print SERIAL PRINT Set Reset Set Dominant SR Subtraction SUB Convert to Timer TIMER Time Delay Off TOF Time Delay On TON Pulse Timer TP Unlatching Coil UNLATCH Bitwise XOR XOR EZ LADDER User s Manual 17 10 Divelbiss Corporation Section 17 Target Features amp Functions Lists ENHANCED BABY BEAR ICM EBB 100 The supported features include all features that are supported individually Using certain features may limit availability of other features SUPPORTED FEATURES Retentive Variables SUPPORTED FUNCTIONS Less Than lt Less Than Equal To lt
110. V Q is true when the counter is counting Example Circuit Pulse CHTRTHHI CR2 CHI Counter Timer Properties Cntr Timer Properties Name CNTRTMAT Description Input Channel Y Counter Trigger Edge Rising C Falling Any Edge Cancel Related Functions None EZ LADDER User s Manual 20 16 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects COS Symbol Inputs Boolean Function Enable Input function is disabled if EN is false EN P1 Real Input Output is cosine of this input Pl Outputs Q Boolean Function Enable Output true when function is enabled O Real Output Cosine value of P1 input Description The COS function provides a cosine O from the input value P1 The enable EN must be true for the COS function to be enabled The Q output is true when the COS function is enabled Example Circuit Input COS InputNum Related Functions SIN TAN ASIN ATAN ACOS A EZ LADDER User s Manual 20 17 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects CTD Symbol Inputs CIDI CD Boolean Input Down Count Pulse CD LD Boolean Input Load Counter Value sets CV PV PV Integer Input Initial Counter Value LD Outputs Q Boolean Function Enable Output true when CV 0 CV Integer Output Current Counter Value E Xr Description The CTD function is a programmable down count
111. WM Properties dialog will open This dialog is used to add remove and configure the PWM channels on the target See Figure 10 2 EZ LADDER User s Manual 10 2 Divelbiss Corporation Section 10 PWM Outputs PWM Properties Fw Channels Add Remove Max Frequency 47 058 KHz Min Frequency 1 435 Hz CLE Desired Frequency Hz Actual Frequency Hz CLE B Desired Frequency Hz Actual Frequency Hz Cancel Figure 10 2 8 Click the ADD button The ADD PWM dialog will open Select the channels you wish to install use Note The PWM features are target specific For the remainder of this we will use the PLC on a Chip as the example See the hardware target information for more details on the hardware PWM availability 9 Enter the desired frequency for Clock A and Clock B if installed The PLC on a Chip has 8 available PWM Channels These 8 channels are either controlled with Clock A or Clock B This allows two different PWM frequencies The Minimum and Maximum frequencies are displayed in the PWM Properties dialog The frequency for Clock A and Clock B must be in this range The actual frequency is what will be seen on the actual PWM hardware output channels as close as possible to the desired frequency this is due to limitations of the hardware See Figure 10 3 10 Click ok to close the PWM Properties and save the changes 11 Click to close the Target Properties and save the changes
112. XOR of inputs PI Outputs Q Boolean Function Enable Output true when function is enabled Integer Output Bitwise XOR of P1 P2 Inputs pe Description The XOR functions provides a bitwise exclusive OR function of the P1 and P2 inputs The enable EN must be true for the XOR function to be enabled The Q output is true when the XOR function is enabled Example Circuit Related Functions OR AND EZ LADDER User s Manual 20 99 Divelbiss Corporation DIVELBISS SOFTWARE LICENSE AGREEMENT This Software License Agreement the Agreement sets forth the terms by which Divelbiss Corporation an Ohio corporation having a principal place of business at 9778 Mt Gilead Road Fredericktown Ohio Divelbiss authorizes its bona fide licensees who have paid all applicable fees and accepted the terms of this Agreement each a Licensee to use the Licensed Software as defined below provided herewith Installing using or attempting to install or use such Licensed Software or otherwise expressing assent to the terms herein constitutes acceptance of this Agreement Any installation use or attempted installation or use of such Licensed Software by any party other than a Licensee or otherwise in violation of this Agreement is expressly prohibited Introduction Whereas Divelbiss has developed certain modules of computer software known as PLC ON A CHIP Kernel and EZ LADDER Toolkit and Licensee wishes to secure certain rights to use
113. able ex mb C5 Aes OOo 6 CC 6 Related Functions SR EZ LADDER User s Manual 20 78 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects SEED Symbol Inputs SEED EN Boolean Function Enable Input function is disabled if EN is false EN Q P Integer Input Number to base SEED generation on P Outputs Q Boolean Function Enable Output true when function is enabled Description The SEED function provides the number which the RANDOM function uses as the basis for generating a random number The enable EN must be true for the SEED function to be enabled The Q output is true when the SEED function is enabled Example Circuit Inputi SEED Related Functions RANDOM EZ LADDER User s Manual 20 79 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects SEL Symbol Inputs p EN Boolean Function Enable Input function is disabled if EN is false EN Q P1 Integer Real Input Selectable input 1 P2 Integer Real Input Selectable input 2 PI Qutputs Q Boolean Function Enable Output true when function is enabled m O Integer Real Output Output selected input Description The SEL function provides selection of the P1 and P2 inputs If enable EN is false the output O will be equal to the input P1 If the enable EN is true the output O will be equal to the input P2 The Q output is true when the SEL function is enabled Inputi Numberl Number Example
114. able 3 Address boolean type 2 bytes LLLI CL LLLL vaias L Related Functions EEPROM READ EZ LADDER User s Manual 20 27 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects EXP Symbol Inputs EXP EN Boolean Function Enable Input function is disabled if EN is false EN Q P1 Real Input Output is natural exponential of this number P 0 Outputs Q Boolean Function Enable Output true when function is enabled O Real Output natural exponential of the P1 input Description The EXP function provides the natural exponential of the P1 input The output O is the natural exponential of the P1 input The enable EN must be true for the EXP function to be enabled Example Circuit Input Related Functions EXPT SQRT LN MOD LOG EZ LADDER User s Manual 20 28 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects EXPT Symbol Inputs EAT EN Boolean Function Enable Input function is disabled if EN is false EN Q P1 Real Input Base number P2 Real Input Exponent number Pl o Outputs Q Boolean Function Enable Output true when function is enabled B O Real Output Result of exponentiation Description The EXPT function provides the exponentiation of the P1 and P2 inputs The output O is the is the result of the exponentiation 1 The enable EN must be true for the EXPT function to be enabled Input InputNum InputNum2 E
115. able Output true for scan when ENTER is pressed KB Integer Real Output Buffer which holds up to 10 numeric characters and a decimal point KOL KO Integer Real Output When ENTER is pressed the contents of KB loaded into the variable connected i Description The KEVPAD function is used to allow users to input data This function requires the Kevpad feature be installed on the target s hardware and software The kevpad mav be monitored in two wavs The first is using the KEVPAD function This is useful for allowing a user to input numeric data The second is reading individual button presses as a digital input This is useful for menus Using the KEVPAD for Numeric Input When EN is true the function is enabled Data is entered using numeric kevpad buttons These numeric but tons are temporarily stored in KB When ENTER is pressed the KB is stored in the variable connected to KO The output O is true for the ladder diagram scan in which the ENTER was pressed Pressing the clear button on the keypad erases the buffer KB Numeric Example CHI KEYPAD Using Discrete Inputs to Read Keys To use a digital input to read a keypress it is necessary for at least one KEYPAD function to exisist in the ladder diagram This function initializes the software to be able to use the discrete input option To read the keypad using a digital input discreet place a contact in the ladder diag
116. ables Real Time Clock SUPPORTED FUNCTIONS Less Than lt Less Than Equal To lt Not Equal To lt gt Equal To EEPROM Read EEPROM_READ EEPROM Write EEPROM_WRITE Greater Than gt Greater Than Equal To gt Absolute Value ABS Addition ADD Bitwise AND AND Average AVG Bit Pack BIT_PACK Bit Unpack BIT UNPACK Convert to Boolean BOOLEAN Compare CMP Count Down CTD Count Up CTU Count Up Down CTUD Division DIV Drum Sequencer DRUM_SEQ Falling Edge Detect F_TRIG Get Date GETDATE Get Time GETTIME Hardware Counter CNTRTMR High Speed Timer HIGH SPD TMR Hysteresis HYSTER Convert to Integer INTEGER Hardware Counter EEPROM Storage Latching Coil LATCH Limit LIMIT Moving Average MAVG Maximum MAX Minimum MIN Modulo MOD Multiplication MULT Bitwise NOT NOT Bitwise OR OR Rising Edge Detect R_TRIG Convert to Real REAL Rotate Left ROL Rotate Right ROR Reset Set Reset Dominant RS Select SEL Set Date SETDATE Set Time SETTIME Shift Left SHL Shift Right SHR Set Reset Set Dominant SR Subtraction SUB Convert to Timer TIMER Time Delay Off TOF Time Delay On TON Pulse Timer TP Unlatching Coil UNLATCH Bitwise XOR XOR EZ LADDER User s Manual Divelbiss Corporation Section 17 Target Features amp Functions Lists ENHANCED BABY BEAR ICM EBB 400 The supported featu
117. adecimal Cancel Save Save amp Exit Figure 16 15 To change the Trigger for any register highlight the register and click the down arrow of the trigger column for the register that requires changing This will open a small list of available trigger options Each register main tains its own individual trigger setting See Figure 16 16 When each of the registers of the node have been configured click the SAVE amp EXIT button to save changes and close the Configure Registers dialog box and return to the Node Configuration In addition to changing the trigger from this dialog the Value for each register can be changed providing the register is writable The numbers can be represented in decimal or in hex Figure 16 16 is set to display in dec imal As an example register number 1 Digital Outputs will directly control the outputs on the node By chang ing the Value the outputs can be made to be on or off EZ LADDER User s Manual 16 15 Divelbiss Corporation Section 16 ml Configure Registers Number Name Trigger 0 Digital Inputs On Change of State bul 0 E Digital Outputs None tag l Output Error Status Ione d 255 3 Cpu Page A Esdr A E PWM Frequency At Interval and Change of State 0 Fw Frequency B Mone hal Bh b Pw Polarity More 0 Pw 0 Duty Cycle Mone v 0 B Pw 1 Duty Cycle Mone gt 0 es Pw 2 Duty Cycle Mone bul 0 10 Pw 3 Duty Cycle Mone U Display e Decimal Hexadecima
118. al REAL Rotate Left ROL Rotate Right ROR Reset Set Reset Dominant RS Select SEL Set Date SETDATE Set Time SETTIME Shift Left SHL Shift Right SHR Set Reset Set Dominant SR Subtraction SUB Convert to Timer TIMER Time Delay Off TOF Time Delay On TON Pulse Timer TP Unlatching Coil UNLATCH Bitwise XOR XOR EZ LADDER User s Manual Trete Divelbiss Corporation Section 17 Target Features amp Functions Lists PLC ON A CHIP CONTROL SVsTEM PCS 1X0 The supported features include all features that are supported individually Using certain features may limit availability of other features SUPPORTED FEATURES Retentive Variables Serial Printing SUPPORTED FUNCTIONS Less Than lt Less Than Equal To lt Not Equal To lt gt Equal To EEPROM Read EEPROM_READ EEPROM Write EEPROM_WRITE Greater Than gt Greater Than Equal To gt Grey Scale Encoder GC SSI Absolute Value ABS Addition ADD Bitwise AND AND Average AVG Bit Pack BIT_PACK Bit Unpack BIT UNPACK Convert to Boolean BOOLEAN Compare CMP Count Down CTD Count Up CTU Count Up Down CTUD Division DIV Drum Sequencer DRUM SEQ Falling Edge Detect F_TRIG Get Date GETDATE Get Time GETTIME High Speed Timer HIGH SPD TMR Hysteresis HYSTER Convert to Integer INTEGER Real Time Clock HDIO Bus Modbus Slave EEPROM Storage Latching Coil LATCH
119. al Print is now ready for use Refer to Section 20 EZ LADDER Functions for printing serially using the SERIAL PRINT Function EZ LADDER User s Manual 12 3 Divelbiss Corporation SECTION 13 LCD DISPLAYS EZ LADDER User s Manual 13 1 Divelbiss Corporation Section 13 LCD Displays 95 1 LCD Functionality The LCD Display feature provides that ability to add an LCD display and print to it from the ladder diagram The LCD Display functionality must be installed on the target before it may be used For information on connections and compatability of the display please refer to the PLC on a Chip Circuit Design Guildelines document To install the LCD display in the target configuration Use the menu select PROJECT SETTINGS The ProjectSettingsForm dialog will open Select the target 1 2 Click the PROPERTIES button 3 Click the ADD button 4 From the provided ADD dialog Devices list select the LCD See Figure 13 1 Timed B Target Version Options Enhanced Baby Bear 128K Divelbiss Corporation Enhanced Baby Bear Enhanced Baby Bear 256 Divelbizs Corporation Enhanced Baby Bear Modbus Filler H EF p A anii a mi PCS 15 PLCS 2 PLC Ol Dx PN IPLCHIP M2 2580x hdd Devices Code Ts P B TED Device Properties Device i Onboard digital output 9 Divelbiss High Density Ilo Bus Kevpad LCD Display Pulse Width Modulat
120. at the slave can place data into The master cannot modify these registers Holding Registers MB 40001 MB 50000 Registers that the slave and master may modify Used to pass data from between the master and slave New V1 0 1 1 or higher the register number must begin with MB Master Functions EZ LADDER supports functions Function Description Read Coil Status Read Discrete Input Status Read Holding Registers Read Input Registers Write to Single Coil Write to Single Register Write to Multiple Coils Write to Multiple Registers 0 A WN gt x8x UE a EZ LADDER User s Manual l 3 Divelbiss Corporation Section 7 Modbus Slave Communication Errors EZ LADDER supports the modbus communication error codes These codes are reported on the master in the event of a communication error never on the slave If the master attempts to access an invalid register the master will report ILLEGAL DATA _ ADDRESS Error code 2 EZ LADDER internally tracks the largest register number for each type If the master attempts to access a reg ister larger than the internal tracked number the master will report ILLEGAL DATA VALUE Error code 3 For more information on master error codes and modbus functions please refer to the master s hardware and software information Assigning Registers Registers are assigned to variables and I O when the object coils and contacts or variable is placed T
121. bled if EN is false EN Px Integer Real Input Output is equal to the multiplication of all inputs Pl Outputs Q Boolean Function Enable Output true when function is enabled Integer Real Output Equal to the multiplication of all inputs z Description The MULT function multiplies all of the Px input together The number of inputs is specified when the object is placed The output O provides the result of the multiplication The enable EN must be true for the MULT func tion to be enabled Input Number Number Example Circuit Related Functions ADD SUB DIV EZ LADDER User s Manual 20 63 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects MUX Symbol Inputs la EN Boolean Function Enable Input function is disabled if EN is false INx Integer Real Input Selectable inputs K Integer Input Selection number of input to muliplex Outputs Q Boolean Function Enable Output true when function is enabled O Integer Real Output Value of selected input INx Description The MUX function multiplexes the INx inputs onto one output O The number of inputs is specified when the object is placed The output O provides the value of the selected input The selection input K determines the number of the input that will be present on the output The enable EN must be true for the MUX function to be enabled Example Circuit Input Table of Operation Input Input
122. bles Limit LIMIT Moving Average MAVG Maximum MAX Minimum MIN Modulo MOD Multiplication MULT Bitwise NOT NOT Bitwise OR OR Rising Edge Detect R_TRIG Convert to Real REAL Rotate Left ROL Rotate Right ROR Reset Set Reset Dominant RS Select SEL Set Date SETDATE Set Time SETTIME Shift Left SHL Shift Right SHR Set Reset Set Dominant SR Subtraction SUB Convert to Timer TIMER Time Delay Off TOF Time Delay On TON Pulse Timer TP Unlatching Coil UNLATCH Bitwise XOR XOR EZ LADDER User s Manual 17 2 Divelbiss Corporation Section 17 Target Features amp Functions Lists PLC oN A CuiP PLCHIP M2 2560X The supported features include all features that are supported individually Using certain features may limit availability of other features SUPPORTED FEATURES Analog Inputs 8 Channels Hardware Counter Retentive Variables Real Time Clock External HDIO Bus Keypad Support LCD Display Support PWM Outputs SPI Slave Synchronous Serial Interface SSI Serial Printing Modbus Slave EEPROM Storage SUPPORTED FUNCTIONS Less Than lt Less Than Equal To lt Not Equal To lt gt Equal To EEPROM Read EEPROM_READ EEPROM Write EEPROM WRITE Greater Than gt Greater Than Equal To gt Grey Scale Encoder GC SSI Absolute Value ABS Addition ADD Bitwise AND AND Average AVG Bit Pack BIT_PACK Bit Unpack BI
123. click UPDATE TARGET A downloading firmware status box will appear The new kernel version is being installed This may take several minutes See Figure 4 6 When completed all the open dialogs will close and return to just the Monitor Mode The kernel update is com plete Bootloader Current Target Settings Target Version 1 O26 Bootloader Version 1 0 0 5 Upload File File ame Browse Target Version Erase User Program Update Target Restart Target Figure 4 6 When updating the kernel DO NOT REMOVE the CABLE or the POWER If interrupted during this process the 0 target will be corrupted and return to bootloader mode Start from the beginning and update the kernel again to correct the problem Only the correct target s kernel may be installed into a target The target is checked against the kernel automati cally and will display an error if the wrong kernel is selected and an update is attempted If a wrong kernel is loaded contact Divelbiss Technical Support for help regarding removing incorrect kernels EZ LADDER User s Manual 4 6 Divelbiss Corporation Section 4 Configuring EZ LADDER for Targets Target Utilities Target utilities are provided to help with basic operations and to help correct target problems When unable to connect to the target Please note these features are available only on targets with a bootloader version of 1 0 0 5 or newer When not conne
124. coils out puts The ladder diagram language allows these features to be viewed in a graphical form by placing graphic symbols into the program workspace similar to a Relay Logic electrical diagram Both ladder diagram and relay logic diagrams are connected on the left and right sides to power rails A comparison of a hard wired relay logic system and a programmable system using EZ LADDER as the pro gramming platform will show the similarities which make the programming using EZ LADDER quick and easy to apply to any application Figure 3 1 shows a hard wired relay logic control system For easy comparison it is divided into three sections Input Devices Includes devices operated manually ie pushbuttons and devices operated automatically ie limit switches by the process or machine being controlled Relay Control Logic Consists of relays interconnected to energize or de energize output devices in response to status of input devices and in accordance with the logic designed into the control circuit Output Devices Consists of motor starters solenoids etc which would control the machine or process In place of hard wired relay circuitry EZ LADDER applications are programmed using relay type symbology This symbology brings ease and familiarity to the programming while adding flexibility INPUT OUTPUT MACHINE OR PROCESS BEING CONTROLLED Figure 3 1 The simplicity of the EZ LADDER diagram programming format
125. cted to a target a project must be loaded press the F11 key The EZ Ladder Dialog will appear see Figure 4 7 EZ Ladder Stop LO F ragram Enter Bootloader Figure 4 7 Disconnect the power from the target and click the ENTER BOOTLOADER A timing dialog will appear Connect power to the target during this time The target will now allow other bootloader operations See Figure 4 8 EZ Ladder Bootloader Erase LD Program Restart Target Close Figure 4 8 Bootloader This opens the Bootloader dialog From this dialog the user program may be erased the target kernel may be updated and the target reset Erase LD Program This erases the ladder diagram program In the event the program is hanging and prevent ing a normal connection this will erase the program to allow a normal connect Reset Target This causes a soft restart of the target kernel This is required when all other bootloader actions have been completed Without the restart the kernel will still not connect normally Close This closes the EZ Ladder window EZ LADDER User s Manual ae Divelbiss Corporation Section 4 Configuring EZ LADDER for Targets When able to connect to the target When connected to the target pressing the F11 key opens the Device Properties dialog This dialog allows the synchronization of the target s real time clock with the PC clock The user program may also be erased See Figure 4 9 Device Pr
126. ctions BIT UNPACK EZ LADDER User s Manual 20 11 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects BIT UNPACK Symbol inute BIT_UNPACK EN Boolean Function Enable Input function is disabled if EN is false EN Q Integer Input 32 bit integer to be unpacked Outputs l B Q Boolean Function Enable Output true when function is enabled Bx Boolean Output The output is a result of these input being converted back to bits from the integer input Description The BIT UNPACK is a configurable function that will convert the a 32 bit integer to a 32 individual boolean outputs bits The input is the 32 bit integer input the EN enables B the function when true The Q output is true when the function is enabled The Bx outputs are the result of the integer being converted to bit outputs binary equivalent The number of bits must be identified when the function is placed in the ladder diagram 1 32 bits Only boolean variables may be used as bit inputs Included in the configuration is the bit offset The bit offset allows the programmer to use multiple BIT_UNPACK functions and have a single 32 bit input integer by offsetting the bit range for each function block Note the number of bits offset bits must be less than or equal to 32 Bit Unpack Properties BIT True Integer equivalent 0 1 Mame BIT UNPACKI 1 2 Description 2 4 3 8 4 16 5 AL Number af Bits Bo 6 64 Bit Offset 0 16 32768 D
127. cuit NetActive AN NODEST NodelErr Related Functions OPTICAN TXNETMSG EZ LADDER User s Manual 20 67 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects OPTICAN TXNETMSG Symbol Inputs OPTICAN TXNETMSG EN Boolean Function Enable Input function is disabled if EN is false Q Boolean Output true when function is enabled Description The OPTICAN TXNETMSG function broadcasts the Start Network Stop Network and Reset Network com mands over the OptiCAN network This function block globally broadcasts therefore affecting all connected nodes A Start Network command must be broadcast after power up to start the OptiCAN network nodes com munications When placing the function a dialog box provides the selection of the type of command to send and an optional description box See EZ LADDER Manual Section 16 OptiCAN Network for more information regarding using the function block and general OptiCAN networking Function Dialog Box OptiCAN Transmit Network Message Name OPTICAN_T NETMSG1 Description Network Message Start Network Function Example AM TPXNETI Related Functions OPTICAN NODESTATUS EZ LADDER User s Manual 20 68 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects OR Symbol Inputs Bn EN Boolean Function Enable Input function is disabled if EN is false EN Q P1 Integer Input Output is bitwise OR of inputs P2 Integer Input O
128. dition 7 LADDER TOOLKIT ONE TOOLKIT FOR MULTIPLE SOLUTIONS PLC on a Chip Patent 7 299 099 USER S MANUAL RELEASE V3 02 For EZ Ladder V1 0 4 0 MI Jivelbiss CORPORATION WHAT S NEW RELEASED FEATURES V1 0 4 0 New Features Changes Additions New Features 1 Added new target Solves It Analog SI 110 SI 210 2 Added new target HEC 2000 Now only available COM ports are displayed in the project settings Now COM ports larger than COM 4 may be used Changed License Activation from email to web based Other Changes Fixes 1 Corrected minor OptiCAN network items 2 Corrected issue when placing object J1939 SPN with Harsh Environment target EZ LADDER User s Manual TOC 1 Divelbiss Corporation TABLE OF CONTENTS HEN M This section lists all the sections and topics included in this manual including page num ber references EZ LADDER User s Manual TOC 2 Divelbiss Corporation Table of Contents What s New TOC 1 Table of Contents TOC 2 Section 1 Getting Started 1 1 How to use this Manual 1 2 Installing EZ LADDER 1 2 Activating Registering EZ Ladder 1 4 Installing EZ LADDER on a Second Computer 1 4 Section 2 Navigating EZ Ladder 2 1 EZ Ladder Overview 2 2 EZ Ladder Menus 2 3 EZ Ladder Toolbars and Buttons 2 4 Ladder Diagram Workspace 2 5 Cross Reference Palette 2 6 Output Window 2 6 Section 3 Ladder Diagram Basics 3 1 Understanding Relay Logic vs Ladder Logic 3 2
129. ductors Cs 0 70 110 pF m Conductor to Shield 2 A 120 ohm resistor load is required at each end of the network Please adhere to the following specifications for terminating resistor requirements for all OptiCAN networks Terminating Resistor Specifications Requirements Parameter Symbol Minimum Nominal Maximum Unit Conditions Resistance RL 110 120 130 Q minimum power dissipation 400 mW 1 Inductance 1 uh 1 Assumes a short of 16V to VCAN H 3 The cable shield should be ideally grounded near the middle of the network cable run to earth ground Please note the shield should only be connected to ground and one point on the network Multiple ground points could cause a ground loop decrease noise immunity and adversely affect network performance 4 If wiring as a network bus with stub connections the maximum stub length from bus to node is 1 Meter See Figure 16 0 for a sample connection diagram EZ LADDER User s Manual 16 3 Divelbiss Corporation Section 16 OptiCAN Network SHIELD SHOULD BE GROUNDED AT CABLE MIDPOINT f N TWISTED PAIR SHIELDED CABLE OptiCAN OptiCAN Device 3 Device2 OptiCAN Device 1 OptiCAN Device 4 40 METERS MAXIMUM LENGTH 120 OHM RESISTOR MUST BE INSTALLED AT EACH TERMINATING END OF CABLE CABLE MIDPOINT TWISTED PAIR GROUND SHIELD SHIELDED CABLE bw FT OVON EGND OptiCAN Device2 SO EGND
130. e 16 13 To configure a node highlight the node in the list and click CONFIGURE NODE A Node Configuration dialog box will open See Figure 16 14 TEk Made ID 255 Type 1100 Harsh Environment Digital 10 Seral Number 07240006 Broadcast Interval ms Cancel Save Figure 16 14 EZ LADDER User s Manual 16 14 Divelbiss Corporation Section 16 OptiCAN Network The following can be viewed from the Node Configuration dialog Some items are configurable Node ID This is where the node ID number is set Type This is the description of the device not editable Serial Number This is the serial number of the devices programmed at factory and is not editable Broadcast Interval This is the interval rate at which the registers will be broadcast on the network The CONFIGURE REGISTERS button is used to configure the registers of the device including the trigger and value Click the CONFIGURE REGISTERS button to open the Configure Registers dialog box See Figure 16 15 Configure Registers Number Mame Trigger Digital Inputs On Change of State Digital Outputs Mone Output Error Status Ur Change of State Output Made Mone Pw Frequency A Mone Pw Frequency B Mone Fw Polarity Mone Pw 0 Duty Cycle Mone Pw 1 Duty Cycle Mone Pw 2 Duty Cycle Mone 0 Pw 3 Duty Cycle Mone m 4 4 4 4 4 2 1 2 d 4 b fi B H 1 Display is Decimal C Hex
131. e object types you trying to connect No acknowledgement sent from target x Monitor Mode The target did not send a no acknowledgement during communications with EZ Ladder Object already there Editor Mode An object already exists where you are trying to place another object Select a new location to place the object Object type X not found Aborting load Editor Mode Error loading program into EZ Ladder The ladder diagram file may be corrupt Packet contained a formatting ERROR Monitor Mode An packet formatting error was detected in a packet during communication with a target Packet contained an invalid checksum Monitor Mode An invalid checksum was detected in a packet during communication with a target Packet length was invalid Monitor Mode EZ Ladder has detected a invalid communications packet length during communications with the connected target Please save project before compiling Editor Mode Unable to compile ladder diagram program must have a valid filename Please select a target Editor Mode A target has not been selected Please select a target before compiling Editor Mode Unable to compile because no target was selected Please select a target before verifing Editor Mode Unable to run program verification because no target was selected prior Targets do not match Monitor Mode When connecting to a target the target specified in the ladder diagram does not match the actual detected hardware ta
132. ed Registers Controller Device Defined Registers I O 8 Other Devices 128 to 191 Common Broadcast Registers 192 to 255 Common Configuration amp Command Registers User Defined registers for controllers are available for the user to define the use of during the ladder diagram development Device Defined registers for I O and other devices have preset definitions of register use and cannot be changed These registers are pre assigned and cannot be altered Register Number Description Read Write Read Read Read Wilt Read Write Read Write Read Write Read Write Read Write Read Write Read Write Read Write Read Write Broadcast Trigger 2 Broadcast Trigger for Registers 32 to 47 Read Write Broadcast Trigger 10 Broadcast Trigger for Registers 160 to 175 Read Write Broadcast Trigger 11 Broadcast Trigger for Registers 176 to 191 Read Write These registers are pre assigned and cannot be altered Register Number Node Staus This Node s Status CAN TX Errors CAN Transmit Error Counter CAN RX Errors CAN Receive Error Counter Description Read Write EZ LADDER User s Manual 16 17 Divelbiss Corporation Section 16 OptiCAN Network Register 191 Node Status is a 32 bit number The lower 16 bits is the Status Code Reset Active other The upper 16 bits is the Error Code The Error codes are split into two groups 0 to 32767 Device Specific Errors 32768 to 65535 Common Error
133. eding and given sole control over the defense of such claim including all negotiations of any prospective settlement or compromise and that Licensee gives all cooperation and assistance requested by Divelbiss in connection with same and provided further that the foregoing obligation of Divelbiss does not apply with respect to any Resulting Products or any hardware software including the Licensed Software or components thereof i not supplied by Divelbiss ii made or modified in whole or in part by Licensee or according to Licensee s specifications iii otherwise modified after delivery iv combined with other hardware software b c a b 10 a b c d e 11 products or processes by Licensee including in creating Resulting Products where such claim could have been avoided absent such combination v insofar as Licensee continues allegedly infringing activity after being notified thereof or informed of steps or modifications that would have avoided the alleged infringement or vi used by Licensee in violation of the terms of this Agreement Licensee will defend indemnify and hold Divelbiss harmless from and against any and all losses liabilities judgments damages and claims against Divelbiss obtained or asserted by any third party including any allegation of infringement or violation of proprietary rights and all related costs including attorney fees incurred by Divelbiss arising or resu
134. eld wizard will install EZ Ladder Toolkit on your computer To continue click Next f Next gt Cancel Customer Information Please enter your information Please enter your name the name of the company for which you work and the product serial number User Name DC Company Name IDivelbiss Corporation Serial Number 111 111 111 lt Next gt Cancel Choose Destination Location Select folder where setup will install files Setup will install EZ Ladder Toolkit in the following folder To install to this folder click Next To install to a different folder click Browse and select another folder Destination Folder C Program FilessDivelbiss Corporations EZ Ladder Browse Back Next gt Ready to Install the Program The wizard is ready to begin installation Click Install to begin the installation If you want to review or change any of your installation settings click Back Click Cancel to exit the wizard lt Back Install Cancel EZ LADDER User s Manual 1 3 Divelbiss Corporation Section 1 Getting Started Before EZ LADDER may be used with hardware targets it must be registered and activated Once registered a license key will be provided to activate the full functionality of EZ LADDER Activating Registering EZ LADDER EZ LADDER will only have demo functionality until it is registered and activated Once activated EZ LAD
135. eption the logic is the opposite of the direct coil A FALSE condition on the inverted coil will cause a TRUE condition on the real world output or CR while a TRUE condition on the inverted coil will cause a FALSE condition on the real world outputs or CR Power Rails and Links POWER RAILS A ladder diagram contains rungs with functions and objects Each rung must be complete for proper operation should connect to both power rails with continuity using horizontal and vertical links between objects Ladder Diagrams are limited on the left and right side by vertical lines the left power rail and the right power rail Figure 3 3 shows a typical diagram utilizing power rails Figure 3 4 shows the left and right power rail on a ladder diagram rung INPUT OUTPUT C Left Power Rail Right Power Rail 97 Figure 3 4 EZ LADDER User s Manual 3 3 Divelbiss Corporation Section 3 Ladder Diagram Basics HORIZONTAL VERTICAL LINKS Ladder diagram Objects are connected to other symbols or power rails by links Links may be horizontal or verti cal Each Rung complete line contains segments which have a boolean state of TRUE or FALSE based on object status Any link connected to the left vertical power rail has a TRUE state Figure 3 5 shows a typical diagram utilizing links INPUTI CRI QUTPUTI INPUT2 Vertical Link Horizontal Link Figure 3 5 Connection Types There are multiple types of connect
136. equence PWM_FREQ Rising Edge Detect R_TRIG Convert to Real REAL Rotate Left ROL Rotate Right ROR Reset Set Reset Dominant RS Select SEL Set Date SETDATE Set Time SETTIME Shift Left SHL Shift Right SHR Serial Print SERIAL_PRINT Set Reset Set Dominant SR Subtraction SUB Convert to Timer TIMER Time Delay Off TOF Time Delay On TON Pulse Timer TP Unlatching Coil UNLATCH Bitwise XOR XOR EZ LADDER User s Manual 17 23 Divelbiss Corporation Section 17 Target Features amp Functions Lists SOLVES IT PLUG IN PLC 51 100 The supported features include all features that are supported individually Using certain features may limit availability of other features SUPPORTED FEATURES EEPROM Storage Programmable LEDs 4 Hardware Counter 4 Inputs 4 Outputs SUPPORTED FUNCTIONS Less Than lt Latching Coil LATCH Less Than Equal To lt Limit LIMIT Not Equal To lt gt Moving Average MAVG Equal To Maximum MAX EEPROM Read EEPROM_READ Minimum MIN EEPROM Write EEPROM_WRITE Modulo MOD Greater Than gt Multiplication MULT Greater Than Equal To gt Bitwise NOT NOT Absolute Value ABS Bitwise OR OR Addition ADD Rising Edge Detect R_TRIG Bitwise AND AND Convert to Real REAL Average AVG Rotate Left ROL Bit Pack BIT_PACK Rotate Right ROR Bit Unpack BIT UNPACK Reset Set Reset Dominant RS Convert to Boolean BOOLEAN Select
137. er A true on CD will cause the counter to decrement by one Once the counter CV equals zero the Q output will be true A true on LD will cause the counter to load the PV as the current CV count and reset the Q output The down counter triggers on a false to true transition on the CD input Example Circuit Input CTO Outputl Timing Diagram Related Functions CTU CTUD EZ LADDER User s Manual 20 18 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects CTU Symbol Inputs CU Boolean Input Up Count Pulse cU R Boolean Input Reset Counter Value sets CV 0 PV Integer Input Maximum Counter Value R Outputs Q Boolean Function Enable Output true when CV PV CV CV Integer Output Current Counter Value Description The CTU function is a programmable up counter A true on CU will cause the counter to increment by one Once the counter CV equals the preset value CV the Q output will be true A true on reset R will cause the counter reset to zero and reset the Q output The down counter triggers on a false to true transition on the CU input Example Circuit Input CTUT Output Timing Diagram Cu PV CV Related Functions EZ LADDER User s Manual 20 19 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects CTUD Symbol CTUDI Inputs CU Boolean Input Up Count Pulse CD Boolean Input Down Count Pulse R Boolean Input Reset Counter Value set
138. er Error Output Set to two if the print string is larger than the display Description The LCD PRINT function is the print block for printing data to the LCD Display The LCD Display feature must be installed on the target prior to using this function block When then EN input senses a rising edge the block prepare its text that was provided when the LCD PRINT function was placed and marks it to update at the end of the current ladder scan The Q output is set true when the print is completed The ER output is set true if the printed data is larger than the LCD will display Function Block Led Print Properties Name Name of the function LCD_PRINT1 Description Description A description of what the function does Text The formatted text is placed here This is what will be transmitted Row Row to locate the start of the print Column Column to locate the start of the print How 0 Column 0 Cancel Text Message Formatting The LCD PRINT function text formatted per ANSI C printf Variables as well as text may be printed These variables must be formatted correctly As variables are added to the text string the function block will automati cally add the appropriate input for the variables EZ LADDER User s Manual 20 52 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects Text Message Formatting TEXT Text is entered exactly as the message is intended VARIABLES
139. et timer value PT ET Outputs Q Boolean Output True when IN is true and ET PT ET Timer Output Current Elapsed timer value Description The TP pulse timer is a programmable one shot timer with a variable turn on time When the input IN input is true the timer begins timing and the output Q is energized When the elapsed time ET is equal to the preset time PT the output Q de energizes goes false When the input IN goes from true to false the timer is only reset if the elapsed time ET is equal to the preset time PT If they are not equal the reset will not occur until they are equal and IN must still be false Example Circuit Inputi ITFI Qutputi Timing Diagram Related Functions TON TOF A EZ LADDER User s Manual 20 97 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects UNLATCH coil Symbol Inputs None SU Outputs None Description The UNLATCH coil acts like a direct coil except when the coil is energized it will cause the LATCHed coil to unlatch and de energize Example Circuit Input CRI Input2 CRI Related Functions LATCH DIRECT COIL INVERTED COIL EZ LADDER User s Manual 20 98 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects XOR Symbol Inputs NO EN Boolean Function Enable Input function is disabled if EN is false EN P1 Integer Input Output is bitwise XOR of inputs P2 Integer Input Output is bitwise
140. f Divelbiss 14 a 15 a Dispute Resolution In the event of any dispute arising between the parties related to the subject matter of this Agreement except regarding the payment of fees under Sections 3 or 15 of this Agreement or as provided in Subsection b below Dispute the parties agree to attempt to resolve such Dispute according to the procedures set forth below i In the event either Divelbiss or Licensee notifies the other party of a Dispute representatives of each party with adequate authority to settle such Dispute will promptly engage in direct negotiations If such representatives are unable to resolve such Dispute within ten 10 business days after commencing negotiations or twenty 20 business days after the initial notice of Dispute then either party may initiate mediation of the Dispute as provided in Subsection a ii below ii In the event either party initiates mediation of the Dispute by sending a written notice of mediation to the other party then the Dispute shall be subject to mediation in Mt Vernon Ohio before a single mediator to be proposed in the first instance by the party initiating mediation who will be reasonably familiar with the computer industry and mutually acceptable to the parties The parties agree to participate in such mediation in good faith through representatives with due authority to settle any such Dispute If such representatives are unable to resolve such Dispute wit
141. from the hardware real time clock The values of the time are stored into the integer variables on the ouputs The enable EN must be true for the GETTIME function to be enabled Example Circuit CRI GETTIME CR2 EN Qpe I js4 Hours MN Minutes SC t Seconds Related Functions SETTIME GETDATE SETDATE EZ LADDER User s Manual 20 35 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects GREATER THAN gt Symbol Inputs E EN Boolean Function Enable Input function is disabled if EN is false EN Q Px Integer Real Input Input numbers for comparison P1 Outputs Q Boolean Output true when greater than conditions are met B Description The GREATER THAN provides an if greater than comparison for the Px inputs The number of inputs is specified when the object is placed The output Q is true if P1 is greater than P2 and P2 is greater than P3 and so on The enable EN must be true for the GREATER THAN function to be enabled Example Circuit Outputl Related Functions lt lt gt lt gt EZ LADDER User s Manual 20 36 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects GREATER THAN OR EQUAL TO gt Symbol Inputs a EN Boolean Function Enable Input function is disabled if EN is false EN Q Px Integer Real Input Input numbers for comparison P1 Outputs Q Boolean Output true when greater than or equal to conditions are met P2 Description
142. g Edge Detect R_TRIG Convert to Real REAL Rotate Left ROL Rotate Right ROR Reset Set Reset Dominant RS Select SEL Shift Left SHL Shift Right SHR Serial Print SERIAL_PRINT Set Reset Set Dominant SR Subtraction SUB Convert to Timer TIMER Time Delay Off TOF Time Delay On TON Pulse Timer TP Unlatching Coil UNLATCH Bitwise XOR XOR EZ LADDER User s Manual 17 9 Divelbiss Corporation Section 17 Target Features amp Functions Lists PLC on A CHIP PLCMOD M2 25621X PLCMOD M2 25631X The supported features include all features that are supported individually Using certain features may limit availability of other features SUPPORTED FEATURES Analog Inputs 8 Channels Hardware Counter Retentive Variables Real Time Clock External HDIO Bus Keypad Support LCD Display Support PWM Outputs SPI Slave Synchronous Serial Interface SSI Serial Printing Modbus Slave 41939 Communications OptiCAN Networking EEPROM Storage SUPPORTED FUNCTIONS Less Than Less Than Equal To lt Not Equal To lt gt Equal To EEPROM Read EEPROM_READ EEPROM Write EEPROM_WRITE Greater Than gt Greater Than Equal To gt Grey Scale Encoder GC SSI Absolute Value ABS Addition ADD Bitwise AND AND Average AVG Bit Pack BIT PACK Bit Unpack BIT UNPACK Convert to Boolean BOOLEAN Compare CMP Hardware Counter CNTRTMR Count Down CTD Count
143. grams Inserting and Deleting Rungs It is easy to insert and delete rungs in EZ LADDER To insert a rung position the pointer where the insertion should be right click and select INSERT RUNG To delete a rung position the pointer on the run to be deleted right click and select DELETE RUNG Saving Ladder Diagram Projects Saving a currently open ladder diagram project can be done two different ways On the Tool Bar click the to save the project or on the FILE menu click SAVE If the project has not been named then a dialog box will appear to enter a name The SAVE AS selection in the FILE menu always provides a dialog box for naming the project Beginning with EZ LADDER V1 0 1 0 the file format changed in the ladder diagram EZ LADDER defaults to the new file format when saving ladder diagrams Once a ladder diagram has been saved under the new format it is not compatable with an older version of EZ LADDER The program can be saved as an older version by changing the file type in the SAVE AS dialog select V1 0 0 X Saving a ladder diagram as an older file format may cause loss of ladder diagram elements and features newer features are not available in the older format Verifying and Compiling Ladder Diagrams After a ladder diagram is created using EZ LADDER the next step towards having functional hardware is to compile the program Compiling a program is a step where EZ LADDER creates a copy of the actual graphical representation
144. has been selected highlighted if any additional configuration options are available additional buttons will be visible PROPERTIES MODBUS etc Please refer to the hardware targets datasheet or manual for detailed information regarding configuring the target If additional configuration is required it is recommended to com plete it at this time ProjectSettinesForm Target Version Options Target Properties Plus Divelbiss Corporation Plus PLC ON 4 CHIP Livelbiss Corporation PLC OM 4 CHIP Modbus Enhanced Baby Bear 128K Divelbiss Corporation Enhanced Baby Bear Enhanced Baby Bear 255K Divelbiss Corporation Enhanced Baby Bear Code Type Serial Settings Port JLUMI B Buad Rate 57600 Cancel Figure 4 2 Version Settings The Version settings dialog box will display the current build and version of the ladder diagram that is currently active in EZ LADDER The build and version information is useful when determining if a program version is cur rent Figure 4 3 shows the Version settings dialog box Version setting may be changed in this window if required 1 Version Number A version number for the ladder diagram may be entered here This number will not change unless edited 2 Build Number The current build number is displayed here Each time the ladder diagram program is Compiled the build number automatically increments This number may be over written in this window
145. he Add Variable dialog box is where the actual register number is assigned Figure 7 3 shows the Add Variable dialog box Add Variable Mame cAI Description Variable t Input Var 140 Number t Default Value e Internal Address Hegister Edt Retentive 5 OF Cancel Figure 7 3 To apply a register number to a variable simply type in the required register address in to the Address Register box or click the EDIT button A new dialog will appear Using the Prefix drop down menu select the type the Modbus prefix Using the Register Type drop down box select input or coil In the Register Index box type in the actual register number number only as the will be added automatically Click Figure 7 4 shows the Edit Address Register dialog box Figure 7 5 shows a modbus register address Edit Address Register Prefix MB Modbus Register Type TMIN Register Index 1 10000 Address Register ME Figure 7 4 EZ LADDER User s Manual ia Divelbiss Corporation Section 7 Modbus Slave ESI Edit Variable JAR Mame Description Variable Type Input Mar 140 Number C Output Default Value Internal Modbus Register MB 30001 Cancel iw Retentive Figure 7 5 xx m a EZ LADDER User s Manual l 3 Divelbiss Corporation SECTION 8 RETENTIVE VARIABLES EZ LADDER User s Manual 8 1 Divelbiss Corporation Sectio
146. he Professional version connects with a Divelbiss supplied USB to CAN hardware dongle independent of any controllers Refer to the OptiCAN Configuration Tool Pro Manual for more information about the OptiCAN Configuration Tool Pro Built in OptiCAN Configuration Tool The built in OptiCAN Configuration Tool can configure and detect up to 10 nodes giving Node ID Type and Serial Number The OptiCAN Configuration Tool allows the configuration of up to 10 non controller nodes gives an overview of all devices connected to the OptiCAN network To communicate the OptiCAN Configuration Tool uses the EZ LADDER target communication configuration To open the OptiCAN Configuration Tool your programming must be connected to a controller have EZ LADDER open and have a ladder project loaded Click the MON Monitor button on the toolbar to enter EZ LADDER s Monitor Mode From the Monitor Mode one the menus click Project OptiCAN This will open the Divelbiss OptiCAN Configuration Tool in a new window See Figure 16 12 ad lm se r 7 y u mil Connection Reports Help Made ID Type Serial Number 4 1000 Harsh Environment Controller Of 240004 b 1100 Harsh Environment Digital 10 OY 240006 Configure Made E sit bl connected Figure 16 12 Please note EZ LADDER must have a project loaded and be in Monitor mode with OptiCAN enabled to open the OptiCAN Configuration Tool It is not necessary
147. he func tion or block operation is provided When applicable truth tables timing diagrams or other functions details are provided This information is to provide basic practices of how each function or object works and is not intended to provide complete applications or uses Availability of functions and objects is determined by the hardware target that is configured for the ladder dia gram projects Some functions and objects are not available on some targets Refer to the actual hardware tar get s datasheet or manual for a complete list of supported functions and objects List of EZ Ladder Objects Name Description Page ABS Outputs the absolute value of input variable value 20 4 ACOS Outputs the arccosine of the input variable value 20 5 ADD Sums all the input variable values together 20 6 AND Bitwise AND function of the input variables 20 7 ASIN Outputs the arcsine of the input variable value 20 8 ATAN Outputs the arctangent of the input variable value 20 9 AVG Averages the input variable values 20 10 BIT PACK Converts up to 32 boolean inputs into a single 32 bit integer 20 11 BIT UNPACK Converts a single 32 bit integer into up to 32 boolean outputs 20 12 BOOLEAN Converts input variable value into a Boolean variable 20 13 CEIL Outputs a rounded up value for the input variable value 20 14 CMP Compares input variable values 20 15 CNTRTMR Function for using hardware timer counter circuit 20 16 COS Outputs the cosine of
148. hift Left SHL Shift Right SHR Serial Print SERIAL PRINT Set Reset Set Dominant SR Subtraction SUB Convert to Timer TIMER Time Delay Off TOF Time Delay On TON Pulse Timer TP Unlatching Coil UNLATCH Bitwise XOR XOR EZ LADDER User s Manual Divelbiss Corporation Section 17 Target Features amp Functions Lists PLC A CHIP PLCMOD M2 12800X The supported features include all features that are supported individually Using certain features may limit availability of other features SUPPORTED FEATURES Analog Inputs 8 Channels HDIO Bus SUPPORTED FUNCTIONS Less Than lt Less Than Equal To lt Not Equal To lt gt Equal To Greater Than gt Greater Than Equal To gt Absolute Value ABS Addition ADD Bitwise AND AND Average AVG Bit Pack BIT PACK Bit Unpack BIT UNPACK Convert to Boolean BOOLEAN Compare CMP Hardware Counter CNTRTMR Count Down CTD Count Up CTU Count Up Down CTUD Division DIV Drum Sequencer DRUM_SEQ Falling Edge Detect F_TRIG High Speed Timer HIGH SPD TMR Hysteresis HYSTER Convert to Integer INTEGER Latching Coil LATCH Hardware Counter Retentive Variables Limit LIMIT Moving Average MAVG Maximum MAX Minimum MIN Modulo MOD Multiplication MULT Bitwise NOT NOT Bitwise OR OR Rising Edge Detect R_TRIG Convert to Real REAL Rotate Left ROL Rotate Right ROR
149. hin twenty 20 business days after commencing mediation then each party may pursue whatever further recourse it deems necessary to protect its rights under this Agreement Licensee agrees that any violation of this Agreement related to the Licensed Software or Confidential Information specifically including Divelbiss s proprietary rights therein is likely to result in irreparable injury to Divelbiss Accordingly notwithstanding any other provision of this Agreement to the contrary Licensee agrees that Divelbiss shall be entitled to all appropriate relief from any court of competent jurisdiction whether in the form of injunctive relief and or monetary damages to protect its proprietary rights in the Licensed Software and Confidential Information Maintenance and Support In consideration of the payment of annual maintenance and support fees by or on behalf of Licensee payable for the first year with the license fee and thereafter annually at least thirty 30 days before the anniversary date of this Agreement Divelbiss will provide maintenance and support of the EZ LADDER Toolkit in the form of i such periodic corrections updates and revisions to the EZ LADDER Toolkit as Divelbiss in its sole discretion may from time to time elect to release and ii responses to inquiries submitted by Licensee by email to Divelbiss at sales divelbiss com b The maintenance and support fee is specified in the applicable Divelbiss price list 6 Gene
150. iable has 32 bits bit numbers 0 31 each representing the binary bit of the total integer number EZ LADDER User s Manual 9 7 Divelbiss Corporation Section 5 Using EZ LADDER to Create Ladder Diagrams To Set the Bit of a Variable To set a bit of a bit addressible variable first create the variable that will be addressed integer Next create an output variable and specifiy the name and bit to modify See Figure 5 14 Output Variable Name Edit Variable Output Variable Type M ame Description Variable Type Name of the Bit addressible C ar LID Number Biti arl 1 l Input variable and bit number to be Output Default Value set Format Name Bit Internal Retentive Cancel Figure 5 14 When this output is true the variable bit associated will be true In this example the 2 bit would be true causing the actual variable BitVar1 to be equal to 2 plus any additinal true bits To Read the Bit of a Variable To read a bit of a bit addressible variable first create the variable that will be addressed if not it does not already exist integer Next create an input variable and specifiy the name and bit to modify See Figure 5 15 Edit Variable Input Variable Name Input Variable Type Mame Ward Bi Description Variable Type 9 iui Var I O Number Bitar 1 Name of the Bit addressible variable and bit number to be C Output Default Value read Format Name Bit t
151. iagram project Saves the currently open ladder diagram project Names and saves the currently open ladder diagram project Prints the currently open ladder diagram project Preview the currently open ladder diagram project as it will be printed Setup the printer and print options The last few previously opened projects are listed for quick opening Closes and Exits EZ LADDER Cancels undoes the last performed action Restores the last UNDO action Deletes cuts the currently selected object Copies the selected object to the Windows Clipboard Pastes the copied objects from the Windows Clipboard Actively selects highlights everything in the active window Setup parameters for the Display and other features Opens a window with specific target information including I O for the selected target Opens Closes the Cross Referene Palette Opens Closes the Output Window Defines the setting for the current project and or target along with the available options and features for each Provides a tool to update the kernel on the hardware target This only works in Monitor Mode Creates a viewable and printable report with all the variables declared in the active ladder diagram Creates a viewable and printable report with the selected functions that are in the active ladder diagarm EZ LADDER User s Manual 2 3 Divelbiss Corporation Section 2 Navigating EZ LADDER WINDOW MENU CASCADE Standard Windows features
152. if required EZ LADDER User s Manual 4 3 Divelbiss Corporation Section 4 Configuring EZ LADDER for Targets ProjectSettingsForm Target Version Options Version jo 0 0 0 Build jo Cancel Figure 4 3 Options Settings The Options settings dialog box will display the currently selected options and preferences Some of these options are target specific while others are standard Figure 4 4 shows the Options settings dialog box 1 Number of Rungs This is where the maximum number of rungs in the ladder diagram is is specified The default number is 100 rungs Many of the options and settings are target hardware specific Only available targets and options will be dis played ProjectSettingsForm Target Version Options Ladder Number of range 100 1 Cancel Figure 4 4 EZ LADDER User s Manual a Divelbiss Corporation Section 4 Configuring EZ LADDER for Targets The typical plc configuraton scans I O at the beginning end of a scan as does EZ LADDER This typically requires structuring of the ladder diagram in a specific order to achieve correct functionality and interaction with different functions and sections of a ladder diagram This functionality also provides a true method to control when coils and contacts will be set For example say your requirements include that the program must complete one scan before any I O changes may be made placing a Control Relay at the end and using it as a tr
153. igger to allow everything else to function can accomplish this During the first scan the CR contacts are not true when at the end of the ladder diagram scan the CR coil becomes true causing the CR contacts to be true on the next scan Viewing Target Information Specific target information can be viewed using the menu by selecting VIEW then TARGET INFORMATION This window will show I O assignments and other useful information for accessing and programming specific hardware target features Figure 4 5 shows the Target Information window EVA 1 iJ Target Information Target PLC ON A CHIP Minimum Target version 1 0 2 5 6 Supported Objects Analog Inputs AMI gt AMG Less than c Less than or equal 3 gt Mot equal Equal gt Greater gt Greater af equal ABS Absolute value ADD Add AND Bitwise AND 2 AN Aygerage BOOLEAN Convert ta BOOLEAN Compare CNTRTME Hardware Counter Timer 4 CTD Count Down CTU Count Uo i Digital I O Inputs Wiutputs DIOOD gt DI 15 HOTS GO0 00 gt Do7 15 i3PIO gt GPI33 POO gt GPO32 5 7 Print Cancel Figure 4 5 1 Target The project s selected target 2 Supported Objects List and description of supported objects for the selected target 3 Analog Inputs Supported Analog Inputs 4 Digital I O Inputs List of supported addressing for digital inputs 5 Digital I O Outputs List of supported addressing for digital outputs 6 Minimum Target Versio
154. ight shift occurs Input Number Number2 Example Circuit Related Functions SHL EZ LADDER User s Manual 20 86 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects SIN Symbol Inputs an EN Boolean Function Enable Input function is disabled if EN is false EN P1 Real Input Output is sine of this input Pl o Outputs Q Boolean Function Enable Output true when function is enabled O Real Output Sine value of P1 input Description The SIN function provides the sine O from the input value P1 The enable EN must be true for the SIN func tion to be enabled The Q output is true when the SIN function is enabled tal Example Circuit Related Functions ACOS TAN ATAN COS ASIN A EZ LADDER User s Manual 20 87 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects SI DISP Symbol Inputs ol DISP EN Boolean Function Enable Input function is disabled if EN is false Integer Input This variable value will be displayed on the Solves It s EN display Outputs Q Boolean Function Enable Output true when function is enabled Description The SI DISP function writes integer values to the Solves lIt s 4 digit display When enabled the integer value of the variable connected to the input will be displayed Example Circuit SI DISP EN Q Number f Related Functions SI CLRDISP EZ LADDER User s Manual 20 88 Divelbiss Corporation Section 20 EZ
155. in whole or in part the Licensed Software or sublicense convey or purport to convey any such right to any third party d Licensee Licensee s customers and others who obtain Resulting Products are expressly prohibited from using in whole or in part the Licensed Software and any Resulting Product in any use or application i intended to sustain or support life ii for surgical implant iii related to the operation of nuclear facilities iv in which malfunction or failure could result in death or personal injury or v in environments otherwise intended to be fault tolerant 3 License Fee a Except when Licensee obtains the EZ LADDER Toolkit from an approved distributor or OEM pursuant to other fee arrangements Licensee will pay to Divelbiss the license fee for the EZ LADDER Toolkit specified in the applicable Divelbiss price list which is due and payable upon delivery of same b If Licensee fails to make any payment when due Divelbiss may at its sole option terminate Licensee s rights under this Agreement to use the Licensed Software If Licensee fails to pay any balance within thirty 30 days after being notified by Divelbiss that payment is overdue Divelbiss may take whatever steps it deems necessary to collect the balance including referring the matter to an agency and or suing for collection All expenses and fees associated with the collection of an overdue balance including costs and fees of collection and attorney s fee
156. ing acquired in whole or in part by any unauthorized party will use Confidential Information solely in furtherance of this Agreement and will permit access to any Confidential Information only by those employees of Licensee with a legitimate need to know In the event that Licensee learns or has reason to believe that Confidential Information has been disclosed or is at risk of being disclosed to any unauthorized party Licensee will immediately notify Divelbiss thereof and will cooperate fully with Divelbiss in seeking to protect Divelbiss s rights in the Confidential Information 12 a b c d e f 13 Term and Termination This Agreement shall remain in effect from the date it is accepted until terminated as provided below Divelbiss may terminate this Agreement and all license rights hereunder upon the occurrence of any of the following i Licensee fails to cure any material breach of this Agreement within thirty 30 days after receiving notice of such breach ii Licensee becomes insolvent or unable to pay its debts makes an assignment for the benefit of creditors ceases to be a going concern files for protection of the bankruptcy laws becomes the subject of any involuntary proceeding under federal bankruptcy laws or has a receiver or trustee appointed to manage its assets iii Licensee consolidates or merges into or with any other entity or entities or sells or transfers all or substantially all of
157. ion DTr _Mme1 ane Mallse 120C Dsal Timna Clack Variable Names Figure 13 1 5 Click ok to install the LCD Display and return to the target s properties dialog 6 Click on LCD and a Properties button will appear on the right side of the target properties dialog 7 Click the PROPERTIES button The LCD Properties dialog will open This dialog is used to configure the LCD display on the target See Figure 13 2 EZ LADDER User s Manual 13 2 Divelbiss Corporation Section 13 LCD Displays Lcd Properties Lcd Part LCD A LCD on GPOS GPO15 LCD on CTS1 RTS1 GPI27 GPO GPO27 GPO30 LEDC LCD on GPO19 GPO26 Led Properties Controller EEEREN 1 4 1 Columns 8 40 8 Cancel Figure 13 2 8 Select the LCD PORT to use from the available ports You may use any of the listed ports provided it is not being used by another feature 9 Select the Controller Currently the HD44780 is the only supported controller 10 Enter the number of ROWS on the display 1 4 11 Enter the number of COLUMNS on the display 8 40 12 Click to close the LCD Properties and save the changes 13 Click to close the Target Settings Properties and save the changes 14 Click ok to close the ProjectSettingsForm dialog and save the changes The LCD display is now ready for use once the display is physically connected Refer to Section 20 EZ LAD DER Functions for using the LCD PRINT amp LCD CLEAR functions
158. ion provides the Tangent O from the input value P1 The enable EN must be true for the TAN function to be enabled The Q output is true when the TAN function is enabled Inputi TAN InputNum Output Example Circuit Related Functions ATAN SIN ASIN COS ACOS a EZ LADDER User s Manual 20 93 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects TIMER Symbol Inputs TIMER EN Boolean Function Enable Input function is disabled if EN is false P Real Integer Input Output Timer Value converted based on milliseconds Outputs Q Boolean Function Enable Output true when function is enabled O Timer Output Converted value of P Description The TIMER function converts a real or integer value into a timer value The EN enables the function and the P input is the real or integer input value to convert The O is the timer variable type output Example Circuit Related Functions EZ LADDER User s Manual 20 94 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects TOF Symbol Inputs TOFI IN Boolean Input Timer sense trigger input IN PT Timer Input Maximum time value preset timer value PT ET Outputs Q Boolean Output True when IN is true and ET PT ET Timer Output Current Elapsed timer value Description The TOF off delay timer time delay on drop out is a programmable timer with a variable turn off time When the input IN input is true the output
159. ions diagram circuits that can be created These are created by combining vertical and horizontal links Figures 3 6 shows a simple connection Figure 3 7 shows a series contact circuit Figure 3 8 shows a paralell contact circuit INPUTI DUTPUTI Figure 3 6 INPUTI INPUT2 DUTPUTI Series Contacts Figure 3 7 INPUTI QUTPUTI INPUT2 Parallel Contacts 7 Figure 3 8 prm UU UE UE EZ LADDER User s Manual 3 4 Divelbiss Corporation Section 3 Ladder Diagram Basics Understanding How a Ladder Diagram Functions When a ladder diagram is installed on a plc or other controller it will scan the program from left to right and from top to bottom A scan is similar to reading a page A page is read from left to right for each line and then top to bottom by going to the next line One complete reading of the program is considered a SCAN The larg er the scan time one complete read cycle the less often any I O is updated Scan time is an important consid eration in the design of a ladder diagram This scan time may be viewed in the Monitor Mode when running a ladder diagram with a hardware target Figure 3 9 demonstrates scan of a program All real world inputs are read for their state true false All real world outputs are set to their new state true false Rung 1 is scanned from Left to Right Setting any internal variables immediately Each
160. its assets or iv Following ninety 90 days written notice of termination to Licensee Licensee may terminate this Agreement and all licenses hereunder in the event that Divelbiss fails to cure any material breach of this Agreement within thirty 30 days after receiving notice of such breach Any fees or expenses payable by Licensee to Divelbiss shall not be reduced or otherwise affected by termination of this Agreement In the event of termination of this Agreement for any reason neither party shall be liable to the other on account of loss of prospective profits or anticipated sales or on account of expenditures inventories investments or commitments Upon termination of this Agreement for any reason Licensee will immediately return to Divelbiss or upon instruction from Divelbiss destroy all copies of the Licensed Software including all code documentation manuals etc and all Confidential Information in its possession and will certify in writing to Divelbiss that it has done so All provisions regarding ownership confidentiality proprietary rights payment of fees and royalties indemnification disclaimers of warranty and limitations of liability will survive termination of this Agreement Assignment and Sublicensing This Agreement the license granted hereunder and the Licensed Software may not be assigned sublicensed or otherwise transferred or conveyed by Licensee to any third party without the express written consent o
161. l Cancel Figure 16 16 Save OptiCAN Network The numbers that are to be entered is a decimal representation of binary bits that correspond to the outputs themselves Decimal Number 128 64 32 16 0 Corresponding Output 8 f 6 5 All Off Setting the value of the output register to 128 will cause only output 8 on the node to be ON Setting the value of the output register to 8 will cause only output 4 of the node to be ON If the value of the output register is set to 40 output 6 and output 4 will both be ON output 4 bit Decimal 8 output 6 bit Decimal 32 32 8 Decimal 40 The number shown as examples above are for decimal only If using Hexidecimal they must be converted appropriately Changes here are immediate after clicking SAVE Or SAVE amp EXIT EZ LADDER User s Manual 16 16 Divelbiss Corporation Section 16 OptiCAN Network OptiCAN Network Register Assignments The OptiCAN network operates based on preset and user defined registers The following are general register assignments and information common for all OptiCAN enabled controllers and devices For non controller devices please consult the product s datasheet for detailed register assigments and preset functions General Register Assignments These are the overall general register assigments common to all OptiCAN enabled devices Register Number Assigned Use 0 to 127 User Defin
162. l output 7 GPOS Onboard digital output 8 GPO9 Onboard digital output 9 HDIO Divelbiss High Density I O Bus 21939 21939 A VEVDAN Vounsd v I lt Variable Names p f Name Ready OK Cancel NUM Figure 15 1 5 Click ok to install J1939 and return to the target s properties dialog 6 Click on J1939 and a Properties button will appear on the right side of the target properties dialog 7 Click the PROPERTIES button The J1939 Properties dialog will open This dialog is used to configure the J1939 Communications on the target See Figure 15 2 EZ LADDER User s Manual 15 2 Divelbiss Corporation Section 15 J1939 Communications CAN Part CAND Units C Matric English ted Figure 15 2 8 Select the CAN Port to use from the available using the drop down menu Note only one port per controller can use J1939 9 Select the Units Select Metric or English as the prefered unit of measure for engineering units 10 Click ok to close the J1939Properties and save the changes 16 Click to close the Target Settings Properties and save the changes 17 Click ok to close the ProjectSettingsForm dialog and save the changes 41939 is now ready for use Refer to Section 20 EZ LADDER Functions for monitoring J1939 broadcasts using the 1939 SPN Function and the supported Suspect Parameter Numbers SPNs EZ LADDER User s Manual 15 3 Divelbiss Corporation SECTION 16 OPTICAN NETWORK EZ LADDER User s
163. le Output true when function is enabled Integer Output Bitwise AND of P1 P2 Inputs i Description The AND functions provides a bitwise AND function of the P1 and P2 inputs The enable EN must be true for the AND function to be enabled The Q output is true when the AND function is enabled Inputi Number Number2 Example Circuit Related Functions OR XOR NOT EZ LADDER User s Manual 20 7 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects ASIN Symbol Inputs ASIN EN Boolean Function Enable Input function is disabled if EN is false P1 Real Input Output is arcsine of this input Outputs Q Boolean Function Enable Output true when function is enabled O Real Output Arcsine value of P1 input Description The ASIN function provides an Arcsine O from the input value P1 The enable EN must be true for the ASIN function to be enabled The Q output is true when the ASIN function is enabled Example Circuit Input ASIN Related Functions SIN TAN ACOS ATAN COS T i EZ LADDER User s Manual 20 8 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects ATAN Symbol Inputs ATAN EN Boolean Function Enable Input function is disabled if EN is false EN Q P1 Real Input Output is arctangent of this input Pl Outputs Q Boolean Function Enable Output true when function is enabled O Real Output Arctangent value of P1 input Description The
164. le Output true when function is enabled O Integer Output The integer form of all the boolean input bits B1 Description The BIT_PACK is a configurable function that will convert the inputs bits from binary to a single 32 bit integer number The Bx inputs are the bits to pack the EN enables the BZ function when true The Q output is true when the function is enabled The output O is the 32 bit integer result of the packed inputs The number of bits must be identified when the function is placed in the ladder diagram 1 32 bits Only boolean variables or contacts may be used as bit inputs Included in the configuration is the bit offset The bit offset allows the programmer to use multiple BIT PACK functions and have a single 32 bit output integer by off setting the bit range for each function block Note the number of bits offset bits must be less than or equal to 32 When offsetting for example 2 blocks the first with bits 0 4 and the second with bits 5 10 only the inputs to the particular function will affect the output When bits change on the second block the output will change accordingly based on its value packed with the result from the first block s value Bit Pack Properties BIT True Integer equivalent 0 1 Mame BIT PACK 1 2 Description 2 4 3 8 4 16 5 32 Number of Bits Bo 6 64 Bit Offset 0 16 32768 BC P 30 1073741824 31 2147483648 Example Circuit CHI BIT PACKI Related Fun
165. ll be allowed to be added OOo oO EZ LADDER User s Manual 9 4 Divelbiss Corporation Section 5 Using EZ LADDER to Create Ladder Diagrams HE Add Variable M ame newnamd Description xxx Variable npul Var 140 Number t Output Default Value PO Internal Modbus Register 1 28 Cancel Retentive Figure 5 7 Variable Types There are five basic variable types target dependent Boolean BOOL REAL INTEGER TIMER and STRING Boolean variables are based on true false on off The object which uses a boolean variable will either be true or false When a coil or contact is placed it is directly tied to a Boolean variable name Booleans can simply be considered either a O or 1 false or true Real variables are based on numbers that use floating point math use decimal points Real variables can be ranged from 1 7x10 to 1 7x10 Reals are typically used for calculations and with functions where decimal point accuracy is required Integer variables are based on whole numbers no decimal points Integers can be ranged from 2147483647 to 214483647 Integers are used when decimal points are not required otring variables are used to represent non numerical data such as characters to display or transmit serially Examples of Variables Boolean 0 or 1 False or True Off or On Real 234 56 192 345 Integer 1 525 1034 Timer Days Hours Minutes Seconds Milliseconds String This
166. lting from or related to i Licensee s use modification or adaptation of the Licensed Software including to create any application or any Resulting Product ii the operation or performance or Licensee s or any third party s use of any Resulting Product ili any breach by Licensee of any representation or warranty made by Licensee related to the Licensed Software or any Resulting Product or iv any breach by Licensee of any of its obligations under this Agreement In the event that any claim of infringement under Section 8 a above is or in Divelbiss s sole judgment is likely to be substantiated Divelbiss may at its sole discretion use commercially reasonable efforts to i obtain a license from the third party for Licensee to continue using the allegedly infringing feature or aspect of the EZ LADDER Toolkit ii replace or modify the allegedly infringing feature or aspect of the EZ LADDER Toolkit to avoid such infringement or iii terminate this Agreement and the license hereunder and refund a prorated portion of the initial license fee paid by Licensee for the allegedly infringing feature or aspect of the EZ LADDER Toolkit Modification of Licensed Software Divelbiss may from time to time at its sole discretion and without further notice to Licensee make and at its further discretion distribute to Licensee modifications to the Licensed Software In the event that Licensee fails to install such a modification when so advised by Divelbiss
167. n 8 Retentive Variables Retentive Variables Depending upon the hardware target used EZ LADDER provides the option of assigning variables to be stored in the event power is lost to the target This feature must be supported by the hardware target Note The maximum amount of memory for retentive variables is 100 bytes During programming you must take into consideration how many variables are retentive and how much memory they use Real and Integer variables require 4 bytes each while boolean variables require 2 bytes each How it works First variables must be declared at retentive This is done in the Add Variable or Edit Variable dialog box To declare the variable as retentive click the Retentive check box as shown in Figure 8 1 Add Variable M ame CRl Description IntemalControlRelay 0 000000 Variable Type t Input Var 140 Number I t Output Default Value d e Internal Address Hegister E dit Cancel W Retentive Figure 8 1 When the program is running and a power loss is detected all variables that are designated retentive are auto matically stored into the targets EEPROM When power is restored the target automatically reload from the EEPROM the actual state of the variables on power loss and restores the variables when the program runs EZ LADDER User s Manual 8 2 Divelbiss Corporation SECTION 9 SSI ENCODER EZ LADDER User s Manual 9 1 Divelbiss Corpora
168. n This is the minimum hardware target version required to be compatable with this version of EZ LADDER 7 Print Allows printing of the Target Information EZ LADDER User s Manual 4 5 Divelbiss Corporation Section 4 Configuring EZ LADDER for Targets pI m U Updating Target Software As new functions and features to EZ LADDER and new versions of EZ LADDER are developed and released it will be necessary to update the actual target kernel with new software to take advantage of the new versions and features EZ LADDER provides an easy way to update the kernel on the target 1 Obtain the new kernel for the target provided by Divelbiss via CD email or download 2 Start EZ LADDER and open any project that uses the target or create a new project with the target 3 Enter the Monitor Mode 4 From the menu select PROJECT BOOTLOADER 5 EZLADDER will connect to the target and the Bootloader dialog will open showing the current version of the target 6 Click the ERASE USER PROGRAM button to erase the ladder program on the chip This is recommended before updating the kernel This applies to Bootloader versions 1 0 0 5 and later 7 Click BROWSE and select the kernel file The dialog will update showing the selected kernel file version 8 To update the version
169. n has completed the EEPROM write cycle without error Description The EEPROM WRITE function allows variables integer to be stored in non volatile memory EEPROM The function is enabled when EN is true AD provides the actual address to write to EEPROM and V is the actual value that is written The write occurs on the low to high transition of EN Q is true when the write cycle has completed without error EEPROM READ is available only on 256K PLC on a Chip target models The same variable type that writes to the EEPROM location should be used to read the EEPROM location Writing to EEPROM is a relatively slow operation and must be considered while writing the program scan time EEPROM storage area has a limited number of write cycles therefore it shouldn t be used to store data which changes often and must be re written often Example Circuit PROM WRIT CRI Other Each EEPROM address is absolute and is one byte in size Boolean variables fill two bytes while all other vari able types fill four bytes of EEPROM When writing a boolean to address 0 the actual variable will use address es 0 and 1 two bytes Should you write an integer variable into address 0 then it would use addresses 0 3 A memory map should be created and used to assign variable types and addresses prior to coding to ensure that variable size and types are accounted for Variable 2 Address integer type 4 bytes Variable 1 Address boolean type 2 bytes V Vari
170. n of the variable for reference only The VARIABLE TYPE must be set as with any other variable If the variable it to be retentive the RETENTIVE checkbox must be checked If the variable type is an input or output then the VAR I O NUMBER must be set The DEFAULT VALUE may optionally be set if the variable type is internal See manual Section 5 Creating Ladder Diagrams for more details on adding or editing variables and variable types The last box to configure is the ADDRESS REGISTER text box This box is used to identify special functions of the variable like register number or address This box is used to configure the variable to broadcast over the OptiCAN network See Figure 16 4 Edit Variable Name 21298 Description This i Where the variable description goes Variable Type t nput Var 1 0 Number Output Default value 0 f Internal Address Hegister Edit Retentive Cancel Figure 16 4 Click the EDIT button next to the Address Register box The Edit Address Register dialog box will open Click on the drop down menu and select CAN OptiCAN from the choices This enables this variable to access the OptiCAN network See Figure 16 5 Edit Address Register Pretix m CAM DptiCAN Address Hegister Figure 16 5 When selected other OptiCAN entry boxes will appear and be editable xx 87 EZ LADDER User s Manual 16 8 Divelbiss Corporation Section 16 OptiCAN Ne
171. nal HDIO Bus Keypad Support LCD Display Support PWM Outputs SPI Slave Synchronous Serial Interface SSI Serial Printing Modbus Slave 41939 Communications OptiCAN Networking EEPROM Storage SUPPORTED FUNCTIONS Less Than lt Less Than Equal To lt Not Equal To lt gt Equal To EEPROM Read EEPROM_READ EEPROM Write EEPROM_WRITE Greater Than gt Greater Than Equal To gt Grey Scale Encoder GC SSI Absolute Value ABS Addition ADD Bitwise AND AND Average AVG Bit Pack BIT_PACK Bit Unpack BIT UNPACK Convert to Boolean BOOLEAN Compare CMP Hardware Counter CNTRTMR Count Down CTD Count Up CTU Count Up Down CTUD Division DIV Drum Sequencer DRUM_SEQ Falling Edge Detect F_TRIG Get Date GETDATE Get Time GETTIME High Speed Timer HIGH SPD TMR Hysteresis HYSTER Convert to Integer INTEGER J1939 Receive 1939 SPN Keypad KEYPAD Latching Coil LATCH LCD Clear LCD CLEAR LCD Print LCD PRINT Limit LIMIT Moving Average MAVG Maximum MAX Minimum MIN Modulo MOD Multiplication MULT OptiCAN Node Status OPTICAN NODESTATUS OptiCAN Transmit Message OPTICAN TXNETMSG Bitwise NOT NOT Bitwise OR OR Pulse With Modulation PWM PWM Frequence PWM_FREQ Rising Edge Detect R_TRIG Convert to Real REAL Rotate Left ROL Rotate Right ROR Reset Set Reset Dominant RS Select SEL Set Date SETDATE Set Time SETTIME S
172. nfiguring EZ Ladder for Targets for more details Using the menus and buttons place ladder diagram objects into the workspace to create a ladder diagram Later in this section details will be given on placing variables and objects Figure 5 2 shows a simple ladder dia gram project temer ER JMP Edit Inst W k qn Label Gare Var ig C Abc il Lu ill CTU CTUD TP TOF Insert Function lt Start Stop Motor Coils 1 Contacts Functions Variables Motor_on Motor_on Labels 2 9 4 NUM Figure 5 2 EZ LADDER User s Manual 9 2 Divelbiss Corporation Section 5 Using EZ LADDER to Create Ladder Diagrams Understanding Objects and Variables A variable is something that can assume any number of values Variables are given names for unique identifica tion Variables can be anything from numbers 1 2 3 4 5 5 6 to text based ABCDEF Variables are an important part of understanding how EZ LADDER uses functions and objects Each object will require at least one variable to operate properly either the object uses a variable directly or variables are con nected to it using links The variable types are dependent upon the type of hardware target and the function being placed or used Objects functions use these variables to pass and store changeable values in the ladder diagram project Figure 5 3 shows a simple ladder diagram with direct and linked variables
173. nked variables the variables must in inserted manually Inst To insert a variable and link to other objects select the insert variables button from the tool bar Vars position the pointer in the project where the variable is to be inserted Left Click and the Variables dialog box will open Select the type of variable you wish to insert using the tabs at the top of the dialog box From here if a variable already exists it can be selected and inserted into the project by highlighting the variable and click OK Figure 5 6 shows the variables dialog box and selecting an existing variable Variables BOOLEAN INTEGER REAL TIMER STRING Select type of variable 170 Num Modbus INTERNAL T Oms 50 Select existing variable INTERNAL T OMs amp click Delete E dit Figure 5 6 If the variable does not exist it must be added before it can inserted into the project Select the variable type to add see later this section on variable types Click the ADD button The ADD Variable dialog box will open Complete the required sections see later this section on variable attributes and click OK This will show the new variable in the list of the Variables dialog box Select the variable you just added and click The variable is now inserted into the ladder diagram project Figure 5 7 shows the ADD Variable dialog Box NOTE When inserting variables for functions only the type of supported variable for that function wi
174. nly Example Circuit inputi THIGI CTD1 Outputi o Input Timing Diagram A Program Scan Time Related Functions F TRIG EZ LADDER User s Manual 20 75 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects ROL Symbol Inputs E EN Boolean Function Enable Input function is disabled if EN is false EN P1 Integer Input Base number that will have bit rotations P2 Integer Input Number of left one bit rotations to occur for P1 PI 0 Qutputs Q Boolean Function Enable Output true when function is enabled O Integer Output Output result of bit rotation me Description The ROL function provides a left bit rotation of the P1 input P2 specifies the number of one bit rotations The P1 number is a integer representation of a binary number The P2 number is an integer representation of the num ber of binary rotations shifts to occur to P1 The actual bit only rotates when the maximum number is reached example 32 bit rotation to the input number 1 The enable EN must be true for the ROL function to be enabled The Q output is true when the ROL function is enabled The O Output is the rotated number represent ed in integer form Example Circuit Related Functions ROR EZ LADDER User s Manual 20 76 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects ROR Symbol Inputs REM EN Boolean Function Enable Input function is disabled if EN is false EN Q
175. nput variable values Provides selection of multiple input variables One s complement of the input variable value Inequality comparison of input variable values Provides status of an OptiCAN network Node Broadcasts Global Start Stop and Reset for OptiCAN Networks Bitwise OR function of the input variables PID Control Algorithym Controls a PWM output channel hardware Changes controls the frequency of the PWM clock Outputs a random number based on a SEED value Converts input variable value into a Real variable Rising Edge Detector Provides a Left Bit Rotation Provides a Right Bit Rotation Reset Dominant bistable Used to provide the RANDOM with a base number Selection Block Serial prints to the multi pupose port or 2nd COM port Sets the date of the hardware Real Time Clock Sets the time of the hardware Real Time Clock Bit Shift Left Bit Shift Right Outputs the sine of the input variable value Writes to the Solves it display integer only Clears the Solves It display Outputs the square root of the input variable value Set Dominant bistable Subtracts input variables values Outputs the tangent of the input variable value Converts Integer or Real to Timer Off Delay Timer Time Delay on Drop Out On Delay Timer Time Delay on Pick Up Pulse Timer one shot timer Direct Coil de energize a LATCHed coil Bitwise Exclusive OR of the input variables Page 20 42 20 43 20 46 20 47 20 49 20 50 20 5
176. nteger Output Result of the shifted input lt Description The SHL function provides a left bit shift of the P1 input The P2 input specifies the number of one bit left shifts If the enable EN is false the function is disabled If the enable EN is true the output O will be equal result of the left shifted input in integer form 1 2 4 8 16 32 A shift left when the output is 32 will cause the output to be zero bit is shifted off Zeros are always shifted on to the right side when a left shift occurs Example Circuit Related Functions SHR EZ LADDER User s Manual 20 85 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects SHR Symbol Inputs algi EN Boolean Function Enable Input function is disabled if EN is false EN P1 Integer Input Number to be shifted right P2 Integer Input Number of one bit left right PI Outputs Q Boolean Function Enable Output true when function is enabled Integer Output Result of the shifted input x Description The SHR function provides a right bit shift of the P1 input The P2 input specifies the number of one bit right shifts If the enable EN is false the function is disabled If the enable EN is true the output O will be equal result of the right shifted input in integer form 32 16 8 4 2 1 A shift right when the output is 1 will cause the output to be zero bit is shifted off Zeros are always shifted on to the left side when a r
177. oadcast registers may be configured here These registers can be configured to broadcast at a specified interval On a Change of State or both If required for your application click on the register and use the drop down box to select a Broadcast trigger See Figure 16 2 OptiCAN Properties iw Enabled CAN Pork Made ID Broadcast Rate Send Heartbeat Common Broadcast Registers Mame Broadcast Tri ee CAN Tx Errors Change of State LAN Errors Change of State Mone Specified Interval Change of State Specified Interval amp Change of State Figure 16 2 Broadcasting Sending Data from a Controller to another Device Inst Broadcasting or sending data to a network node is configured using variables To broadcast click the Vars Insert Variable button and click ADD to add a new variable or click the Edit Variable button Edit select a variable and click EDIT to edit the variable The Add Variable or Edit Variable dialog box will open See Figure 16 3 Vars Edit Variable Description 7 Variable Type C Input Var 10 Number C Output Default Value ie Internal Address Register Edit Cancel Retentive Figure 16 3 EZ LADDER User s Manual 16 7 Divelbiss Corporation Section 16 OptiCAN Network As any other variable the variable NAME must be entered if a new variable is being added The DESCRIPTION is an optional field to give a descriptio
178. oe e Target Version Options Target Enhanced Baby Bear 128K Divelbiss Corporation Enhanced Baby Bear Enhanced Baby Bear 256K Divelbiss Corporation Enhanced Baby Bear Modbus PLC ON 4 CHIP Divelbiss Corporation PLC ON 4 CHIP C NL CHIL Ir DCPN PLCHIP M2 2580x Code T Devices e Description Add Pulse Width Modulation c 7 Device Properties Device Description LCD LCD Display 051305 Dallas 1305 Real Time Clack SPI Slave S51 Sal Bus Serial Print Serial Print Variable Mames Ge Figure 11 1 5 Click to install the SPI Slave and return to the target s properties dialog 6 Click on SPI Slave and a Properties button will appear on the right side of the target properties dialog 7 Click the PROPERTIES button The SPI Slave Properties dialog will open This dialog is used to configure the SPI Slave on the target See Figure 11 2 EZ LADDER User s Manual 11 2 Divelbiss Corporation Section 11 SPI Slave 5 1 Slave Properties Sele SPI Part EX Clock Phase Middle Clock Polarity Active High Bit Order MSB First Cancel Figure 11 2 8 Select the SPI Port to use from the available using the drop down menu Note SPIO is the only port support for SPI Slave 9 The Phase Clock is currently hard coded to Middle 10 Select the Appropriate Clock Polarity for your application needs Active High or Active Low using the drop down
179. of the ladder diagram and then it is converted into a compiled code This code has no graphical representation but is now the actual code language for the specific hardware target microprocessor Generally this type of code is not recognizable or viewable During the compilation process EZ LADDER will perform error checking missing links duplicate I O assign ments etc Any errors encountered during the compilation process are displayed in the Output Window at the bottom of the workspace if the view is enabled To compile the program click the compile button The program will Verify and attempt to Compile lf you have not saved the ladder diagram project EZ LADDER will require you to do so before compiling Figure 5 12 shows the previous ladder diagram being verified and displaying an error Any errors encountered during the compilation process must be corrected before the compilation will successful ly complete and provide operational compiled code See Appendix A for common error messages The VERIFY button will scan through the program and verify there are no link or object errors When Compiling EZ LADDER automatically performs a verify before beginning the compilation process Figure 5 13 shows the same ladder diagram with the corrections to the invalid link and compiled successfully With a successful compile the ladder diagram project is ready to operate on the hardware target EZ LADDER User s Manual 9 11 Divelbiss Corporation
180. only available on OptiCAN supported targets and if the OptiCAN network has been enabled The OptiCAN Transmit Network Message dia log box will open See Figure 16 10 The function NAME can be changed if preferred or the default name may be used The DESCRIPTION is an optional field to enter a description of what the function does for later reference The TIMEOUT ms box is where a timeout value in milliseconds is entered The NETWORK MESSAGE drop down box selects the type of message to globally transmit to all nodes The Start Network command that must be sent to start the OptiCAN network communications The Stop Network command halts the OptiCAN network communications The Reset Network command is used to cause a hard reset on the OptiCAN network EZ LADDER User s Manual 16 11 Divelbiss Corporation Section 16 OptiCAN Network OptiCAN Transmit Network Message Mame OPTICAN_T NETMSG1 Description Network Message Start Network Cancel Figure 16 10 Click oK to place the function in the ladder program See Figure 16 11 Y Typically these commands should only be sent when required For example the Start Network command should be sent on power up and then only when specifically required after that in case of an error This func tion block will only send the commnad on the rising edge on EN If multiple broadcasts are required additional logic will be required to repeat the broadcast P
181. ontrol signal The ER Error is the error calcu lation of the PID SP PV The PID function is defined by the difference Equation u n u n 1 Kple n e n 1 Ki T e n Kg T e n 2 e n 1 e n 2 Where u n PID Output Kp Proportional Gain K Integral Gain Kg Derivative Gain e n Error Setpoint Process Variable T Sample Period PidPropertiesForm Name PID1 Name Name of the PID function Description E Description Enter a description of the PID use Sample Period Secs The sample period in seconds Min 015 Max 86 4005 Sample Period secs 0 1 sample period resolution 50uS Min Output Value 10 0 Minumum Output Value Minimum PID Output value allowed Max Output Value 100 000 Maximum Output Value Maximum PID Output value allowed OK Cancel Example Circuit CR1 SPEEDin SpdEr Related Functions EZ LADDER User s Manual 20 70 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects PWM Symbol Inputs Boolean Function Enable Input function is disabled if EN is false EN DC Integer Real Input Duty Cycle of the PWM Channel Output 0 100 representing 0 to 100 Outputs Q Boolean Function Enable Output true when function is enabled Description The PWM function controls the function of a hardware PWM output channel this channel is specified when the function is placed When the EN is true the hardwa
182. oolean Function Enable Output true when function is enabled O Real Output natural logarithm of the P1 input Description The LN function provides the natural logarithm of the P1 input The output O is the natural logarithm of the P1 input The enable EN must be true for the LN function to be enabled Example Circuit Inputi LN InputNum Output Related Functions EXP EXPT MOD SQRT LOG EZ LADDER User s Manual 20 57 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects LOG Symbol Inputs ae EN Boolean Function Enable Input function is disabled if EN is false EN Q P1 Real Input Output is logarithm base 10 of this input Pl Outputs Q Boolean Function Enable Output true when function is enabled O Real Output logarithm base 10 of the P1 input Description The LOG function calculates the logarithm base 10 of the P1 input The output O is the cacluated base 10 logarithm value of the P1 input The enable EN must be true for the LOG function to be enabled Example Circuit Input LOG InputNum Output Related Functions EXP EXPT MOD SQRT LN EZ LADDER User s Manual 20 58 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects MAVG Symbol Inputs MAVGI EN Boolean Function Enable Input function is disabled if EN is false EN Q P Integer Real Input Output is moving average of this input P Outputs Q Boolean Function Enable Output
183. operties Target Date Date Sync mi PC Target Time Date PC Date Date Erase User Program PC Time Date 7 Cancel Figure 4 9 If the target is not currently running a program with the real time clock you may receive the following error dialog Figure 4 10 Click OK to continue E LADDER Figure 4 10 EZ LADDER User s Manual 4 8 Divelbiss Corporation SECTION 5 USING EZ LADDER TO CREATE LADDER DIAGRAMS EZ LADDER User s Manual 5 1 Divelbiss Corporation Section 5 Using EZ LADDER to Create Ladder Diagrams Creating Ladder Diagram Projects The first step in creating a ladder diagram project is to open EZ LADDER EZ LADDER automatically creates a new workspace area as it opens Figure 5 1 shows recently opened EZ LADDER with a new project window A new project window may be opened by choosing the FILE menu and selecting NEW E2 EZ Laddert _ 151 2 DEH amp x JMP Edit Inst Us l gt gt kabet Vars Wars fy C MON i 4 CTD CTUD TON TOF Insert Function lt Coils Contacts Functions Variables Labels Figure 5 1 The project target settings should be configured before proceeding to place any objects Use the PROJECTS menu and choose SETTINGS Configure the target settings for the hardware that is to be used EZ LADDER requires the target be selected before any objects can be placed on the workspace See section 4 Co
184. ot Equal To lt gt Equal To EEPROM Read EEPROM_READ EEPROM Write EEPROM_WRITE Greater Than gt Greater Than Equal To gt Grey Scale Encoder GC_ SSI Absolute Value ABS Addition ADD Bitwise AND AND Average AVG Bit Pack BIT_PACK Bit Unpack BIT UNPACK Convert to Boolean BOOLEAN Compare CMP Hardware Counter CNTRTMR Count Down CTD Count Up CTU Count Up Down CTUD Division DIV Drum Sequencer DRUM SEQ Falling Edge Detect F_TRIG Get Date GETDATE Get Time GETTIME High Speed Timer HIGH SPD TMR Hysteresis HYSTER Convert to Integer INTEGER J1939 Receive 1939 SPN Latching Coil LATCH Limit LIMIT Moving Average MAVG Maximum MAX Minimum MIN Modulo MOD Multiplication MULT OptiCAN Node Status OPTICAN NODESTATUS OptiCAN Transmit Message OPTICAN TXNETMSG Bitwise NOT NOT Bitwise OR OR Rising Edge Detect R_TRIG Convert to Real REAL Rotate Left ROL Rotate Right ROR Reset Set Reset Dominant RS Select SEL Set Date SETDATE Set Time SETTIME Shift Left SHL Shift Right SHR Serial Print SERIAL PRINT Set Reset Set Dominant SR Subtraction SUB Convert to Timer TIMER Time Delay Off TOF Time Delay On TON Pulse Timer TP Unlatching Coil UNLATCH Bitwise XOR XOR EZ LADDER User s Manual 17 22 Divelbiss Corporation Section 17 Target Features amp Functions Lists PLC ON A CHIP CONTRO
185. program will compile successfully however the program will not function as designed A variable must be placed between the output and the input for proper operation Figure 19 1 shows the incorrect way to connect two function s variable I O Figure 19 2 shows the correct connection SAEZ Ladder S est di o EZ Dg X amp JMP Edit Inst Y k gt gt babel vie Vars C Abc 4H dil Q 4M CTU CTD CTUD TP TON Insert Function MAVG A A x Coils 1 Contacts Functions Variables Labels 2 5 110 1 NUM Figure 19 1 LE Ladder Standard te MEN EZ Dal 8 7 JMP Edit Inst W k Label C Abc Vars Vars il dit 4 CTU CTD TON TOF Incorrect Variables Output connected directly to variable input Correct Function variable output and input connected through inserted variable Insert Function MAVG Y A A x Coils 1 Contacts Functions Variables Labels Ready NUM Figure 19 2 EZ LADDER User s Manual 19 5 Divelbiss Corporation SECTION 20 EZ LADDER FUNCTIONS amp OBJECTS EZ LADDER User s Manual 10 1 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects Object Basics This sections provides information on using each of the standard functions and objects using EZ LADDER For each object or function the symbol diagram information on the inputs and outputs and a description of t
186. provide control over the targets hardware PWM outputs if support ed on the target These two functions are PWM and PWM FREQ Refer to this manual s Section 20 Functions for details on using and configuring these functions Before these functions can be used to control the targets hardware PWM outputs the outputs must be installed using EZ LADDER in the target s configuration To install PWM Outputs in the target configuration 1 Use the menu select PROJECT SETTINGS The ProjectSettingsForm dialog will open Select the target 2 Click the PROPERTIES button 3 Click the ADD button 4 From the provided ADD dialog Devices list select the PWM Pulse Width Modulation See Figure10 1 Target Version Options Target PLC ON 4 CHIP Divelbizs Corporation PLL UN LHIF Enhanced Baby Bear 126k Divelbiss Corporation Enhanced Baby Bear T SES fx IPLCHIP M2 2560 Devices Code Ty C Device Marne Description Add ka __ z Device Properties EW Device Onboard digital output 9 HDIO Divelbiss High Density 1 Bus Pulse width Modulation RTC 051305 Dallas 1305 Real Time Clock 551 551 Bus variable Mames Name Figure 10 1 5 Click ok to install the PWM device and return to the target s properties dialog 6 Click on PWM and a Properties button will appear on the right side of the target properties dialog 7 Click the PROPERTIES button The P
187. r 191 190 189 Register to Listen for Name Broadcast Trigger Node Status E None L Specified Interval L Change of State LI Specified Interval amp Change of State CAN Tx Errors L None Specified Interval e Change of State Specified Interval amp Change of State CAN Rx Erros None DJ Specified Interval e Change of State Specified Interval amp Change of State Input Register Assignments Receive Broadcast Node ID to Listen Description Variable Assignment For 0 OAONOOaRWDND Page 1 of 4 Register to Listen for Input Register Assignments Receive Broadcast Description Variable Assignment Node ID to Listen For Register to Listen for Input Register Assignments Receive Broadcast Description Variable Assignment Node ID to Listen For Receive Register Notes Page 3 of 4 Broadcast to Register Optional Broadcast to Node ID Broadcast Assignments Transmit Variable Description Broadcast Trigger
188. r CNTRTMR Count Down CTD Count Up CTU Count Up Down CTUD Division DIV Drum Sequencer DRUM_SEQ Falling Edge Detect F_TRIG Get Date GETDATE Get Time GETTIME High Speed Timer HIGH SPD TMR Hysteresis HYSTER Convert to Integer INTEGER J1939 Receive 1939 SPN Latching Coil LATCH Limit LIMIT Moving Average MAVG Maximum MAX Minimum MIN Modulo MOD Multiplication MULT OptiCAN Node Status OPTICAN NODESTATUS OptiCAN Transmit Message OPTICAN TXNETMSG Bitwise NOT NOT Bitwise OR OR Rising Edge Detect R_TRIG Convert to Real REAL Rotate Left ROL Rotate Right ROR Reset Set Reset Dominant RS Select SEL Set Date SETDATE Set Time SETTIME Shift Left SHL Shift Right SHR Serial Print SERIAL PRINT Set Reset Set Dominant SR Subtraction SUB Convert to Timer TIMER Time Delay Off TOF Time Delay On TON Pulse Timer TP Unlatching Coil UNLATCH Bitwise XOR XOR EZ LADDER User s Manual Divelbiss Corporation Section 17 Target Features amp Functions Lists HARSH ENVIRONMENT CONTROLLER HEC 1000 The supported features include all features that are supported individually Using certain features may limit availability of other features SUPPORTED FEATURES Analog Inputs 2 Channels Real Time Clock OptiCAN Networking Output Monitoring SUPPORTED FUNCTIONS Less Than lt Less Than Equal To lt Not Equal To lt
189. r from when the PWM channel was installed using the Target Settings menu or a PWM FREQ function The PWM FREQ only changes the hardware PWM channel s frequency with a low to high transition on EN This frequency will be maintained regardless of the EN state The only time this frequency will change again is when the actual frequency input variable input F changes and the EN detects another low to high transition Q is true during the ladder diagram scan when the frequency is newly applied All other times the Q output is low When the PWM function is placed you must specify the actual PWM channel group CLK A or CLK B that the function will change the frequency to Note If an invalid frequency is input to F then the Q Output will remain low as well as the actual PWM output Input M FREQ FreqChng EN F Example Circuit Related Functions PWM A EZ LADDER User s Manual 20 72 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects RANDOM Symbol Inputs RANDOM EN Boolean Function Enable Input function is disabled if EN is false EN 0 Outputs Q Boolean Function Enable Output true when function is enabled O Integer Output Random Number Description The RANDOM functions provides a random number based on the SEED function value The enable EN must be true for the RANDOM function to be enabled The Q output is true when the RANDOM function is enabled The output O is the random number The RANDO
190. ral a This agreement constitutes the entire agreement between the parties relating to the Licensed Software and the subject matter hereof supersedes all other proposals quotes understandings or agreements whether written or oral and cannot be modified except by a writing signed by both Licensee and Divelbiss b In the event of any conflict between the terms of this Agreement and any purchase order or similar documentation prepared by Licensee in connection with the transactions contemplated herein this Agreement shall govern and take precedence notwithstanding Divelbiss s failure to object to any conflicting provisions c Notwithstanding anything to the contrary herein except for payment obligations under Sections 3 or 15 neither party shall be liable for any failure of performance beyond its reasonable control d Except as otherwise provided this Agreement will be subject to and construed in accordance with the laws of the State of Ohio U S A without regard to its conflict of laws provisions Exclusive venue for any legal action between the Parties arising out of or related to this Agreement or the subject matter hereof will be in the state or federal courts located or having jurisdiction in Knox County Ohio U S A which the Parties expressly acknowledge to have personal jurisdiction over them The 1980 UN Convention on the International Sale of Goods CISG will not apply hereto e No waiver by either party of a breach of
191. ram Name the Variable as normal select the variable type as INPUT In the VAR I O NUM field enter the keypad buttons assignment Please see the next page for button assignments Click OK to finish placing the contact EZ LADDER User s Manual 20 47 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects Discrete Digital Input Keypad Button Assignments I O Assignment Button Description KB O Numeric O KB 1 Numeric 1 KB 2 Numeric 2 KB 3 Numeric 3 KB 4 Numeric 4 KB 5 Numeric 5 KB 6 Numeric 6 KB 7 Numeric 7 KB 8 Numeric 8 KB 9 Numeric 9 I O Assignment KB CLEAR KB DP KB KB F1 KB F2 KB F3 KB F4 KB UP KB DOWN KB ENTER Button Description Clear Button Decimal Point Button Button F1 Button F2 Button F3 Button F4 Button Up Button Down Button Enter Button Proper care must be taken in the ladder diagram so that KEYPAD and discrete inputs do not interfere with each other s operation Discrete Digital Input Example KB FI CMP EM LT VARI PI EQ VAR2 P2 GT Related Functions CHI EZ LADDER User s Manual 20 48 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects LABEL Symbol Inputs Labell None Outputs None Description The LABEL function works with the JMP function to skip ladder diagram sections ALABEL must be placed first then the JMP inserted When the condition is true to trigger the jump the program scan jumps to the LABE
192. rate baud rate for the encoder communication This is dependent on the encoder and cable length Refer the Made encoder s documentation for this setting Qi ossis Resolution Resolution of the Encoder This is dependent on the encoder Refer the encoder s documentation for this setting 551 Port 1551 sal Clock Aate KHz Resolution bits 12 Cancel Slave EZ LADDER User s Manual 20 32 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects GC SSI Continued Description Slave GC SSI The GC SSI function may be configured as a slave target dependent When configured as a slave must be connected with another target acting as the master the slave SSI port will receive the same data that the mas ter does from an SSI encoder This provides the option of connecting two or more targets to a single SSI encoder to provide redundancy When configuring as a slave you must select Slave SSI Port and enter the Resolution The Clock rate is determined by the Master SSI Note The resolution must match the resolution programmed on the Master and the resolution of the SSI encoder Configuration Details Slave GC SSI Setup Gray Code 551 Properties Mame 551 Name of the function Description Description Description of what function is used for SSI Port Select the SSI Port to use Resolution Resolution of the Encoder This is dependent on the encoder Refer
193. rcuit Input Drum1 Step Drumi 01 Outl Drumi 02 Out Channel Step Example Drum Sequencer Properties Name IDRUM SEG1 Description Number of Channels 8 Change Number of Channels Step Channel State Add Delete E dit Move State Up Move State Down Related Functions None EZ LADDER User s Manual 20 24 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects EQUAL TO Symbol Inputs EN Boolean Function Enable Input function is disabled if EN is false Px Integer Real Input Output is true if these inputs are equal Outputs Q Boolean Function Enable Output true when all inputs are equal Description The EQUAL TO function provides an equal to comparison for the Px inputs The number of inputs is specified when the object is placed The Q output is true if all the Px inputs are equal The Enable must be true for the EQUAL TO function to be enabled Example Circuit Outputl EN Numberl amp P1 Number p P2 Related Functions lt gt lt gt lt gt EZ LADDER User s Manual 20 25 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects EEPROM READ Symbol Inputs EPROM READ EN Boolean Function Enable Input function is disabled if EN is false EN Q AD Integer Input Address to read value from 0 2906 See Below AD Outputs Q Boolean Function Enable Output true when has completed the EEPROM read cycle V Integer
194. re PWM channel outputs a square wave with the specified duty cycle DC function input at the frequency preprogrammed this frequency is determined by the PWM chan nel and is configured when the PWM channel is installed in the target settings menu unless the PWM FREQ function overrides this frequency with it s own The Q output is true when the function is enabled When the PWM function is placed you must specify the actual hardware PWM channel that the function will control and the Polarity Starting Low will cause the PWM channel to start with a TTL low Starting High will cause the PWM channel to start with a TTL high Input Pki Pwm Stat EN DC Frequency amp Duty Cycle Example Circuit FREQ LETT LP ama bape Duty Cycle Related Functions PWM FREQ EZ LADDER User s Manual 20 71 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects PWM FREQ Symbol Inputs Mh FREQ EN Boolean Function Enable Input function is disabled if EN is false EN d F Integer Input New Frequency to apply to PWM Output channel F Outputs Q Boolean Function Enable Output true when the F Input frequency is actually being used on the PWM Output channel Description The PWM FREQ function controls the frequency of a hardware PWM output channel this channel is specified when the function is placed When the EN sees a low to high transition the hardware PWM channel s frequen cy is changed from it s current value eithe
195. res include all features that are supported individually Using certain features may limit availability of other features SUPPORTED FEATURES Retentive Variables Real Time Clock SUPPORTED FUNCTIONS Less Than lt Less Than Equal To lt Not Equal To lt gt Equal To EEPROM Read EEPROM_READ EEPROM Write EEPROM_WRITE Greater Than gt Greater Than Equal To gt Absolute Value ABS Addition ADD Bitwise AND AND Average AVG Bit Pack BIT_PACK Bit Unpack BIT UNPACK Convert to Boolean BOOLEAN Compare CMP Count Down CTD Count Up CTU Count Up Down CTUD Division DIV Drum Sequencer DRUM_SEQ Falling Edge Detect F_TRIG Get Date GETDATE Get Time GETTIME Hardware Counter CNTRTMR High Speed Timer HIGH SPD TMR Hysteresis HYSTER Convert to Integer INTEGER Hardware Counter EEPROM Storage Enhanced Baby Bear Expansion Port Latching Coil LATCH Limit LIMIT Moving Average MAVG Maximum MAX Minimum MIN Modulo MOD Multiplication MULT Bitwise NOT NOT Bitwise OR OR Rising Edge Detect R_TRIG Convert to Real REAL Rotate Left ROL Rotate Right ROR Reset Set Reset Dominant RS Select SEL Set Date SETDATE Set Time SETTIME Shift Left SHL Shift Right SHR Set Reset Set Dominant SR Subtraction SUB Convert to Timer TIMER Time Delay Off TOF Time Delay On TON Pulse Timer TP Unlatching Coil U
196. respond as they are instructed The master always controls the com munication and can communicate to only one or all of the slaves Slaves can not communciate with each other EZ LADDER supports Modbus Slave only on supported hardware targets To use the Modbus feature it must be enabled when selecting the target From the menu select PROJECT SETTINGS The Project Settings window will open Select highlight the hardware target If the target supports Modbus a MODBUS button will become visible and active Figure 7 1 shows the Project Settings window with a visible MODBUS button ProjectSettingsForm Target Versian Options Target Properties Plus Divelbiss Corporation Plus PLC ON A CHIP Divelbiss Corporation FLL ON A LHIF Modbus Enhanced Baby Bear 126K Divelbiss Corporation Enhanced Baby Bear Enhanced Baby Bear 255K Divelbiss Corporation Enhanced Baby Bear Code Type Senal Settings Fort COM Baud Rate 57600 Cancel Figure 7 1 Modbus Configuration Continue the target configuration PROPERTIES button with some targets with its I O etc When all the configura tion is complete click the MODBUS button The Modbus Setup window will open To use Modbus check the Enable box The modbus setup parameter boxes will now become editable Figure 7 2 shows the Modbus Setup window HE Modbus Setup iv Enable Slave ID f ATU t ASCII Lomm Made 55555 Parity EVEN
197. rget Target does not support bootloader Monitor Mode There is not enough room for the paste Increase the number of rungs Editor Mode There is not enough rung space to paste from the clipboard Increase the number of rungs EZ LADDER User s Manual 19 3 Divelbiss Corporation Section 19 Troubleshooting _ There is not enough room to the right of the paste point Editor Mode There is not enough room at the insertion point to paste objects from the clipboard Paste the objects farther left This object must be place in the last column Editor Mode The selected object can only be placed in the last column coils Timeout ERROR Entire packet was not received Monitor Mode During communication with a target part of a packet was lost or not received Timeout ERROR Target didn t respond Monitor Mode During communication with a target the target did not respond Check the connections and serial port setting in EZ Ladder Undefined packet type Monitor Mode EZ Ladder has detected a undefined communications packet during communications with the connected target EZ LADDER User s Manual 19 4 Divelbiss Corporation Section 19 Troubleshooting Connecting Functions to Functions Mistakes The following apply to using functions with other functions 1 Variable outputs of a function connected directly to a variable input of another function When connected directly the
198. roject Settings dialog box 2 Select the target of the controller and and then click the PROPERTIES button The Target Properties dialog box will open 3 Click the OPTICAN PROPERTIES button to open the OptiCAN Properties dialog box See Figure 16 1 OptiCAN Properties Enabled CAN Pork Made ID Broadcast Hate ms Common Broadcast Registers Status CAN Tx Errors CAN Fix Errors Figure 16 1 4 Click on the Enabled checkbox to check it This activates the OptiCAN for the target When selected the other previously not available boxes become available See Figure 16 2 5 Using the CAN Port drop down box select the correct CAN port the network will be using Please note different CAN Port options will be shown dependent upon the actual target selected See Figure 16 2 6 In the Node ID text box type in the node ID of the controller network address See Figure 16 2 7 In the Broadcast Rate text box type in the broadcast rate for the controller in milliseconds This timing should have been determined during the network planning phase See Figure 16 2 8 Click on the Send Heartbeat checkbox if required When checked the controller will send a heartbeat across the network This heartbeat may be used to determine if communication is functional to other devices See Figure 16 2 EZ LADDER User s Manual 16 6 Divelbiss Corporation Section 16 OptiCAN Network 9 Common br
199. s Mame MI Cancel Figure 12 1 Click ok to install the Serial Print and return to the target s properties dialog Click on Serial Print and a Properties button will appear on the right side of the target properties dialog Click the PROPERTIES button The Serial Properties dialog will open This dialog is used to configure the Serial Port on the target See Figure 12 2 NO Ol EZ LADDER User s Manual 12 2 Divelbiss Corporation Section 12 Serial Print Serial Properties S eral Fort Baud Hate Data Bits Stop Bits Parity NONE Hardware Flow Control Buffer Size 1 00 Figure 12 2 8 Select the COM 1 to use from the available using the drop down menu Note COM 1 is the only port support for PLC on a Chip Targets at this time 9 Select the Baud Rate Supports 9600 to 115 2K baud 10 Select 8 for Data Bits PLC on a Chip Targets currently only support 8 bit data 11 Select 1 Stop Bit PLC on a Chip Targets currently only support 1 stop bit 12 Select None for Parity PLC on a Chip Targets currently only support None for parity 13 Check the Flow Control Box if you require flow control 14 Set the Buffer Size It defaults to 100 bytes 15 Click ok to close the Serial Properties and save the changes 16 Click ok to close the Target Settings Properties and save the changes 17 Click ok to close the ProjectSettingsForm dialog and save the changes The Seri
200. s shall be paid by Licensee Overdue balances are subject to a monthly finance charge equal to the greater of 1 5 or the maximum interest rate permitted by law times the unpaid balance 4 Reporting a Upon request of Divelbiss Licensee will provide a written report each quarter showing the number of Resulting Products produced distributed or sold by Licensee during the previous calendar quarter the parties identified by name address etc to which they were distributed or sold and the revenue received therefor b Divelbiss shall be entitled to commission or to conduct an audit of Licensee s books and records twice per year in order to verify the accuracy of reports regarding resulting Products made by Licensee to Divelbiss Such audit shall be conducted during regular business hours at Licensee s facilities and Licensee shall cooperate fully with in connection with such audit making all facilities records and personnel available upon request by Divelbiss or its representative 5 a b c T Divelbiss Warranties Divelbiss represents and warrants that i it is the owner of the Licensed Software and ii this Agreement violates no previous agreement between Divelbiss and any third party Divelbiss further warrants that for a period of 90 days from the date this Agreement is accepted by Licensee the EZ LADDER Toolkit will perform substantially in accordance with the accompanying documentation provided by Divelbiss
201. s CV 0 LD Boolean Input Load Counter Value sets CV PV PV Integer Input Maximum Counter Value Outputs QU Boolean Output Count up reached true when CV PV QD Boolean Output Zero reached true when CV 0 CV Integer Output Current Counter Value Description The CTUD function is programmable up down counter With reset R not active a true on input CU will incre ment the current CV count by one while a true on input CD will cause the current count CV to decrement by one When the CV PV the output QU will be true When the CV 0 the output QD will be true A true on the reset R will cause CV 0 QU to go false and QD to go true A true on the load LD will cause CV PV QU to go true and QD to go false The reset R is dominant and takes priority over all inputs The counter inputs trigger on a false to true transition on CU or CD Example Circuit Inputi CTUDI Qutputi Input Output Input3 Input4 Pv CV Current Timing Diagram Related Functions CTD CTU EZ LADDER User s Manual 20 20 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects DIRECT COIL Normally De engerized Symbol Input o A Outputs None Description The DIRECT COIL is a boolean representation of an internal variable Control relay or an actual hardware real world output Its normal state is false or normally de energized If there is power flow
202. s and their format Jod Signed Integer Jo X Upper Case Hexidecimal ou Unsigned Integer of Real or Float Variable X Lower Case Hexidecimal Xxx Xx are hex characters Prints xx character OTHER SPECIAL CHARACTERS FORMATS Print Use Print Use 090 OFF ON O Boolean or 1 Jod FALSE TRUE Oo T To clear a VT 100 screen use X1B H x1b 2J To locate a fixed print on a VT100 screen use X1B 5 1HText This will locate and print Text at row 5 column 1 To locate an adjustable print on a VT100 screen using variables X1B d dHText This will locate the row then the column using the variables defined integers in the order they were defined The first integer input on the block becomes the row and the next becomes the column At that location point the Text is printed Examples Format Result Format Result OIL 9od OIL 25 OIL 04d OIL 0025 LS1 T LS1 TRUE LS1 O LS1 OFF TEMP 6 2f TEMP 234 12 TEMP 3 f TEMP 234 Example Circuit RIAL PRIMI Related Functions EZ LADDER User s Manual 20 82 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects SETDATE Symbol In uts SETDATE EN Boolean Function Enable Input function is disabled if EN is false diii MN Integer Input Month value 1 12 DY Integer Input Day value 1 31 YR Integer Input Year value 0 99 WD Integer Input Day of the Week value 1 7 Q Boolean Function Enable Output true when
203. ss Corporation Section 20 EZ LADDER Functions amp Objects J1939 SPN Con t Supported Suspect Parameter Numbers SPN PINE n RES 005 _ T eTe e E A S ee 52 JEngine intercooler Temperature ese s 48 1 c e 81 Particulate Trap Inlet Pressure 1 eso s o os o k ps 84 IWheel based Vehicle Speed ess 16 00091 o mph 86 cruise Control Set Speed 15 s 40 1 o mh 9 JAcoelerator PedallAP Postion ewas s s oa o 92 PercentLoad atCurrentspeed ewas s v 1 o 94 Fuel Delvery Pressure wean 8 o a o kaf pi o EnmeOiteet sean 8 vw oa o 100 Jengine Oil Pressure wea 8 a a o kaf pi 102 Boost Pressure wo s s 2 o waf pi 105 mtake Manifold 1 Temperature eso s v 1 c e 106 Presse 2 o waf pi 107 Ar Fiter Differential Pressure 1 8 32 oo o ka ps _ 109 Coolant Pressure wea 8 pas 2 o kaf pi mo Engine Coolant Temperature wea s o 1 c e Pitt oooianttever sea 8 se a o ka 12 Coolant Fitter Differential Pressure 1 eso 8 se os o ka ps NetBattery Curent wot 8 of 1 ms a ws atematorcurent wot amp se 3 o Ja a 1 Joluteh Pressure Serje o w o kaf pi 124 Transmission Oil Level e os o 126 fransmission Filter Differenti Pre
204. ssure 65072 s te 2 o pi 127 Transmission Oil Pressure esa s 2 vw o kaf pi 158 Battery Poteri y Semne as os o v v 167 WtematorPotentis Senj we v oo o v v 168 Electrical Potenta Senf s oo o v v 174 Fuel Temperature we 8 8 1 Jo e 1859 Fuel Rate 16 o oo o in cn 184 Jinstantaneous Fuel Economy 5266 16 16 000195 o mpg 185 average Fuel Economy ese 16 s2 000195 o mpg 188 Engine Speed At idle Pont 1 essi 16 o Poss o mm mm 190 engine Speed tts ve 2 Poss o mm pm SPNs continued on next page EZ LADDER User s Manual 20 44 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects J1939 SPN Con t cannes ore nts Unis 512 privers Demand Torque s s 1 m s 519 actual Engine toque Cotta s v 1 ms om s 5 fourentGear tas s 2 P s os _ 524 SelectedGear eue s o s 526 pctualGearRatio wt v s Foot o 528 Engine Speed At Point2 1 essi 16 2 0125 o pm 529 Engine Speed At Points 1 essi 16 ons o mm mm 530 JEngine Speed At Pointa 1 16 72 Poss o qm pm 531 Engine Speed At Ponts 1 essi oe 0125 o rpm pm _532 Engine Speed At High idle Pointe ess 16 120 0125 o mm mm
205. t interfere with the device register assignments While all controllers may broadcast and listen ideally one should be identified as the master for the network This master controller should be responsible for the network commands that start stop and reset the OptiCAN network communications These function blocks will be discussed later in this section The last pages of the OptiCAN Network section are sample forms that may be used to aid in planning the net work and assignments Hardware Requirements amp Recommendations For optimal functionality performance and noise immunity all the hardware reccomendations must be followed A failure to follow recommended hardware requirements could result in decreased reliability of the OptiCAN Network Please adhere to the following requirements and recommendations 1 The OptiCAN network cable should be of a twised pair with shield variety and cannot exceed 40 meters in total length Additional length or incorrect cable type may limit functionality or cause the network to fail Please adhere to the following specifications for cable requirements for all OptiCAN networks EZ LADDER User s Manual 16 2 Divelbiss Corporation Section 16 OptiCAN Network Twisted Pair Shielded Cable Specifications Requirements Parameter Symbol Minimum Nominal Maximum Unit Comments Impedance Z 108 120 132 Q Specific Resistance b 0 25 50 Specific Capacitance Cp 0 40 75 pF m Between Con
206. the encoder s documentation for this setting Mode C Master Slave 551 Port 581 Resolution bits ji 2 Cancel Related Functions None EZ LADDER User s Manual 20 33 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects GETDATE Symbol Inputs GETDATE EN Boolean Function Enable Input function is disabled if EN is false dic MN Outputs Q Boolean Function Enable Output true when function is enabled MN Integer Output Month value 1 12 DY Integer Output Day value 1 31 YR Integer Output Year value 0 99 n WD Integer Output Day of the Week value 1 7 Description The GETDATE function reads the current date from the hardware real time clock The values of the date are stored into the integer variables on the ouputs The enable EN must be true for the GETDATE function to be enabled Example Circuit CRI GETDATE CR2 Related Functions GETTIME SETDATE SETTIME SS a EZ LADDER User s Manual 20 34 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects GETTIME Inputs EN Outputs HR SC Description Symbol GETTIME Boolean Function Enable Input function is disabled if EN is false aiio Boolean Function Enable Output true when function is enabled Integer Output Hours value 0 23 SC Integer Output Minutes value 0 59 Integer Output Seconds value 0 59 The GETTIME function reads the current time
207. ths Agreement is expressly prohibited Whereas Divelbiss has developed certam modules ol computer software known as PLC ON A CHIP Keme and EZ LADDER Toolkit and Licensee wishes lo secure certain rights to use such software and Dxvelbiss is prepared to license such rights subject to the terms and conditions ol this greement therefore in coreiderabon of the mutual covenants conlaned herein and intending to be legally bound hereby Divelbiss and Licensee agree as follows 1 Licensed Solbware The PLC ON A CHIP and EZ LADDER Toolkit software whether in source code or object code lormat and all related documentation and revisione updates and modifications thereto collectively Licensed Software is Bcensed by Divelbiss to Licensee strictly subject to the terms ol this Agreement donot agree C agree Cancel 8 ee eee EZ LADDER User s Manual T 4 Divelbiss Corporation Section 1 Getting Started 2 Click the link provided to go to our website You will need the Activation key provided and your CID Code provided with your CD If you do not have your CID Code contact Divelbiss Customer Support Activation Activation Instructions Visit http divelbiss com products software E Ladder achivate or call 1 800 245 2327 ta activate this product Provide the Activation Key printed below and your user information and you will a provided with a Counter
208. tion Section 9 SSI Encoder SSI Encoder Input For targets that support SSI Encoders EZ LADDER provides a Graycode SSI interface function block For this function to work the hardware target must support the GC SSI block be installed in the target settings and be connected properly using an interface circuit if required from the target s SPI port to the encoder con version from SPI to differential See the target s hardware manual or datasheet for details on this interface Some targets such as PLC on a Chip require the installation of the SSI port before it can be used If required click on PROJECT SETTINGS Select the target and click PROPERTIES and the ADD button Select SSI from the list and click OK OK and ok to exit the Project Settings dialog box Save the project Figure 9 1 shows installing the SSI option using the PLC on a Chip target Project Settings Target Version Options Target 5 Enhanced Baby Bear 2 55K Liwelbiss Corporation Enhanced Baby Bear HEC 1000 Divelbiss Corporation Harsh Environment PLC Modbus 1 lt Divelbiss Corporation PCS PES A Divelbiss Corporation PCS PLC OM 4 CHIP Corporation PLC ON 4 CHIP solves IT 77 Divelbiss Corporation SolveslT Controller _ ss 0 00 l Code Type DCPN PLCHIP M2 2562 C Devices Add Remove Device Properties A Device D Pil Pulse Width Modulation RTE 051305 Dallas 1305 Real
209. tion Enable Output true when j1939 data is valid ERR Integer Output Error output See Error code table VAL Integer Real Value of actual SPN data in engineering units VAL Description When placing the 1939 SPN function the actual SPN Suspect Parameter Number must be selected See SPN Listing When enable is true the function is active The Q output is true only when the J1939 data for the specified SPN is valid false when not valid The ERR output is an integer number representing error codes that correspond to communication issues with the selected SPN and the J1939 bus The VAL output is the actual value of the parameter that was received on the selected SPN This value is in engineering units based on how the target is configured Example Circuit J1939 SPN CRI Error Codes The error codes for the J1939 SPN block are Code Number Title Description 1 SPN NOT FOUND The SPN number is not a currently supported number on the PLC on a Chip target controller 2 PGN NOT FOUND The PGN number is not a currently supported number on the PLC on a Chip target controller 3 VALUE NOT AVAILABLE The data value for the specified SPN was not available Possible cause may be the engine does not support this parameter 4 VALUE ERROR RESERVED The was an error retrieving the SPN value or the SPN is reserved Possible cause may be a sensor is malfunctioning and a value cannot be read EZ LADDER User s Manual 20 43 Divelbi
210. tionality The Serial Print feature provides that ability to serially print using the multi pupose port on the target The Serial Print functionality must be installed on the target before it may be used Divelbiss standard controllers based on PLC on a Chip Enhanced Baby Bear PCS XXX etc are configured based on the part number To configure select the correct part number and then check the box for Enable Serial Print in the Target s Properties dialog box When this Enable Serial Print box is checked the SERIAL PROPERTIES button becomes active Click SERIAL PROPERTIES and jump to step 8 to configure the serial port To install Serial Print in the target configuration for PLC on a Chip Use the menu select PROJECT SETTINGS The ProjectSettingsForm dialog will open Select the target Click the PROPERTIES button Click the ADD button From the provided ADD dialog Devices list select the Serial Print See Figure 12 1 Ez Target Version Options Target Mame Description Enhanced Baby Bear 128K Divelbiss Corporation Enhanced Baby Bear i Enhant nn dio TOES CAMERA g ada TONS a H LI Filler x PES 4l 5 2 PLE DCPN PLCHIP M2 2560X Devices Device Name Description Add Device Name Description Pw Pulse Width Modulation 051305 Dallas 1305 Real Time Clock SPI Slawe SPI Slave 551 551 Bus Serial Print Serial Print variable Mame
211. to connect to the target controller If connected to the con troller the OptiCAN Configuration Tool will disconnect EZ LADDER from the controller when it opens When the Optican Configuration tool connects it will send the Stop Command for the network automatically The network will have to be restarted for proper operation EZ LADDER User s Manual 16 13 Divelbiss Corporation Section 16 OptiCAN Network As shown in Figure 16 12 there are two devices on the connected OptiCAN network The tool shows the NODE ID Type and Serial Number These two devices have already been configured as they have Node ID s assigned When configuring a non controller device for the first time the device will display with a Node ID of 255 The 255 designation is reserved for devices that have not been configured See Figure 16 13 For multiple new devices they will all be assigned the same 255 Node ID The controller can differentiate between devices that have not been configured using the Serial Number The serial number is programmed at the factory and cannot change Please note only non controller device Node IDs may be changed using this tool Controller Node IDs are only changeable in the actual target nodes ladder program Connection Reports Help Made ID Type Serial Number 4 1000 Harsh Environment Controller 240004 255 1100 Harsh Environment Digital 10 OY 240006 Configure Made Connected Figur
212. twork Enter the node identification number of the device you are broadcasting to in the Node ID box If left blank the broadcast will be global to all nodes Enter the register number on the remote device the broadcast should be sent to in the Register Number box From the Broadcast Trigger drop down menu select the broadcast trig ger for this variable None Specified Interval Change of State or Specified Interval and Change of State Do not use the IN checkbox at this time See Figure 16 6 Edit Address Register Prefie CAN Made ID 1 5 Register Number 5 Broadcast Trigger MEETA EE Address Register CAN_OUT 1 a a mm Figure 16 6 Click ok to save the variable information This variable will now broadcast as configured over the OptiCAN network Receiving Data on a Controller from another Device To retrieve data from a network node is configured using variables To receive click the dl Insert Variable button and click ADD to add a new variable or click the Edit Variable button Edit select a variable and click EDIT to edit the variable The Add Variable or Mara Edit Variable dialog box will open See Figure 16 3 As anv other variable the variable NAME must be entered if a new variable is being added The DESCRIPTION is an optional field to give a description of the variable for reference only The VARIABLE TYPE must be set as with any other variable If the variable it to be retentive the
213. ual To lt Not Equal To lt gt Equal To EEPROM Read EEPROM READ EEPROM Write EEPROM WRITE Greater Than gt Greater Than Equal To gt Absolute Value ABS Addition ADD Bitwise AND AND Average AVG Bit Pack BIT PACK Bit Unpack BIT UNPACK Convert to Boolean BOOLEAN Compare CMP Count Down CTD Count Up CTU Count Up Down CTUD Division DIV Drum Sequencer DRUM SEQ Falling Edge Detect F TRIG Hardware Counter CNTRTMR High Speed Timer HIGH SPD TMR Hysteresis HYSTER Convert to Integer INTEGER Hardware Counter EEPROM Storage Latching Coil LATCH Limit LIMIT Moving Average MAVG Maximum MAX Minimum MIN Modulo MOD Multiplication MULT Bitwise NOT NOT Bitwise OR OR Rising Edge Detect R_TRIG Convert to Real REAL Rotate Left ROL Rotate Right ROR Reset Set Reset Dominant RS Select SEL Shift Left SHL Shift Right SHR Set Reset Set Dominant SR Subtraction SUB Convert to Timer TIMER Time Delay Off TOF Time Delay On TON Pulse Timer TP Unlatching Coil UNLATCH Bitwise XOR XOR EZ LADDER User s Manual 17 12 Divelbiss Corporation Section 17 Target Features amp Functions Lists ENHANCED BABY BEAR ICM EBB 300 The supported features include all features that are supported individually Using certain features may limit availability of other features SUPPORTED FEATURES Retentive Vari
214. upported features include all features that are supported individually Using certain features may limit availability of other features SUPPORTED FEATURES Analog Inputs 8 Channels Hardware Counter Retentive Variables HDIO Bus Keypad Support OptiCAN Networking LCD Display Support PWM Outputs SPI Slave Synchronous Serial Interface SSI Serial Printing Modbus Slave 41939 Communications EEPROM Storage SUPPORTED FUNCTIONS Less Than lt Less Than Equal To lt Not Equal To lt gt Equal To EEPROM Read EEPROM_READ EEPROM Write EEPROM_WRITE Greater Than gt Greater Than Equal To gt Grey Scale Encoder GC SSI Absolute Value ABS Addition ADD Bitwise AND AND Average AVG Bit Pack BIT_PACK Bit Unpack BIT UNPACK Convert to Boolean BOOLEAN Compare CMP Hardware Counter CNTRTMR Count Down CTD Count Up CTU Count Up Down CTUD Division DIV Drum Sequencer DRUM SEQ Falling Edge Detect F_TRIG High Speed Timer HIGH SPD TMR Hysteresis HYSTER Convert to Integer INTEGER J1939 Receive 1939 SPN Keypad KEYPAD Latching Coil LATCH LCD Clear LCD CLEAR LCD Print LCD PRINT Limit LIMIT Moving Average MAVG Maximum MAX Minimum MIN Modulo MOD Multiplication MULT OptiCAN Node Status OPTICAN NODESTATUS OptiCAN Transmit Message OPTICAN TXNETMSG Bitwise NOT NOT Bitwise OR OR Pulse With Modulation PWM PWM Frequence PWM FREQ Risin
215. ut is equal to the smallest input PI Qutputs Q Boolean Function Enable Output true when function is enabled O Integer Real Output Equal to the smallest Px input value i Description The MIN function outputs the smallest of the Px input values The number of inputs is specified when the object is placed The enable EN must be true for the MIN function to be enabled Example Circuit Inputi Number Number2 Related Functions MAX EZ LADDER User s Manual 20 61 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects MOD Symbol Inputs oe EN Boolean Function Enable Input function is disabled if EN is false EN 0 P1 Integer Input Dividend to be divided P2 Integer Input Divisor to divide by Pl oO Outputs Q Boolean Function Enable Output true when function is enabled O Integer Output Modulo remainder of P1 P2 math division re Description The MOD function calculates the modulo remainder of the division using the inputs P1 and P2 The P2 number should be greater than zero zero or less than zero will cause the function to return a 1 for the output The enable EN must be true for the MIN function to be enabled Input Number Number Example Circuit Related Functions DIV EZ LADDER User s Manual 20 62 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects MULT Symbol Inputs MULT EN Boolean Function Enable Input function is disa
216. utput is bitwise OR of inputs PI 0 Outputs Q Boolean Function Enable Output true when function is enabled O Integer Output Bitwise OR of P1 P2 Inputs x Description The OR function provides a bitwise OR function of the P1 and P2 inputs The enable EN must be true for the OR function to be enabled The Q output is true when the OR function is enabled Example Circuit Related Functions AND XOR NOT EZ LADDER User s Manual 20 69 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects PID Symbol Inputs 2 EN Boolean Function Enable Input function is disabled if EN is false SP Real Input Setpoint the actual control value that is required to be met PV Real Input Process Variable actual input to be controlled KP Real Input Proportional Gain Input KI Real Input Integral Gain Input KD Real Input Derivative Gain Input IO Real Input Initial Output Value that PID output is initialized to Outputs Q Boolean Function Enable Output true when function is enabled CO Real Output Control Output the calculated output of the PID function ER Real Output Error the calculated error of the PID function Description The PID function provides an easy to use PID control algorithym Specific PID information is required when the function is placed see below as well as the PID inputs see above The Q is true when the function is enabled The CO Control Ouput is the output calculated by the PID new c
217. xample Circuit Related Functions EXP SQRT LN MOD LOG EZ LADDER User s Manual 20 29 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects F TRIG Symbol Inputs F TRI I CLK Boolean Function Enable Input detects falling edge of CLK Outputs Q Boolean Output Pulsed Output true for one scan when CLK detects a falling edge Description The F TRIG is a function that may be used to trigger another function on the falling edge of a transition When the CLK detects a true to false transition the output Q is energized for one scan of the program only Example Circuit Inputl F THIGI CTO Outputl Input Timing Diagram Program Scan Time Related Functions R TRIG EZ LADDER User s Manual 20 30 Divelbiss Corporation Section 20 EZ LADDER Functions amp Objects FLOOR Symbol EN Boolean Function Enable Input function is disabled if EN is false EN 0 P1 Real Input Output is rounded down result of this input number Pl Outputs Q Boolean Function Enable Output true when function is enabled O Real Output Rounded down result of input Description The FLOOR function provides a rouned down output of P1 input The output O is the is the rounded down number The enable EN must be true for the FLOOR function to be enabled Input FLOOH InputNum f Output Example Circuit Related Functions CEIL EZ LADDER User s Manual 20 31 Divelbiss Corporation Section 20 EZ LA
Download Pdf Manuals
Related Search
Related Contents
Alcatel OneTouch ONE TOUCH 361 Owner's Manual Rexel Auto Plus Shredder Manual 331706 Pruner Attachment Euro.qxd Skil 9350-01-RT Use and Care Manual Apostila - Análise Instrumental Aplicada Toshiba Satellite S855-S5377N Topcom WBR 7011 B User's Manual MOEN 3867P Installation Guide MP-20 MI - ScanSource CDC Brasil Copyright © All rights reserved.
Failed to retrieve file