Home

EMBEDDED PLC BL2500 User's Manual

image

Contents

1. On line modifications This feature enables the user to modify the application while the process is running Uploading application stored in the target 1 3 ABOUT THIS MANUAL This manual provides instructions for installing testing configuring and interconnecting the Z World SBC BL2500 running the EMBEDDED PLC Firmware Kernel Instructions are also provided for using the ISaGRAF Workbench This User s Manual is divided into the following chapters OEM Technology Solutions This chapter provides and overview of the EMBEDDED PLC and information about this publication such as conventions used and reference documents Chapter 2 Getting Started Explains how to install the different EMBEDDED PLC products and run a sample application Chapter 3 Running Sample Applications Provides instructions how to run the different types of sample applications and also how to create a PLC application using the ISaGRAF Workbench Chapter 4 Modbus Protocol Describes in detail how to configure the Modbus slave and master protocols supported by the EMBEDDED PLC target Page 2 EMBEDDED PLC BL2500 User s Manual Introduction e Chapter 5 Hardware Reference Provides a detailed description of the I Os and communication ports present in the SBC BL2500 and how to configure them in order to work with EMBEDDED PLC e Chapter 6 Software Reference Provides an overview of the ISaGRAF Workbench functionalities and detailed description of the ISaGR
2. TCP IP dE Read Completed Read Status e LP Fe LY Write Completed Write Status A n y a TagName Station VO Address Action Ed 1 CmL 10 20 5 84 502 1 Read Ey 10 20 5 84 502 1 Read Screen ti 10 20 5 84 502 1 Read H Screen 7 10 20 5 84 502 1 Read Screen e 10 20 5 84 502 1 Read Screen 8 10 20 5 84 502 1 Read Write gt Screen gt vt 10 20 5 84 502 1 Read Screen iur gt x e Ei um 8E c x Name value alit Continuous a SwLeft No fr NDB 1 4DB2XDB3 DEI Bi Ir os Ret 7 ET Align vertical center of selected objects Engineering Runtime EE NUM x 41 Y 6 You can quickly add the Modbus driver on the Workspace define its operational parameters and define the I O variables tags that will be exchanged between the EMBEDDED PLC and the IWS application OEM Technology Solutions Page 78 EMBEDDED PLC BL2500 User s Manual Index INDEX link Setup eei tdci 17 B software license eem 8 SDpolLight annees 13 17 BL2500 A 48 ODE CA e EO EE eor deos 1 D A converter cccccccccccccccecccccccaeaeueceneneass 49 M digital IDEES ss SR DS IE Ee EE 47 digital OUIDUIS utc cta sosta edt 48 Modbus Eth rnet Do tuvimos 91 CONMOUANON sir 66 Main features c ccecececececececccacceceacacaeaeass 1 DINOU S oner A cue tee E ee 47 N E network configuration ee ee ee 11 EMBEDDED PLC R Application Kit contents 3 Bo
3. EMBEDD Z WORLD SINGLE BOARD COMPUTER BL2500 EMBEDDED PLC USER S MANUAL TURNING YOUR PRODUCT VISION l WWW TECHNOLOGY SOLUTIONS SYSTEM ENGINEERS SOFTWARE ENGINEERS ELECTRONICS ENGINEERS 0 Y Research Specify Design Develop Validate Support Custom Product Manufacture Configuration Warranty COPYRIGHT EMBEDDED PLC BL2500 User s Manual Part Number TD 0002 5 2006 OEM Technology Solutions Pty Ltd All rights reserved worldwide This document is the property of OEM Technology Solutions Pty Ltd and may not be copied used or disclosed in whole or in part except with the prior written permission of OEM Technology Solutions Pty Ltd or if it has been furnished under contract with another party as specified in that contract The copyright and the foregoing restriction on copying use and disclosure extend to all media in which this information may be embodied No liability is accepted for errors or omissions in this document The information contained within this document is subject to change without notice TRADEMARKS EMBEDDED PLC is a registered trademark of OEM Technology Solutions Pty Ltd Microsoft Windows Windows XP Windows 2000 and Windows NT are registered trademarks of Microsoft Corporation in the United States and or other countries ISaGRAF is a registered trademark of ICS Triplex ISaGRAF Inc Rabbit and Rabbit 3000 are registered trademarks of Rabbit Semiconductor RabbitNet is a trad
4. e Wire cutters and wire insulation stripper e Crimp tool pliers may be used but a crimp tool provides a better crimp with a stronger force Follow these steps to build your wire harness 1 Prepare a few lengths of wire about 30 cm 12 long The wires should have different colours of insulation to facilitate identifying the connections Crimp 1 Crimp wire insulation Trim about 2 3 mm 0 1 of insulation from your wire Position the wire in the crimp terminal as shown in the figure Use a crimp tool or pliers to first crimp the bare wire then the insulation as shown in figure 5 Insert the crimp terminals with wires into the friction da das lock connector with the tab on the crimp terminal facing ORE connector the opening on the side of the friction lock connector Insert the crimp terminal until the tab snaps into place Insert with tab facing in the side opening side opening 600505050501 a or Repeat these steps until all the wires and crimp terminals have been assembled sige ODD DULL opening 5 Note On 10 pin friction lock connectors insert a plug into the hole indicated in last figure to polarize your connector to help prevent offsetting the connector by one pin when you attach it to your BL2500 Polarizing plugs are not included in EMBEDDED PLC Application Kit OEM Technology Solutions Page 18 EMBEDDED PLC BL2500 User s Manual Running Sample Applications 3 3 2 Downloading
5. 2 9 LICENSING THE ISAGRAP WORKBENCH io cocoa sia 8 2 3 1 Adding the SoON Ware in ada 9 2 3 2 Adding a hardware license optional sess 9 24 BL2500 CONNECTONS coa do lado lara cdi s 10 2 4 1 Connect a Power Supply oocccccocccccocnnocccnccocnconoconononnnnnnnnonannnonannonannnnnnnnononnnenananenos 10 2 4 2 Connect an Ethernet Cable occcccccnccccnnccccnncoccnoconononanononaconnnnnnononnnconnnonananonos 10 2 4 3 Connect an RS232 Cable optional ooooccococonncccconcnconononnononcnnnnnaronconnnnnononons 12 2 5 RUNNINGASAMPLE APPLIEAHON Ek Se ecce ee Ge N abu ac Ve ee oe es a ate esee iced 12 26 WHERE DO EOEROMTFERE iaa dido 14 3 RUNNING SAMPLE APPLICATIONS ees ee ee see Rea EER RR ee nennen EER RNEER RR EER ER RR Re EE RR RNEER ER RR EER RR RR Ee RR Re 15 3 1 RUNNING APPLICATIONS IN SIMULATION MODE se ese ee ee ee ee ee ee ee ee ee ee ee ee ee 15 3 2 RUNNING APPLICATIONS THAT USE INTERNAL VARIABLES ONLY 17 3 3 RUNNING APPLICATIONS THAT USE BL2500 INPUTS AND OUTPUTS 18 3 3 1 Creating V O collectors e Ee Ee De EE GEE EE ED Ge atk 18 3 3 2 Downloading and running the ISaGRAF application ee ee ee Ee Re ee 19 34 CREATINGA NEW PEC APPLICATION GE doin et ee ee Mee ee oe Ge ee Ge OE Ge ge bn n Ge ee ie 20 3 4 1 Using Function Blocks Diagrams ooccccocncoccncccnccocnnocnconcncnnnncnncnn
6. This language is mainly used to implement complex procedure that cannot be easily expressed with graphical languages IF THEN ELSE FOR WHILE etc 6 1 5 5 Instruction List Editor Instruction list is a low level language similar to the simple textual PLC languages 6 1 6 Flow Chart Editor In addition to the five IEC 61131 3 languages ISaGRAF implements another graphical language Flow Chart Flow Chart is a decision diagram which can also be used to describe sequential operations 6 1 7 Document Generator ISaGRAF features a self documentation capability that can automatically generate the project s most current project description project architecture history of modifications I O wiring lists dictionaries and cross references 6 1 8 Simulation Without any target hardware platform the programmer can validate the complete application in the office With ISaGRAF s powerful simulator on the workbench the user can perform structural and functional tests of each module separately or on the global application The simulator makes it easy to trace the program execution and to see the status of any internal variable The VO hardware can be fully simulated and internal status and variables manual forced by the user OEM Technology Solutions Page 54 EMBEDDED PLC BL2500 User s Manual Software Reference During simulation editors can be opened in debug mode to see how programs are executed 5 Note Not all C functions and C f
7. ai 3x nad amp remlnpRegl5 Le 8 5 2 reminpReg06 remlnpReg07 ES reminpReg08 Le When using input or holding registers there is an extra parameter which defines the format of the data value S for 16 bit or L for 32 bit If the variable connected to the channel is integer the value will be treated as integer If the attribute of the variable connected to the channel is Real the value will be treated as floating point If this project is compiled and downloaded to the target the Boolean output variables remCoil01 to remCoil16 are used to write Boolean values to the Coils in the slave The Analogue input variables hold the values of the Input Registers in the slave OEM Technology Solutions Page 43 EMBEDDED PLC BL2500 User s Manual Modbus Protocol 4 2 2 2 Modbus Master communicating to two slaves via RS485 to Ethernet converter EMBEDDED PLC Target Modbus Master TCP IP Addr 192 168 1 100 Modbus TCP Modbus Slave RS485 Slave Address 200 RS485 to Ethernet Converter Modbus Slave RS485 Slave Address 1 IP Address 192 168 1 101 8 Holding Registers 4x 16 bit Integers Start Address 1 16 Discrete Inputs 1x Start Address 100 RS485 Figure 6 Example 2 Modbus Master TCP to two Modbus Slaves over Serial There is an EMBEDDED PLC target acting as the Modbus Master over TCP communicating to two Modbus slaves over RS485 via an RS485 to Ethernet converter One
8. Gl ad By 9 Double click on Transition 1 and write the expression SW1 XOR SW2 on the Transition GT1 ST LD editor that is displayed OEM Technology Solutions Page 31 EMBEDDED PLC BL2500 User s Manual Running Sample Applications iBl x File Edit Tools Options Help 10 Double click on Transition 2 and write the expression not SW1 XOR SW2 on the Transition GT2 ST LD editor that is displayed 11 Double click on Step 2 and write the action LED1 S on the Step GS2 that is displayed Add the action LED2 R on Step 3 12 Save the program by selecting File menu gt Save Press OK button on the Update diary window Close the SFCtest1 Program window 13 Follow Steps 17 to 25 in 3 4 1 to compile the application and download it to the Target PLC 14 Double click on SFCtest1 program The SFCTEST1 SFC Program window is displayed The step currently active is shown with a black box Short circuit digital input INOO to change the activity to Step 2 which set the LED1 DS3 LED output to TRUE ES ISAGRAF B25TEST5 SFCTEST1 SFC program slaf x File Edit Options Help mid pos 0 0 15 To stop the monitoring of the PLC application close the Debugger window The programs and dictionary windows in debug mode will be closed OEM Technology Solutions Page 32 EMBEDDED PLC BL2500 User s Manual Running Sample Applications 3 4 6 Using Flow Chart 1 10 Open the ISaGRAF Project Managemen
9. gt Programs gt ISaGRAF 3 5 gt Projects 3 ISAGRAF Project Management Of x File Edit Project Tools Options Help Dem BE TYE Samples 2 b25qld Demo with Quick LD programming b25rota Rotation of 2 on board leds and 2 digital outputs gp b25scope Signal generation BL2500 Analog Out and SpotLight mm blinkseq Same implementation with various languages mp bottlef Flow Chart Simulation of bottle production Complete SFC demo mn rfsample Sample described in user s quide rfsfc Demonstrates SFC actions in SFC rfstack Demonstrates STACKINT function block sorting Flow Chart Sorting of tokens depending on their size and color Reference RfDemo E Author OEM Technology Solutions El Date of creation 9 August 2005 Version number 3 0239H 1 14 Description Workbench demo This application shows a complete example of SFC programming with a complex hierarchy of SFC programs It uses the virtual boards for SIMULATION only How to use this application with the debugger The first input button is the start stop command Other buttons are designed to select one between three animations lead is a single sequential display of the outputs zj OEM Technology Solutions Page 15 EMBEDDED PLC BL2500 User s Manual Running Sample Applications 2 Double click on the sample application for example rfdemo to open the Programs Manager window I5aGR AF RFDEMO Programs al xj File Make Project
10. mm dd hh minute ss dOIWeek Not available for simulation OEM Technology Solutions Page 62 EMBEDDED PLC BL2500 User s Manual Loading or Upgrading the Firmware Kernel 7 LOADING OR UPGRADING THE FIRMWARE KERNEL 7 1 INTRODUCTION The EMBEDDED PLC Utility is used to load the EMBEDDED PLC Firmware Kernel to the Rabbit based Target such as the SBC BL2500 The Firmware Kernel once loaded into the Target requires a license key to run The EMBEDDED PLC Utility does not check for an existing license key before loading the Kernel Thus a new license key is required after a Kernel is loaded to a Target Upgrading the EMBEDDED PLC Firmware Kernel means also loading the newer version of the Firmware kernel file into the Target Therefore after loading a newer version of the Firmware Kernel file into a licensed Target PLC a new license key will also be required Y Caution Loading of the Firmware Kernel file is NOT needed if you purchased the EMBEDDED PLC Application Kit as the BL2500 comes with a pre loaded and licensed Firmware Kernel If you re load the Firmware Kernel to a pre loaded Target the license information will be lost and a new license key will be required To verify if your BL2500 have the EMBEDDED PLC Kernel running power up the BL2500 and if after 10 seconds the DS2 red LED turns off and DS1 starts flashing then the Kernel is loaded and licensed This chapter describes how to install the EMBEDDED PLC Utility loa
11. 61131 3 standard a specification of five PLC programming languages that can be freely mixed to define automation and control procedures In August 1996 ISaGRAF version 3 2 received the certificate of PLC open compliance class of IEC 61131 3 base level IL 6 1 5 1 Sequential Function Chart Editor SFC divides the process cycle into a number of well defined steps separated by transitions SFC is the core language of the IEC 61131 3 standard The other languages are used to describe the actions performed within the steps and the logical conditions for the transitions Parallel processing can easily be described using SFC 6 1 5 2 Function Block Diagram Editor The FBD is a graphical language that allows the user to build complex procedures by taking existing function blocks from the ISaGRAF library and wiring them together on the screen ISaGRAF includes a library with more than 60 blocks ready to use Users can enlarge this library by writing functions and function blocks in LD FBD ST IL or C 6 1 5 3 Ladder Diagram Editor The ladder diagram is one of the most familiar methods of representing logical equations and simple actions The ISaGRAF ladder diagram editor offers the best compromises between high level graphic capabilities and easy to use keyboard driven programming 6 1 5 4 Structured Text Editor Structured text is a high level structured language with a syntax similar to Pascal but more intuitive to the automation engineer
12. B25TEST1 Programs window 6 On the B25TEST1 Programs window select File menu gt Dictionary to open the Dictionary window OEM Technology Solutions Page 20 EMBEDDED PLC BL2500 User s Manual Running Sample Applications Y ISaGRAF B25TEST1 Global booleans B x File Edit Tools Options Help 7 Select Tools menu gt Quick declaration Enter Numbering from 1 to 2 Symbol name SW and Attributes Input as shown in figure below Press OK button Quick declaration X pido Hom 1 Too Cancel Symbol Attributes Digits C Internal C Constant C Dutput Other Retain Format Integer t Real Length HA 8 On the Dictionary window the SW1 to SW2 variables are listed 2 ISaGRAF B25TEST1 Global booleans E B x Fille Edit Tools Options Help Name Attrib A dar Comment MESA 0000 EMT M0000 input false true 9 Onthe B25TEST1 Dictionary double click on the empty row Enter the name LED1 and select it as output 10 On the Dictionary window select Integers Reals tab Press Insert objects button or select Edit menu New Enter the following information on the Integer Real Variable window Name ADO Comment Analog Input ADO Unit V Attributes Input and Format Real Press Store button Repeat this step to create the analog output variable Name DA1 Comment Analog Output DA1 Unit V Attributes Output and Format Real Press
13. BL2500 Analog Input board Double click on Channel 1 and connect the ADO variable Press Close button Double click on Slot 3 and select bl25ao BL2500 Analog Output board Double click on Channel 1 and connect the DA1 variable Press Close button Select File menu Save or press Save button on the toolbar to save the VO connection Close the I O connection window Before downloading the PLC application to the Target PLC the application needs to be compiled On the B25TEST1 Programs window select Make menu gt Compiler Options to check that RABBIT TIC code for Rabbit based controllers is selected Press OK button If RABBIT target is not selected click on RABBIT target and press Select button Alternatively you can double click on RABBIT target Compiler options x Targets gt SIMULATE Workbench Simulator Select gt RABBIT TIC code for Rabbit based controllers v Use embedded SFC engine Upload Optimizer Run two optimizer passes Evaluate constant expressions Default Suppress unused labels Optimize variable copying Optimize expressions Suppress unused code Optimize arithmetic operations OK Optimize boolean operations Build binary decision diagrams BDDs Cancel OEM Technology Solutions Page 23 EMBEDDED PLC BL2500 User s Manual Running Sample Applications 23 Select Make menu gt Make application to compile the PLC application The Code generat
14. Do not use the DIAG connector which is used for licensing and configuring only Connect the other end of the programming cable to a COM port on your PC Make a note of the port to which you connect the cable as the EMBEDDED PLC Utility will need to have this parameter configured Note that COM1 on the PC is the default COM port used by the EMBEDDED PLC Utility OEM Technology Solutions Page 63 EMBEDDED PLC BL2500 User s Manual Loading or Upgrading the Firmware Kernel pi fe Mi po 2 looomllooosl L3 lm Colored eS El Tom PC COM port N Color Programming Cable shrink wrap E J O lb oocoooos Figure 15 Programming Cable Connection 2 Connect the power supply to the BL2500 following the instructions in Section 2 4 1 7 1 3 Loading and licensing the Firmware Kernel The EMBEDDED PLC BL2500 Firmware Kernel file BL2500C V1 05 3 023111 bin is located in the BL2500C BSP V1 05 9 0003 007 Kernels directory of the CD ROM or in the ZIP file if downloaded from the website It is recommended to copy this file from the CD ROM to a local PC folder referred in this procedure as lt EMBEDDED PLC Kernel Dir gt Use the following procedure to load the EMBEDDED PLC Firmware Kernel to the Target 1 Open the EMBEDDED PLC Utility and select Setup gt Communications from the main menu bar Select the serial COM port where the programming cable is connected Check the Use USB to Serial converter c
15. Interface Configuration I O board mbtcpcfg This board must be defined in the I O connection list before the data groups are declared The following parameters are setup through this VO board e Slave ipAddr Data type String IP Address of the Modbus TCP slave or the IP address of the serial to Ethernet converter default 192 168 1 100 e slave port Data type Integer This is a read only parameter and corresponds to the TCP port used by Modbus which is equal to 502 e polling period Data type Long The Modbus master request every polling period in milliseconds a reading of all the data In case of an output data group coils or holding registers it uses this information for data quality e timeout Data type Long Connection timeout in milliseconds default 1000 e retries Data type Integer Number of retries to establish connection before setting the status of the interface as BAD default 2 Once the Interface Configuration board is connected in one available slot the Data Groups I O complex equipments can be connected These equipments are used to configure and exchange the data available OEM Technology Solutions Page 38 EMBEDDED PLC BL2500 User s Manual Modbus Protocol in the Modbus slave The following Data Groups are available through ISaGRAF VO complex equipments e mtcpNai Read N consecutive input registers 3x where N can be 8 or 16 e mtcpNdi Read N consecutive discrete inputs 1x where N can be
16. Tools Debug Options Help SN DES xxi mm age Sequential FAA main control time control z Drive select process EA Lead turn on leds En Flash odd even led flip flop EA Random random led lightning Sequential Gmain Sequential Function Chart ISaGRAF RFDEMO Debugger File Control Tools Options Help Prob Ae Ex sl od isaGRar RFDEMO Debug program File Tools Options Help File Project Tools Options Help He mH Sequential EE Gmain active E main control time control 15 83 Drive inactive select process Lead inactive turn on 8 leds ES Flash inactive odd even led flip flop E Random inactive random led lightning E Sequential Gmain Sequential Function Chart 4 The I O simulation window shows the I O boards used by the application Boards 0 to 4 Board O column 0 has 8 digital inputs Board 1 column 1 has 8 analog inputs Board 2 column 2 has 8 message strings outputs Board 3 column 3 has 8 digital outputs and Board 4 column 4 has 8 analog outputs On Board 0 column 0 click on Input 1 and Input 4 a message start and Lead are displayed in message outputs 4 and 5 respectively and Board 3 will show the LED outputs being turned ON in sequence On the Debug programs window the Drive and Lead programs change to active state Unset the digital input 4 and set any of the digital inputs 5 Flash or 6 Random To close the simulation of the applicat
17. application before downloading a new one You can also stop the application from the Debugger window menu File menu gt Stop application x RABBIT TIC code for Rabbit based controllers Den as 4 On Debugger window select File menu Download Select RABBIT TIC code for Rabbit based controllers on the Download window and press Download button A progress bar on the Debugger window will show the progress of the downloading process Once the downloading is completed the application runs immediately and the SpotLight window shown below is displayed ISAGRAF SORTING WAY GRAF SpotLight loj x File Edit Insert Options Help 80046 suerte aea xB dese oo Troubled If you experienced problems running this application such as an error message Cannot install communication or Cannot start download target not ready follow this checklist 1 3 Make sure that the TCP IP connection between the Target PLC and your PC is alive use ping command See Section 2 4 2 on how to configure TCP IP parameters If connection is alive repeat accurately the step by step instructions in this Section Remember to put correctly the Target Slave Number and the IP address of the Target PLC in the PC PLC link parameters window Step 2 If the Target PLC has already an application running stop it before downloading a new one If you still can not run this sample application go to Chapter 8 FAQ and Troublesh
18. are indicated using bold italicized text enclosed in lt and gt brackets for example run the lt driver name gt exe file indicates you must provide a driver name e Buttons menu options and keyboard key are indicated in bold e Text requiring special emphasis is in bold italic e Some information is segregated into Note and Caution boxes as follows gt Notes provide supplemental information related to the surrounding text usually the text just preceding the note gt Caution provides information necessary to prevent damage or problems 1 6 WINDOWS CONVENTIONS This manual uses the following Windows conventions e Dialog boxes or dialogs are windows that allow you to enter information e Text boxes or fields are areas in dialogs where you can type in text OEM Technology Solutions Page 3 EMBEDDED PLC BL2500 User s Manual Introduction e Radio buttons are white circles in which a black dot appears or disappears when you click on the button Typically the black dot indicates that the option or function is enabled active The absence of a black dot indicates the option or function is disabled inactive e Check boxes are white squares in which a check appears or disappears when you click on it with the cursor Typically the check indicates that the option or function is enabled active The absence of a check indicates the option or function is disabled inactive e Buttons are icons in boxes that appear pres
19. be open Workbench ERROR It also supports communication with a Modbus slave TCP IP gateway on which multiple serial slaves are connected through one IP address In that case the slave address parameter is used to address the different slaves in the chain Configuration cfgstat Configuration and Status of this Modbus data group Nb Channels 1 Data quality Possible values are 0 Data quality is BAD 1 Data quality is GOOD Parameters slave ipAddr string IP address defined in the Modbus Master TCP Interface Configuration VO Board Default 192 168 1 100 slave address integer Modbus slave address used in multiple slaves configuration Default 1 do 0x Coils Modbus data type Ox Nb Channels 8 or 16 Parameters gt start address integer Modbus data start address Default 1 6 2 2 3 Modbus TCP Master Discrete Inputs Data Group Equipment Name mtcpadi or mtcp16di Description Modbus Master TCP 8 or 16 Discrete Inputs 1x Data Group This complex equipment is used to read 8 or 16 consecutive discrete inputs or digital inputs via the specified Modbus Master TCP Interface The Modbus Master TCP Interface Configuration I O board mbtcpcfg has to be defined before connecting this complex equipment The IP address defined in the cfgstat board of this complex equipment must be the same as the one defined in the Modbus Master TCP configuration board mbtcpcfg otherwise this complex equipment
20. have the following information available Hardware environment Target details BL2500 model Host PC details and a brief description of the physical I Os used Software environment Windows Operating System EMBEDDED PLC filenames used EMBEDDED PLC Kernel version You can obtain this information from the Target Configuration Window Module Version Kernel Version Kernel Description EMBEDDED PLC license information Description of the problem or error including specific text or error messages Steps to reproduce the problem if it is reproducible OEM Technology Solutions Page 73 EMBEDDED PLC BL2500 User s Manual FAQ and Troubleshooting This page is intentionally left blank OEM Technology Solutions Page 74 EMBEDDED PLC BL2500 User s Manual Specifications 9 SPECIFICATIONS 9 1 ELECTRICAL AND MECHANICAL SPECIFICATIONS RJ 45 jack extends Diameter of mounting 0 16 4 0 mm holes 0 12 3 mm past edge of board This mounting hole 3 50 y is located under the 2 62 88 9 0 63 OB RabbitCore module 64 0 16 0 14 0 A ines j B py N O E 2101010181018 Hi x Lir HELDER Y m a cuf LEE EIL X w il L mE I Tue OT 1 LI rn e n re J id Pal E LI ce a d mii OOOOOOOMN OO NIJO IM MOT LYOOVYOONOY OOYAE E HE e FEE HHH R1 tm E Em E O
21. in the I O connection tool Several Modbus TCP based devices can be connected to this interface The analogue integer input channel is used to read the status of the connection Possible values are 0 BAD QUALITY timeout or no connection 1 GOOD QUALITY Number of Channels 1 Parameters e slave ipAddr String IP Address of the Modbus TCP slave default 192 168 1 100 e slave port Integer Read only TCP port used by Modbus which is equal to 502 default 502 e polling period Long Polling period of the master in msec default 5000 e timeout Long TCP connection timeout in msec default 1000 e retries Integer Number of retries to establish connection before putting the status of the interface as BAD default 2 OEM Technology Solutions Page 57 EMBEDDED PLC BL2500 User s Manual Software Reference 6 2 2 2 Modbus TCP Master Coils Data Group Equipment Name mtcp8do or mtcp16do Description Modbus Master TCP 8 or 16 Coils 0x Data Group This complex equipment is used to write 8 or 16 consecutive coils or digital outputs via the specified Modbus Master TCP Interface The Modbus Master TCP Interface Configuration I O board mbtcpcfg has to be defined before connecting this complex equipment The IP address defined in the cfgstat board of this complex equipment must be the same as the one defined in the Modbus Master TCP configuration board mbtcpcfg otherwise this complex equipment will not
22. mA ef OE Ed Ji E 9959 Figure 1 Power Supply Connection 2 Plug the AC Adapter DS1 yellow and DS2 red LEDs indicate the Firmware Kernel status after the board has been powered up If after 10 seconds DS2 red is turned off and DS1 yellow starts blinking the Firmware Kernel is licensed and active If DS2 red remains turned on during more than 10 seconds it indicates that Kernel requires licensing If DS1 and DS2 are off after powered up it indicates that the board has no EMBEDDED PLC Firmware Kernel loaded In both cases contact your local distributor 2 4 2 Connect an Ethernet Cable The BL2500 that comes in the EMBEDDED PLC Application Kit has the Firmware Kernel loaded licensed and configured The default factory configuration is Modbus Slave Number 1 Use Modbus TCP IP Address 192 168 1 100 Netmask 255 0 0 0 Default gateway 192 168 1 1 OEM Technology Solutions Page 10 EMBEDDED PLC BL2500 User s Manual Getting Started If you want to change the default values go to section 7 1 4 for instructions how to change the configuration of the Target PLC The following instructions will guide you on how to connect the Target PLC to the Workbench using TCP IP There are two ways of connecting the Target PLC to your PC via Ethernet see Figure 2 e Using a crossover Ethernet cable provided in the EMBEDDED PLC Application Kit to connect directly the Target PLC to your PC or e lf your PC is currentl
23. points to license 32 if you purchased the EMBEDDED PLC Application Kit and press OK button 2 Enter the first set of Registration Keys and press Register button Setup Code will change to SET WDE 15 Enter the second set of Registration Keys and press Register button again In the Selected Components ISaGAAF 3 Software License Active VEZ Selected Components ISaGRAF 3 Software age License will be displayed as Active Press Close button to close the License Manager Remove Congratulations Your ISaGRAF Workbench is now licensed 5 Note If you want to purchase a hardware license or upgrade your current software license please contact OEM Technology Solutions sales oem net au for pricing information and payment options When you purchase a software license it is very important to include the following information in your Purchase Order e Setup Code User Code 1 and User Code 2 To obtain these codes open the ISaGRAF License Manager Start menu Programs ISaGRAF 3 5 gt Licensing On the Available Components select ISaGRAF 3 Software License and press Add button Select the desired number of VO points to license 128 256 or Unlimited and press OK button The Setup and User codes appear on the License Manager window If you press Proceed button a new e mail message window is displayed if you have an e mail client running such as Microsoft Outlook You can fill out the required information and send
24. the left button on the toolbar to insert a new rung new rung with one contact and one coil is created 8 Double click the rung comment cell to insert a comment such as Exclusive OR logic for switching on LED 9 Double click the contact on the rung and select SW1 for an input 10 With the SW1 contact selected press F3 Contact on the right button on the toolbar 11 Double click the new contact and select SW2 variable Click once on the Coil contact type button Yet to negate this contact 12 Select the Select button te on the toolbar Select both contacts on the rung by clicking on one contact and dragging the mouse over to the next contact before releasing the mouse button Press F4 Parallel contact button 3 to create two new contacts in parallel with the selected contacts 13 Repeat steps 9 and 11 except negate the SW1 contact with the Coil contact type button this time instead of the SW2 contact 14 Double click on the coil on the rung and select LED1 for an output 15 The LDtest1 program should now appear as follows i ISAGRAF B25TEST2 LDTEST1 Quick LD Program File Edit Tools Options Help Da 902 H Ed Bt aua Fb Fa ME FGE FO Fehi FTH FE FR He Exclusive OR XOR logic for switching on LED 1 S S2 LED1 HH N SYyl SYM2 HE 16 Save the program by selecting File menu Save Press OK button on the Update diary window Close the LDtest1 uic
25. 0 10 100BaseT 512K Flash 256K 512K SRAM 44 2 MHz clock speed Z World P N 101 0602 16 Digital Inputs 8 Digital Outputs 1 Analogue Input connected through ADO 10 bits resolution O 3 3 V 1 Analogue Output connected through DA1 10 bits resolution O 3 3 V Modbus RTU over TCP IP using static IP address slave or master Modbus RTU over RS232 using serial port E or RS485 using serial port D Baud rate 19200 9600 4800 2400 1200 or 600 configurable through EMBEDDED PLC Utility Parity None Data bits 8 Stop bits 1 Flow Control None Minimum polling period time is 1 cycle duration for Modbus TCP and 2 x cycle duration for Modbus RTU over RS232 RS485 Cycle duration corresponds to the time that kernel executes one cycle read inputs gt execute logic gt update outputs Digital Input scan time is approx 200 us Analogue Input scan time is approx 83 ms Digital Output update time is approx 30 us per output Analogue Output update time is approx 120 us Boolean instruction execution time is approx 30 us Program execution overhead is approx 100 us per program Maximum size of ISaGRAF application database is 50000 bytes Size of ISaGRAF real time database holds variables SFC engine data C function and function blocks data is 10000 bytes Free root memory on the BL2500 is approx 9000 bytes EMBEDDED PLC firmware kernel total code size is approx 260000 bytes
26. 01 49997 If the variable is of Real type it must be exchanged as 32 bit value therefore its address must be in the range of 35001 39997 internal or input attribute or 45001 49997 internal or output attribute 2 The second method of assigning network addresses to variables requires that you define the variables BEFORE assigning addresses This method allows you to assign several addresses before you link them to an ISaGRAF program On the Dictionary window select Tools menu gt Modbus SCADA Addressing Map The following window is displayed Modbus SCADA addressing map X File Edit Options Help Map Segment 00000 04095 SwLeft Switch left turns light anfott 00004 Sw Right Switch right turns light onfott 00003 EmLiaht Light command 00004 Many Main Power DOOON Ltomd Move Left user command j 00008 tema Move Right user command Variables not mapped Booleans Integers Reals Timers Messages Busy LIBDown busy shutter iz busy moving 3 Buzvon Busy relay In the Options menu you can select the displayed address format Hexadecimal or Decimal To assign the unmapped variables position the cursor in the desired address and then double click on the variable to assign To assign continuous network addresses to several variables click on the starting address in the Map segment section select the variables in the not mapped section using the SHIFT key and cli
27. 2 test to repeat continuously so if either of SW1 or SW2 change it can test again and change the LED1 output 14 The FCtest1 Flow Chart should now appear as follows ISaGRAF b25test fctest1 Flow Chart File Edit Tools Options Help d E RS E d Qd 8 l EL o 4 O2 b E 9 p Exclusive OR logic for switching on LED I2 SAM Sy O4 LED1 OFF O3 LED1 ON pos 587 52 NEIN 15 Save the program by selecting File menu Save Press OK button on the Update diary window Close the FCtest1 Flow Chart window 16 Follow Steps 17 to 25 in 3 4 1 to compile and download it to the Target PLC 17 Double click on FCtest1 program The FCTEST1 Flow Chart window is displayed Short circuit the digital input INOO SW1 will be FALSE the LED1 will be turned ON as well as the state of LED1 in the Programs window will change The PLC program implements a Boolean XOR operation on SW1 and SW2 with the result set on the LED1 18 To stop the monitoring of the PLC application close the Debugger window The programs and dictionary windows in debug mode will be closed The ISaGRAF User s Manual See 2 and the on line help of the ISaGRAF Workbench describes in detail all the Workbench functionalities editor simulation debugger etc including also a reference manual of the PLC programming languages IEC 61131 3 OEM Technology Solutions Page 34 EMBEDDED PLC BL2500 User s Manual Modbus Protocol 4 MODBUS PR
28. 2500 with 256K Flash Can use EMBEDDED PLC BL2500 The EMBEDDED PLC Firmware Kernel for BL2500 Version 1 05 was built specifically for the BL2500 with Rabbit core module RCM3200 10 100BaseT 512K Flash 256K 512K SRAM 44 2 MHz clock speed Z World P N 101 0602 If you have any special requirements regarding targets that EMBEDDED PLC supports visit OEM Technology website or contact sales directly via phone 61 2 99669424 or email sales oem net au Q9 What does the letter C after the BL2500 in the BSP filename stand for The C letter in the filename BL2500C BSP V1 05 9 0003 007 zip corresponds to the type of the BL2500 board supported by EMBEDDED PLC Thus the letter C corresponds to the BL2500 with Rabbit core module RCM3200 10 100BaseT 512K Flash 256K 512K SRAM 44 2 MHz clock speed At this moment only the BL2500 mentioned above is supported by EMBEDDED PLC Q10 Can I use the EMBEDDED PLC Utility to download binary files compiled with Dynamic C No The EMBEDDED PLC Utility works only with EMBEDDED PLC firmware kernels Use Rabbit Field Utility instead Q11 Can I use the Rabbit Field Utility to download the EMBEDDED PLC Firmware Kernel to the Target No If you do so when you tried to enter the run time license using the EMBEDDED PLC Utility the following message is displayed AAA xi ES Ilegal reference code Possibly the kernel was downloaded using another application Please use this utility bo download the
29. 3 1 KERNVER kernver versi Arguments versi MSG EMBEDDED PLC kernel version number minimum message length 8 Description Returns the kernel version number ST Equivalence result kernver Remarks Not available for simulation 6 2 3 2 RD TIME rd time Sel Q Arguments Sel INT format of the time and date in the output message Q Q MSG time date and day of the week depending of Sel value If Sel 0 Q format is YYYY MM DD If Sel 1 Q output format is HH MM SS If Sel 2 Q output format is the day of the week Description Gives the time date and the day of the week depending on the value of argument sel ST Equivalence tes ult se id eine TeL Remarks Not available for simulation OEM Technology Solutions Page 61 EMBEDDED PLC BL2500 User s Manual Software Reference 6 2 4 ISaGRAF C Function Blocks 6 2 4 1 SET_TIME Arguments Trigger yy mm dd hh minute ss DOFWEEK result Description BOO INT INT INT INT INT INT INT BOO set_time Trigger yy mm dd hh minute ss dOfWeek result if Rising edge sets the time and date of the BL2500 Year 1900 2050 Month 1 12 Day of month 1 31 Hour 0 23 Minute 0 59 Second 0 59 Day of the week 0 6 O means Sunday 1 if operation was successful O otherwise Set the time and date of the BL2500 Real Time Clock ST Equivalence result Remarks set Lime LELgg yy
30. 8 or 16 e mtcpNao Write N consecutive holding registers 4x where N can be 8 or 16 e mtcpNdo Write N consecutive coils 0x where N can be 8 or 16 Each VO complex equipment consists of a configuration board cfgstat and the data board The following parameters are common to all the I O complex equipments and are setup through the configuration board cfgstat e Slave ipAddr Data type String IP address defined in the Modbus Master TCP Interface Configuration VO Board Default 192 168 1 100 This value is used to link this data group to the main TCP interface and must be the same as defined in the TCP Interface Configuration board mbtcpcfg Multiple data groups can be linked to one TCP Interface board e Slave address Data type Integer Modbus slave address used in multiple slaves configuration Default 1 This parameter is meaningful only when a serial to Ethernet converter is used to connect multiple Modbus slaves over serial line The configuration board contains an input channel Channel 1 which returns the quality of the data GOOD or BAD The data board usually contains a parameter with the starting address of the data group It also contains the channels on which the ISaGRAF variables are connected to exchange the data values with the Modbus slave All writing operations coils and holding registers require variables with output attribute All reading operations discrete inputs and input registers require variables wit
31. AF library elements I O boards software configuration C functions and C function blocks available from the ISaGRAF Workbench e Chapter 7 Using EMBEDDED PLC Utility Detailed description of the EMBEDDED PLC Utility e Chapter 8 FAQ and Troubleshooting Describes the known issues with this release frequently asked questions and troubleshooting e Chapter 9 Specifications Describes the electrical mechanical and environmental specifications of the BL2500 e Chapter 10 About Indusoft A brief description of Indusoft Web Studio and how can be used in conjunction with EMBEDDED PLC 1 4 EMBEDDED PLC APPLICATION KIT The EMBEDDED PLC BL2500 Application Kit contains the hardware and software needed to use the SBC BL2500 with EMBEDDED PLC system It contains e BL2500 Single Board Computer with Ethernet capability and pre loaded with the EMBEDDED PLC Firmware Kernel e 1 2 mm programming cable e Ethernet crossover cable e EMBEDDED PLC BL2500 CD ROM with complete product documentation on disk e EMBEDDED PLC ISaGRAF V3 50 Workbench License Registration form e Getting Started instructions 1 5 TEXT CONVENTIONS This manual uses special formatting to help you quickly identify certain items as follows e Titles labels and new terms are indicated using italic text e File names messages and screen text are indicated using bold courier text for example C OEMTech Install exe e Variables and information you must provide
32. Cancel to close the Integer Real Variable window OEM Technology Solutions Page 21 EMBEDDED PLC BL2500 User s Manual Running Sample Applications x Comment Analog Input ADO Unit Conversion none y Attributes Format Ss C nteger standard y C Output Next mo Previous Extended 11 Save the current dictionary by selecting File menu gt Save Close the Dictionary window 12 On the B25TEST1 Programs window double click on FBtest1 program Press Insert variable button on the toolbar and click on the working area On the Select variable window select SW1 and press OK button SW1 variable box is drawn on the working area Place SW2 and LED1 variables following the same procedure 13 Select on the Function blocks combo box the exclusive OR 1 function block and click on the working area The exclusive OR 1 function block is displayed 14 Select button b on the toolbar and move SW1 and SW2 variables to the left of the function block also move the LED1 variable to the right of the function block 15 Click on Draw connection line button on the toolbar and press left mouse button on the SW1 variable and drag the line towards the function block A connection line will be drawn between SW1 and IN1 of the function block Repeat the same procedure to connect SW2 with IN2 of the function block and LED1 with Q of the function block connection lines are dragged always from left to righ
33. E i oto x o N D co z io H O To WO og Y y me Do aS m OO Dog aS 3 rm EN HET rss EE m I Fe o R E co I T N Oo ls the smal o O 3 8 B UUUUULUUUUU SHIT HR ip BH as C7 n zi H Ine di H LE TI Im Lk A pei E H 2 se TY E a GND DS z A Y 2 3 55 0 1 0 2 4 9 ep 5 1 100 4 0 54 14 EN id cli aal EHE EET NE A se mmm TT 1 te O Y om 3 94 Se 100 o Figure 16 BL2500 Dimensions OEM Technology Solutions Page 75 EMBEDDED PLC BL2500 User s Manual Specifications Table 4 BL2500 Electrical Mechanical and Environmental Specifications Microprocessor Rabbit 3000 44 2 MHz Ethernet Port 10 100 Base T Flash Memory 512K SRAM 512K program 256K data Backup Battery 3 V lithium coin type 1000 mA h supports RTC amp SRAM Digital VO 16 inputs 15 protected to 36 V DC 1 protected to 5 36 V threshold is 1 5 V nominal 8 outputs sink up to 200 mA each 36 V DC max standoff voltage Analog Inputs One 10 bit resolution 8 bit accuracy input range 0 1 3 1 V 10 samples s Analog Outputs Two 9 bit PWM 0 1 3 1 V DC 17 ms settling time Serial Ports 6 serial ports 1 RS 485 2 RS 232 or 1 RS 232 with CTS RTS 1 CMOS level asynchronous or clocked serial port 1 expansion serial port for multiplexed to two RS 422 clocked SPI ports 1 CMOS compatible serial port
34. ED DS3 is the output of the light The BL2500 digital inputs INO2 and INO3 move the window s screen to the left and right respectively 5 To check the I O connections close the Debugger window and on the B25QLD Programs window select Project gt I O connection Check the wiring of the channels sir ISaGRAF B25QLD 1 D connection B x File Edit Tools Options Help ajieBan tl FA 8 w bl25di n de 3E o SwLeft t Switch lett turns light ontott m w bl25led n 2 SwRight Switch right turns light on off e LfCmd Move Left user command e AtOmd Move Right user command 4 Ls Jia Ls I 4 8 4 Ls 4 L me El OEM Technology Solutions Page 19 EMBEDDED PLC BL2500 User s Manual Running Sample Applications Follow the same procedure to run the b25rota application This application will turn ON the BL2500 on board LEDs DS3 and DS4 in sequence 3 4 CREATING A NEW PLC APPLICATION The following Section describes how to use the ISaGRAF Workbench to create simple PLC applications using the 5 IEC 611131 3 PLC programming languages FBD LD ST IL and SFC and Flow Chart that later you will download to the BL2500 Target PLC The Target PLC must be connected to physical I Os It also assumes that the Target is connected to the PC either via Ethernet or serial port To create or modify PLC applications the ISaGRAF Workbench must be licensed The PLC application that is written using 6 different l
35. EMBEDDED PLC Firmware Kernel 8 3 TROUBLESHOOTING 8 3 1 Common Errors Listed below are some solutions of common errors that you may encounter with EMBEDDED PLC products 8 3 1 1 Communications If you experienced problems with the communication between the Target and either the ISaGRAF Workbench or a Modbus master check the items below e Disconnect all the physical I Os connected to the Target and try again e Check that the Modbus Slave Number value in the Target is the same as the Target Slave Number in the ISaGRAF Workbench OEM Technology Solutions Page 71 EMBEDDED PLC BL2500 User s Manual FAQ and Troubleshooting e lf you are using Ethernet link check that IP address Netmask and Default Gateway values are correct in the Target Check also that the port in the ISaGRAF Workbench is set to 1100 e lf you are using RS232 or RS485 link remember that either the ISaGRAF Workbench or the Modbus master can be connected to the Target at a certain time Check that the serial port parameters on the ISaGRAF Workbench and or Modbus master are the following Baud rate 19200 to 600 depending on the Target configuration no parity 8 data bits 1 stop bits and no flow control If you are using a RS232 to USB converter cable check that the COM port assigned to it is within COM1 to COM4 range If not follow the instructions described in Q2 of the FAQ section e he minimum value of the polling period from ISaGRAF Workbench or a Modbus mast
36. GRAF V3 50 Workbench installer This particular installation is intended to work in stand alone mode or only with EMBEDDED PLC Rabbit based targets After installation of the Workbench the software runs in a trial mode for 30 days After period expires license is required e BL2500C BSP V1 05 9 0003 007 EMBEDDED PLC Board Support Package BSP for the SBC BL2500 It contains the EMBEDDED PLC BL2500 Firmware Kernel and the ISaGRAF I O boards and sample files to be installed in the ISaGRAF directory e EmbeddedPLCUtility V1 03_3 0237G Microsoft Windows Installer of the EMBEDDED PLC Utility The EMBEDDED PLC Utility allows you to load or upgrade the EMBEDDED PLC Firmware Kernel to a Rabbit based Target The installation of this software is optional and is described in Chapter 7 These software products can also be downloaded in ZIP format from the OEM Technology Solutions website www oem net au OEM Technology Solutions Page 7 EMBEDDED PLC BL2500 User s Manual Getting Started 2 2 1 Installing ISaGRAF Workbench V3 5 Use the following procedure to install the EMBEDDED PLC ISaGRAF Workbench V3 5 from the CD ROM 1 Insert the CD ROM and open the ISaGRAF V3 5 folder 2 Double click on ISAGRAF EXE to launch the ISaGRAF installation wizard Follow the instructions provided by the wizard to proceed with the installation 5 Note It is recommended that the ISaGRAF Workbench be installed on a new directory to avoid confusing files with
37. IP Address and fill in the following fields f Use the following IP address IP address 192 168 1 101 Subnet mask 2095200025505 N Default gateway 192 168 1 1 5 Press OK button to close the Internet Protocol TCP IP Properties window Press OK button to close the Local Area Connection Properties and to update the new TCP IP values 6 To verify the communication between your PC and the BL2500 use the ping command Open a Command Prompt window Start button gt Programs gt Accessories gt Command Prompt and type C ping 192 168 1 100 The command output should display the replies from the Target PLC OEM Technology Solutions Page 11 EMBEDDED PLC BL2500 User s Manual Getting Started 2 4 3 Connect an RS232 Cable optional If your Target PLC is configured to Use Modbus TCP you can go straight to Section 2 5 If your Target PLC is configured to Use RS232 connect a serial cable to a COM port of the PC and to the RS232 port E of the BL2500 The RS232 cable must follow the diagram shown in Figure 3 A serial cable is not provided in the EMBEDDED PLC Application Kit BL2500 PC 0 1 Fitch 2x 5 DB 9 Male HR3232 Header J6 Connector JE e 5 np J6 3 X TD J6 4 aM ne J6 5 gge PRE J5 7 E J6 8 E J8 9 Sup J6 10 e E Figure 3 PC lt gt BL2500 RS232 connection 2 5 RUNNING A SAMPLE APPLICATION Once you have established connection between your PC and the Target PLC follow these instruct
38. KNOWN ISSUES 8 1 1 BL2500 with Rabbit 3000 Microprocessor Revision 0 IL1T The Rabbit microprocessor R3000 Revision 0 IL1T or IZ1T has a bug on the parallel port F see Z World s TN228 http www zworld com documentation docs refs TN228 TN228 pdf The analog inputs and analog outputs use the PWM which uses parallel port F Thus any operation on analog l O affects the normal operation of outputs serial RS485 transmitter enable signal SPI enable signal and LEDs DS3 and DS4 If you have an SBC BL2500 with the Rabbit 3000 microprocessor revision 0 IL1T or IZ1T and want to use the analog features bear in mind that outputs 0 to 3 RS485 and RabbitNet can not be used For more information about the Rabbit 3000 microprocessor revisions see Appendix B of 3 8 1 2 BL2500 with Large Sector Flash The EMBEDDED PLC kernel writes the ISaGRAF application on flash to preserve the application on power cycles This operation is done only with BL2500 with small sector flash EMBEDDED PLC kernel saves the ISaGRAF application on Battery Backed RAM if the BL2500 has large sector flash 8 1 3 ISaGRAF Floating Point Arithmetic The floating point arithmetic implemented by Dynamic C for the Rabbit 3000 microprocessor is not 10096 compliant with the IEEE Standard When doing arithmetic operations with numbers close to the upper limit 3 4E38 instead of causing an overflow the result goes beyond the limits set by the standard External applications such as I
39. Keyword tool box or type IF on the command line When correctly entered Keyword commands are highlighted pink 11 To enter inputs outputs or variables for example input switch SW1 either select Edit gt Insert variable gt SW1 or type SW1 on the command line 12 Type the following command lines under the entered comment IF SW1 SW2 THEN LED1 FALSE ELSE LED1 TRUE END IF 13 The LDtest1 program should now appear as follows ISAGRAF B25TEST3 STTEST1 ST program File Edit Tools Options Help Aa LE H sd RE lt Exclusive OR logic for switching on LED gt IF SM SW2 THEN LED1 FALSE ELSE LED1 TRUE END_IF FALSE OR RETURN THEN ELSIF CASE 14 Save the program by selecting File menu gt Save Press OK button on the Update diary window Close the STtest1 ST Program window 15 Follow Steps 17 to 25 in 3 4 1 to compile the application and download it to the Target PLC 16 Double click on STtest1 program The STTEST1 ST Programs window is displayed Press the SW1 short circuit digital input INOO and the LED1 will be turned ON as well as the state of LED1 in the Programs window will change The PLC program implements a Boolean XOR operation on SW1 and SW2 with the result set on the LED1 17 To stop the monitoring of the PLC application close the Debugger window The programs and dictionary windows in debug mode will be closed OEM Technology Solutions Pa
40. Large Sector Flash occcccconnccococonccconnnncconnncononnnononanononannnnonunnnnnns 69 8 1 3 ISaGRAF Floating Point Arithmetic cooooncnccconcnncnoncnnconoconcnnncnnononnnnconarencnnonons 69 8 1 4 Reading writing 32 bit integer real analog variables via Modbus 69 82 FAQ XE 70 8 3 TROUBLESHOOTING Ee ee e ee 71 8 3 1 COMMON EMOS od too it oco ctetu p iis ee eee O me D UUIUE 71 8 3 2 Before Contacting Technical SUpport occccocccccocnnccocnnococnnocanonononnnoncnononononanonenanos 72 9 SPECIFICATIONS ci Ee eam i apr e uiu iu I I dE 75 9 1 ELECTRICAL AND MECHANICAL SPECIFICATIONS ees ee ee see ee see ee ee ee ee ee ee ee ee ee ee ee ee 75 10 ABOUT ese ipee 77 10 1 USING INDUSOFT WEB STUDIO WITH EMBEDDED PLC eeeeeeeeeeeeeeee 77 OEM Technology Solutions Page ii EMBEDDED PLC BL2500 User s Manual LIST OF TABLES Table 1 Main Features of the EMBEDDED PLC Firmware Kernel V1 05 on the BL2500 2 Table 2 Modbus slave addresses Mapping ccococccocnoccnncnonccnononocnonannnnannnnnnonnnnonanononnnnannnnannnnnnonannnnnnenons 36 Table 3 EMBEDDED PLC BL2500 Serial Port Configuration cooocccccoccncccccncccnnnconnnnnoncnnnnonononcnonononononos 50 Table 4 BL2500 Electrical Mechanical and Environmental SpecificatiONS ccoocccccoccncoccncconnncconononos 76 LIST OF FIGURES Figure 1 Power Supply COME
41. Modbus Protocol mr ISaGRAF MDBMASTI 1 0 connection E slal xi File Edit Tools Options Help amp Emm TY EA ES Ing mbtcpctg eo maa slave ipAddr 192 166 1 101 sauna slave port 502 polling period 5000 naas timeout 1000 ku retries 2 EH Ls 6 EN 5 Double click on slave ipAddr configuration parameter and enter the IP address of the Modbus slave device 192 168 1 101 The polling period and timeout are in millisecond The status of the Modbus master interface is returned as an integer value in Channel 1 of this board 6 On the left side of the VO connection tool double click on Slot 1 and select Eduipment option on the window displayed below Select board equipment X 101 300a0 101300 4 AO Remote Module mtcplbar Modbus Master TCP 8 Input Reg mtcplbao Modbus Master TCP 8 Hold Regs mtcpl6di Modbus Master TCP 8 Discr Imp Cancel mtcpl6do Modbus Master TCP 16 Coils mtcpBar Modbus Master TCP 8 Input Reg Note mtcp8ao Modbus Master TCP 8 Hold Regs mtcptdi Modbus Master TCP 8 Discr Inp mtcp da Modbus Master TCP 8 Coils po 0232 010 0232 Pulsed Outs amp Counters Library po 0236 010 0236 Pulsed Outs amp Counters xana In Analog IOs for simulation So boo in Boolean IOs for simulation xmsg io Message 1 05 for simulation Equipments 7 Select the Modbus data group I O equipment mtcp16do which corresponds to the 16 Coils the Modbus sla
42. Modbus slave has 16 Discrete Inputs or digital inputs starting from address 100 The other Modbus slave has 8 Holding Registers or analogue outputs starting from address 1 and its values are reported as 16 bit Integer The IP Address of the Modbus Master is 192 168 1 100 and the IP address of the RS485 to Ethernet Converter is 192 168 1 101 The following step by step instructions describe how to configure the Modbus master within an ISaGRAF project 1 The EMBEDDED PLC Target Modbus Master must be configured as TCP with the IP Address 192 168 1 100 See Section 7 1 4 for instructions on how to configure the EMBEDDED PLC firmware kernel 2 Open ISaGRAF Workbench and create a new project called mdbMast2 Open the Dictionary and define 16 Boolean input and 8 Analogue output variables 3 Open the I O Connection tool and connect the Modbus TCP Interface Configuration board mbtcpcfg as described in Steps 3 to 5 of the previous example aw ISaGRAF MDBMASTZ 10 connection a ni X File Edit Tools Options Help a PSP TY FX 8 MB mbtcpcfg cog eu Slave ipAddr 192 166 1 101 j main slawe port 502 maas polling period 5000 mu timeout 1000 mum retries 2 4 ml ra EN E e KA E ml m mj 7 Es Ls OEM Technology Solutions Page 44 EMBEDDED PLC BL2500 User s Manual Modbus Protocol 4 Double click on Slot 1 select Equipments and connect mtcp16di VO equipment Select cfgstat board and set the slav
43. N N N D EE CU UM o3 6 1 2 FOC LEINA ANELA 18 nai E es gata bacon RAM o3 6 1 3 variable Dei lio AS 53 6 1 4 Functional Module Programming sees o3 6 1 5 IES 61131 3 Language Editors etnicidad 54 6 1 6 Flow Ghart EAIOF ERN T 54 6 1 7 Document Sener stella N OE 54 6 1 8 SY BIB rz ITO RN ORE 54 62 JSAGRAFSOFTWARE REFERENCE a ELO 55 6 2 1 PRD S TERI 55 6 2 2 Remote I O Boards and Equipments Modbus TCP Master 57 6 2 3 IDAGRAR C EUROS dla esta Oc 61 6 2 4 Ioa GRAF C FPUNCION BIOEKS sia lisa 62 7 LOADING OR UPGRADING THE FIRMWARE KERNEL esse ees ee ee ss ee ee Ee ke ee sek ee eek ee Ek ee eek ee ee ee 63 Cb AINTEOE LE TIE NM EE Ee tetera E to caia 63 7 1 1 lastalling EMBEDDED PEC UMY SS es a ono tc nes 63 1 1 2 Comnectingito the BZ OO a lee 63 7 1 3 Loading and licensing the Firmware Kernel c cccccseeeeeeeeceeeeseeeeaeeeseeeeaeeeeaes 64 7 1 4 Configuring the Firmware Kernel cccccccsssceceececeeeeecesesseeeessaeeeseeeesegeesaneeees 65 7 2 EMBEDDED PLC UTILITY SOFTWARE REFERENCE ee ee see ee see ee see ee ee ee ee ee ee ee ee 66 1 2 1 MEE ON A n MD tt EU MI UE ETE 66 1 2 2 Loading no citan aio lua GS 68 8 FAQ AND TROUBLESHOOTING issic i seed oa vu catu sau ooa dee eo ee 69 81 KNOWNISSUES tu vetu iodo 69 8 1 1 BL2500 with Rabbit 3000 Microprocessor Revision 0 IL 1T 69 8 1 2 BL2500 with
44. N cis 10 FIgure Z Eherret eornneelons SE ai 11 Figure 3 PC lt gt BE2500 R5232 connection EE reed neuen eee 12 Figure 4 Modbus TCP communication architecture cccococcccccooocnnccocnncoconnnnnnnnconnnnannnnonannnnnonnnnnnnnnanenos 38 Figure 5 Example 1 Modbus Master to one Modbus Slave over TCP cccccccceeeseeeeeeeeeeeeeeeeeeesaeeeeeeas 39 Figure 6 Example 2 Modbus Master TCP to two Modbus Slaves over Serial ccccooccccccooccnconononos 44 EIgure 7 BL2800 PINOS AAA 47 Figure 8 BL2500 Digital Inputs Pull up factory default ees ee ee ee ee ee Ee ee ee ee ee ee ee ee Ee ee ee ee ee ee 48 Fidure9 Bl 2500 Digital QUES a 48 Figure 10 Schematic Diagram of the A D Converter ees ees ee ee EE ee RE ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee 49 Figure 11 Schematic Diagram of D A Converters ss esse ee ee ee ee Ee ee ee Ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee 49 Figure 12 BL2500 Multidrop NetWOFK ees ees a Re EE Re ee RR ee EE Re Re ek GE e ee GE Re nnne nn RR Re ee GE 51 Figure 13 RS485 Termination and Bias Resistors ococooncnccccoccnccnoccncnnncnnononcnnnonanononnanonnononnnnnnnrnnonnaninnnss 51 Figure 14 RJ 45 Ethernet Port PIU busca da 51 Figure 15 Programming Cable Connection ee ee EE ER EE ER ee EE ee ee Ee ee ee ee EE Re ee EE Re ee Ee ee ee ee ee 64 Figure 16 BL2500 DIMENSIONS a isa 15 OEM Technology Solutions Page iii EMBEDDED PLC BL2500 User s Manual
45. OTOCOL 4 1 EMBEDDED PLC TARGET AS A MODBUS SLAVE The EMBEDDED PLC Target implements Modbus slave RTU over serial line RS232 or RS485 or Modbus slave on TCP protocols to exchange data with other systems Modbus is an application layer messaging protocol for client server communication between devices connected on different types of buses or network For more details about the protocol specification see 4 available from the Modbus IDA Organization website http www modbus org specs php The following Modbus function codes are supported by the EMBEDDED PLC target Function Code Action Decimal Readcoils ordigtaloutputs coils or aka A 1 Readcolls ordigitaloutputs Read d or als las s Wit singe register two EC EN Write multiple coils T y Write multiple registers N words 4 1 1 Configuring Modbus Slave The EMBEDDED PLC BL2500 comes pre configured as a Modbus slave TCP Use the EMBEDDED PLC Utility to change the Modbus slave parameters of the target Go to section 7 1 1 for instructions on how to install the EMBEDDED PLC Utility Section 7 1 4 describes step by step how to change the configuration of the EMBEDDED PLC Modbus slave interface Note The Modbus TCP interface implemented in the EMBEDDED PLC target supports up to 5 simultaneous socket connections excluding the ISaGRAF Workbench When using Modbus over RS232 RS485 the ISaGRAF Workbench and the Modbus master share the sa
46. SaGRAF Debugger monitoring those values will fail because those values are invalid floating point NaN When this condition happens the ISaGRAF Debugger stops but leaves some processes running If you experience this problem close all ISaGRAF applications including the Project Management Re open the Project Management to resume ISaGRAF development 8 1 4 Reading writing 32 bit integer real analog variables via Modbus EMBEDDED PLC supports reading and or writing 32 bit integer real analog variable through Modbus Requests are handled by using two consecutive words multiple registers in little endian format i e the less significant word goes first The constraint is the Modbus address for analog variables must be odd number OEM Technology Solutions Page 69 EMBEDDED PLC BL2500 User s Manual FAQ and Troubleshooting 8 2 FAQ Q1 Q2 Q3 Q4 Q5 Q6 Q7 What happens if try to load the EMBEDDED PLC Firmware Kernel to a Target already running a licensed EMBEDDED PLC Kernel The EMBEDDED PLC Utility does not check for an existing license before performing a loading and a new license is required after a Kernel is loaded to a Target This means that after loading a new Kernel to a Target a new User Reference Code is generated and you will need to contact OEM Technology Solutions or your local distributor to obtain a new license key to activate the EMBEDDED PLC Kernel How can change the assigned serial port numbe
47. Sample applications that use Virtual Boards xai8 xao8 xbi8 xbo8 xmi8 xmo8 These applications can run ONLY in simulation mode gt blinkseq Same implementation with various languages gt rfdemo Complete SFC demo gt rfsample Sample described in ISaGRAF User s Guide see 2 gt rfsfc Demonstrates SFC actions in SFC e Sample applications that use internal variables only These applications can be simulated or downloaded to the Target PLC The Target PLC does not need to be connected to physical VOs gt bottlef Flow Chart Simulation of bottle production gt rfstack Demonstrates STACKINT function block gt Sorting Flow Chart Sorting of tokens depending on their size and colour e Sample applications pre configured to use BL2500 I O boards These applications can be simulated or downloaded to the BL2500 Target PLC and requires that the Target is connected to physical VOs gt b25qld Demo with Quick LD programming gt b25rota Rotation of 2 BL2500 on board LEDs DS3 and DS4 and 2 digital outputs gt b25scope Signal generation BL2500 Analogue Out and SpotLight A description of each of the sample applications appears at the bottom of the ISaGRAF Project Manager 3 1 RUNNING APPLICATIONS IN SIMULATION MODE Use the following procedure to run any sample application in simulation mode 1 Open the ISaGRAF Project Management by double clicking on the ISaGRAF Projects icon on your Desktop or selecting Start menu
48. This page is intentionally left blank OEM Technology Solutions Page iv EMBEDDED PLC BL2500 User s Manual Introduction 1 INTRODUCTION 1 1 WHAT IS EMBEDDED PLC The EMBEDDED PLC system turns a Rabbit based controller such as the Coyote BL2500 Single Board Computer SBC into a high performance and yet inexpensive Programmable Logic Controller PLC The Target PLC can be programmed using the EMBEDDED PLC ISaGRAF Workbench in any of the standardized automation control programming languages IEC 61131 3 e Sequential Function Chart SFC e Function Block Diagram FBD e Ladder Diagram LD e Structured Text ST e Instruction List IL EMBEDDED PLC ISaGRAF Workbench becomes an alternative to Dynamic C to program Rabbit based controllers The EMBEDDED PLC system consists of two parts e he Target PLC A SBC BL2500 powered with the RabbitCore amp module RCM3200 Rabbit 3000 microprocessor 44 2 MHz clock speed 512K Flash 256K Battery backed SRAM 512K Fast SRAM and 10 100BaseT and loaded with the EMBEDDED PLC Firmware Kernel or refer to as the Kernel The Firmware Kernel is distributed as a bin ISaGRAF Workbench file which is loaded to the Target through the EMBEDDED PLC Utility The Kernel runs the PLC application in a loop reading inputs gt evaluate the logic gt updating outputs and also provides the communication interface between the Target and the Workbench e he ISaGRAF Workbench The Workbench provide
49. able On the B25TEST4 Programs window double click on ILtest1 program Type in a comment in comment parentheses such as Exclusive OR logic for switching on LED When entered correctly comments are highlighted green Press Enter to move to the next command line in the IL program editor To enter Keyword commands either click the desired button in the Keywords tool box or type it such as for an AND statement either click AND in the Keyword tool box or type AND on the command line When correctly entered Keyword commands are highlighted pink To enter inputs outputs or variables for example input switch SW1 either select Edit Insert variable gt SW1 or type SW1 on the command line Type the following command lines under the entered comment LD SW1 XOR SW2 er LED1 The ILtest1 program should now appear as follows OEM Technology Solutions Page 29 EMBEDDED PLC BL2500 User s Manual Running Sample Applications SaGRAF B25TEST4 ILTEST1 IL program File Edit Tools Options Help Da VOR H sd PRE Keywords E j Ca Exclusive OR logic for switching on LED TRUE FALSE LD ST OR MUL EQ CAL XOR DI NE JMP ST LED1 14 Save the program by selecting File menu Save Press OK button on the Update diary window Close the ILtest1 ST Program window 15 Follow Steps 17 to 25 in 3 4 1 to compile the application and download it to the Target PLC 16 Doub
50. able for the Rabbit based controller 1 27mm programming cable for Rabbit 3000 microprocessor based controllers This Utility downloads ONLY EMBEDDED PLC Firmware Kernels If you want to download another binary file generated with Dynamic C use the Rabbit Field Utility RFU that comes in the Dynamic C installation 7 2 1 Menu Commands 7 2 1 1 File gt Load Flash Image Allows a EMBEDDED PLC Kernel bin file to be chosen as the file to be loaded Clicking the ellipses button brings up an Open File dialog box to browse for a file s location 7 2 1 2 Setup gt Communications This version of the EMBEDDED PLC Utility only supports Serial Connection The default com port is COM1 The default baud rate is 115200 bps If the host PC is using a different com port change the default to match the port being used by the PC If the BIOS is using a different baud rate change the default to match the baud rate being used by the BIOS 7 2 1 3 Setup gt File Locations The first time EMBEDDED PLC Utility runs it assumes that coldload bin pilot bin and flash ini are located in the EMBEDDED PLC Utility subdirectory Those files are installed by the EMBEDDED PLC installation process The Rabbit Field Utility can be run from a different location if the location of coldload bin and pilot bin are specified using Setup gt File Locations OEM Technology Solutions Page 66 EMBEDDED PLC BL2500 User s Manual Loading or Upgrading the Firmwar
51. and running the ISaGRAF application Use the following procedure to download a sample application b25ald to the BL2500 Target that uses physical l Os The Target PLC must be running a licensed EMBEDDED PLC Firmware Kernel and be connected to 4 digital inputs use the procedure above to create an VO connector It also assumes that the Target is connected to the PC either via Ethernet or serial port 1 Open the ISaGRAF Project Management by double clicking on the ISaGRAF Projects icon on your Desktop or selecting Start menu gt Programs gt ISaGRAF 3 5 gt Projects On the Projects Management window double click on the b25qld project 2 Select Debug gt Link setup or press Link Setup and configure the Target PLC amp PC link Follow the guidelines on Step 2 of the previous section 3 Select Debug gt Debug or press Debug to open the Debugger window If an application is running stop it press Stop button on the toolbar On the Debugger window select File gt Download to download the b25qld application to the target A progress bar on the Debugger window shows the progress of the download process Once the downloading is completed the application starts running and the following SpotLight window is displayed K ISaGRAF B250LD ROOM SpotLight Oj x File Edit Insert Options Help 4 The Digital inputs INOO and INO1 of the BL2500 are wired as the Left and Right switches on the b25qld application The BL2500 on board L
52. anguages implements a simple Boolean operation XOR between digital input INOO and INO1 SW1 and SW2 Boolean variables respectively The DS3 LED LED1 Boolean output variable is used as the output 3 4 1 Using Function Blocks Diagrams 1 Open the ISaGRAF Project Management by double clicking on the ISaGRAF Projects icon on your Desktop or selecting Start menu gt Programs gt ISaGRAF 3 5 gt Projects On the Projects Management window select File menu gt New 2 On the Create new project window enter the xi name of the project for example b25test1 and press OK button The name of project should no i al exceed 8 characters The b25test1 project is E E Cancel then listed in the Projects Management nonc El window 3 Select Edit menu Set comment text Enter a brief description of this project and press OK button This description will be displayed next to the project name in the Projects Management window 4 Double click on b25test1 project An empty B25TEST1 Programs window is displayed ISAGRAF B25TEST1 Programs OS 10 xl File Make Project Tools Debug Options Help Hen DEN xxi mx DS e Mew Program Name 9 Select File menu New On the New program pec window enter the name of the program for example canna FBtest1 a brief comment select the Language to l i FBD select Begin Style and press OK button The Style Begin Main program FBtest1 program is displayed in the
53. aracters The b25test3 project is then none si listed in the Projects Management window Name b25test3 10 configuration Select Edit menu gt Set comment text Enter a brief description of this project and press OK button This description will be displayed next to the project name in the Projects Management window Double click on b25test3 project An empty B25TEST3 Programs window is displayed File Make Project Tools Debug Options Help New Program x o Select File menu New On the New program window OEM Technology Solutions enter the name of the program for example STtest1 a brief comment select the Language to ST select Begin Style and press OK button The STtest1 program is displayed in the B25TEST3 Programs window Page 27 EMBEDDED PLC BL2500 User s Manual Running Sample Applications 6 Follow Steps 6 to 11 in 3 4 1 to create and populate the applications Dictionary with SW1 and SW2 Boolean input variables and LED1 Boolean output variable On the B25TEST3 Programs window double click on STtest1 program Type in a comment in comment parentheses such as Exclusive OR logic for switching on LED When entered correctly comments are highlighted green 9 Press Enter to move to the next command line in the ST program editor 10 To enter Keyword commands either click the desired button in the Keywords tool box or type it such as for an if statement either click IF in the
54. ard Support Package BSP 7 FRADDIUNGE c racio genas a ida oe a RU dro OE 47 Definition 1 bisce Firmware Kernel rem HH 1 E te ER as le software installation 7 S Target PEG da cdas 1 VEE N EC DL 7 sample applications ER Ee ee 12 WorkbencCh EES EE 1 DAS Ad EER ie ES EE EE ee 15 DEON GE DE aa aah cdd 15 F A soda EE Deb 15 Ed EE DIINKSOQ ad OE e DE RE Ge 15 Four 65 Dolar ai oa RENE 15 ih A dtt tstad etui depr he 65 Md MO EE EE EE De N 15 Es Qe AE ee M E 64 ALT Inno Ee ER 15 AA ME ee OE ED a Ee HS IERE EDE e n Me MR VETERE 15 SIEKES ells E crise nce ad E E MORE 15 SOS 15 Indusoft sess eene eerie ee TT SORTING 20 0 ccccccecccccecccececececececececeuenenenecs 12 ISaGRAF Serial Ports hardware license eem 8 SA EE MOs 50 installation enn 8 RS A8D ee ee ee ee ee ee ee ee ee 50 OEM Technology Solutions Page 79
55. are license When using a hardware license a dongle which you place on the parallel or USB port of your PC is delivered pre programmed with the selected feature set When using software license you need to obtain a set of registration keys The software license is specific to a PC hardware configuration and Operating System Therefore if you re install the Operating System and then re install ISaGRAF Workbench a new software license will be required However it is possible to transfer a software license from one PC to another Section A 1 2 2 of the ISaGRAF User s Manual See 2 and the License Manager on line help describe in detail how to transfer a software license The EMBEDDED PLC Application Kit entitles you to a 32 VO points software license To obtain the software license follow these instructions 1 Open the ISaGRAF License Manager Start menu gt Programs gt ISaGRAF 3 5 gt Licensing On Setup Code SET WDX32WDE15 the Available Components select ISaGRAF 3 User Code 1 286474670 Software License and press Add button Click EE ar Option 32 on Number of IO Variables box and press OK button The Setup Code SET WDX32 Proceed WDE15 will be displayed in the Setup Code box 2 If you have access to the Internet and have an e mail account OEM Technology Solutions Page 8 EMBEDDED PLC BL2500 User s Manual Getting Started a Press Proceed button A new mail message of your default e mail clien
56. ch fully protected over a range of 36 V to 36 V and can handle short spikes of 40 V IN14 is protected over a range of 36 V to 5 V 5 2 DIGITAL OUTPUTS The BL2500 has eight digital outputs OUTO OUT 7 each of which can sink up to 200 mA Figure 9 shows a wiring diagram for using the digital outputs in a sinking configuration SINKING OUTPUTS Figure 9 BL2500 Digital Outputs K is an externally supplied voltage of 3 3 40 V DC and should be capable of delivering all the load currents Although a connection to a K supply is not absolutely required with sinking outputs it is highly recommended to protect against current spikes when driving inductive loads such as relays and solenoids Connect the positive K supply to pin 1 of friction lock connector terminal J10 and the negative side of the supply to pin 2 of friction lock connector terminal J10 A friction lock connector is recommended to connect this supply because the K inputs are not protected against reverse polarity and serious damage to the BL2500 may result if you connect this supply backwards 5 3 ANALOG INPUT The A D converter shown in Figure 10 compares the DAO voltage to ADO the voltage presented to the A D converter DAO therefore cannot be used for the D A converter when the A D converter is being used Note Only DA1 is available for EMBEDDED PLC as DAO is used by the A D converter OEM Technology Solutions Page 48 EMBEDDED PLC BL2500 User s Ma
57. change 32 bit data types via Modbus each value uses two words 32 bit of data via read or write multiple registers function codes The data value is grouped as less significant word first Since it uses two words two contiguous addresses are needed to access the 32 bit value therefore the starting address of the register must be odd 35001 35003 etc for input registers and 45001 45003 etc for holding registers From the Modbus master point of view the data address of each type starts from 1 For example if the Modbus master needs to access the Coil 21 the network address defined in the target must be equal to 21 If the Modbus master needs to access the Discrete Input 21 the network address defined in the target must be equal to 10021 If the Modbus master needs to access the Input Register 21 reported as 16 bit integer 1 word the network address defined in the target must be equal to 30021 If the Modbus master needs to access the Holding Register 21 reported as 16 bit integer 1 word the network address defined in the target must be equal to 40021 If the Modbus master needs to access a register reported as 32 bit integer or float the address defined in the master must be odd and start from 5001 and the network address defined in the target must start from 35001 read only or 45001 read or write There are two methods in ISaGRAF Workbench to declare a variable for Modbus access 1 Open ISaGRAF Workbench and open the desired p
58. ck on Edit menu Map selected variable OEM Technology Solutions Page 37 EMBEDDED PLC BL2500 User s Manual Modbus Protocol 4 2 EMBEDDED PLC TARGET AS A MODBUS MASTER The EMBEDDED PLC Target can also be used as a Modbus master over TCP A typical Modbus TCP IP distributed communication architecture is shown in next figure EMBEDDED PLC Target Modbus Slave Master TCP SCADA Application Modbus Master TCP HMI Screen Modbus Master TCP Modbus TCP EMBEDDED PLC Target Modbus Slave TCP Other Serial to Modbus Ethernet Slave TCP Converter Modbus Modbus Slave Slave Serial Line Serial Line Figure 4 Modbus TCP communication architecture The EMBEDDED PLC Modbus Master implementation supports the following functions through IEC 61131 3 programming environment e Write 8 or 16 consecutive coils Ox e Read 8 or 16 consecutive discrete inputs 1x e Read 8 or 16 consecutive input registers 3x as 16 bit integer value or 32 bit integer float value e Write 8 or 16 consecutive holding registers 4x as 16 bit integer value or 32 bit integer float value The EMBEDDED PLC target acting as a Modbus master can communicate with up to one Modbus slave over TCP or up to 16 Modbus slaves over serial via Serial to Ethernet converter 4 2 1 Configuration of Modbus Master over TCP The configuration of the Modbus master interface is done using ISaGRAF VO boards and VO complex equipments The first step is to use the
59. cription will be displayed next to the project name in the Projects Management window Double click on b25test5 project An empty B25TEST5 Programs window is displayed OEM Technology Solutions Page 30 EMBEDDED PLC BL2500 User s Manual Running Sample Applications ISAGRAF B25TEST5 Programs of x File Make Project Tools Debug Options Help New Program Name 5 Select File menu New On the New program window CORDE enter the name of the program for example SFCtest1 a Tee brief comment select the Language to SFC select Begin o REF EER Style and press OK button The SFCtest1 program is displayed in the B25TEST5 Programs window 6 Follow Steps 6 to 11 in Section 3 4 1 to create and populate application s Dictionary with three Boolean variables SW1 SW2 and LED1 7 On the B25TEST5 Programs window double click on SFCtest1 program 8 Click on below Step 1 Click on OR divergence F6 HT to add a single divergence Click on below single divergence and then on Transition F4 T to add a transition after the single divergence Click on below the transition and add Step 2 by pressing Step Fs m button Repeat the same procedure to add Transitions 3 4 and 5 Step 3 a single divergence and a Jump to Step 1 The final program screen should be as shown below al ISaGRAF B25TESTS SFCTEST1 SFC program Ioj x File Edit Tools Options Help DA SOA M xpd Qai a Fo O O Fe FaH tep aH oe ES F amp
60. d 1 a NI ke y Main Features Process Control E Process Started www indusoft com info indusoft com IWS applications consist of animated operator interface screens communication drivers for PLCs and VO protocols such as Modbus DFS Profibus etc tags database and additional modules such as alarm monitors logic trend charts recipes schedulers and security system IWS applications interface with industrial VO systems and other Windows applications in the run time environment using ODBC DDE NetDDE OPC or TCP IP protocols For more information about IWS contact OEM Technology Solutions http www oem net au 10 1 USING INDUSOFT WEB STUDIO WITH EMBEDDED PLC The EMBEDDED PLC implements Modbus over TCP IP or RTU over RS232 RS485 to communicate with Modbus masters such as Indusoft Web Studio Indusoft Web Studio IWS applications can be quickly developed to be used in conjunction with EMBEDDED PLC since it has built in communication drivers for Modbus OEM Technology Solutions Page 77 EMBEDDED PLC BL2500 User s Manual About Indusoft InduSoft Web Studio MOTCP MAIN DRIVER SHEET laf x File Edit View Insert Project Tools Window Help OG PERE AF 44 ax SERE oo R Tse EER MODAS Pe2emal Ae iSo FaATH Me MT So Se ER Xx R ET MOTCP MAIN DRIYER SHEET Mmidddud c c nix EN s ss E 35 Project CEDemo app EQ Drivers Description x R BE Moc MAIN DRIVER SHEET ZE re MAIN DRIVER m amp gg OPC el
61. d and license the EMBEDDED PLC Firmware Kernel Also includes a complete reference of the Utility software 7 1 1 Installing EMBEDDED PLC Utility Use the following procedure to install EMBEDDED PLC Utility from the CD ROM 1 Insert the EMBEDDED PLC BL2500 CD ROM and open the root folder 2 Double click on the EmbeddedPLCUtility V1 03 3 0237G msi file to launch the EMBEDDED PLC Utility Setup Wizard Follow the on screen instructions to proceed with the installation 3 Once all the EMBEDDED PLC Utility files have been copied the EMBEDDED PLC Utility icon is added to your Desktop and the following group is added to your main Programs group amp EMBEDDED PLC Utility E Oj xj File Edit View Favorites Tools Help ay E Back lt 3 Dd J Search gt Folders Em Address 0 C Documents and Settings All Users Start MenulPrograms EMBEDDED PLC Utility EMBEDDED PLC Lltilit EMBEDDED PLC Utility Hel Uninstall File and Folder Tasks ira i Shortcut ira im c scu 1 KB Y 1 KE Hu 2 KB Y Make a new folder 3 Publish this Folder to the Web kJ Share this Folder El 3 objects 3 19 KB 4 My Computer IB 7 1 2 Connecting to the BL2500 1 Connect the 10 pin PROG connector of the programming cable to header J3 on the BL2500 s RabbitCore module Ensure that the coloured edge lines up with pin 1 as shown in Figure 15 There is a small dot on the circuit board next to pin 1 of header J3
62. d in upcoming versions Do I need to keep the programming cable connected to the Target all the time No The programming DIAG cable is used only for entering license key or Target configuration parameters values After that it can be disconnected l already have a version of ISaGRAF Workbench V3 5 installed and licensed What should I do or install to make it EMBEDDED PLC compatible If you already have an ISaGRAF Workbench V3 5 running on you Host PC use the following instructions to make your ISaGRAF Workbench compatible with EMBEDDED PLC a Download the ISaGRAF V3 55 3 0239I zip file from OEM Technology Solutions website http www oem net au b Extract all files to a local directory lt SaGRAF Install Dir c Copy lt SaGRAF Install Dir gt EXE RABBIT RSC and lt SaGRAF Install Dir gt EXE ISATXT ERR to where your ISaGRAF main directory resides lt SaGRAF Main Dir gt EXE for example C ISAWIN EXE Confirm yes at overwriting ISATXT ERR file OEM Technology Solutions Page 70 EMBEDDED PLC BL2500 User s Manual FAQ and Troubleshooting d Edit lt ISaGRAF Main Dir gt EXE RSCDEF RSC and add the following line Resource RABBIT ESC This line will add the RABBIT TIC code for Rabbit based controllers in the Targets list in the Compiler Options window of the ISaGRAF Programs Manager You will have to recompile all your programs against this TIC code type in order to work with the EMBEDDED PLC BL2500 Q8 have a BL
63. e EMBEDDED PLC Firmware Kernel implements three types of Modbus communication Modbus over TCP IP Modbus RTU over RS232 and Modbus RTU over RS485 The EMBEDDED PLC Kernel can run only one protocol at one time 5 Note EMBEDDED PLC has the TCP IP port 502 reserved this port can not be modified to support Modbus over TCP IP communications Since ISaGRAF Workbench uses a different TCP IP port for communication with the Target PLC port 1100 the Workbench and a Modbus master HMI or SCADA can communicate with the Target at the same time e when the Target is configured as Modbus over TCP IP the ISaGRAF Workbench and a Modbus master can share the same physical line Ethernet However when the Target is using either RS232 or RS485 only an ISaGRAF Workbench or a Modbus master can be connected to the target at any one time 6 1 4 Functional Module Programming The next step in the ISaGRAF methodology is the actual programming of the various functional modules This can be done using any one of the six supported languages e Sequential Functional Chart SFC e Function Block Diagram FBD e Ladder Diagram LD e Structured Text ST e Instruction List IL e Flow Chart FC OEM Technology Solutions Page 53 EMBEDDED PLC BL2500 User s Manual Software Reference 6 1 5 IEC 61131 3 Language Editors In February 1993 responding to the need for standards to reduce training costs and guaranteed portability the IEC issued the IEC
64. e Kernel 7 2 1 4 Setup gt Target Configuration The configuration parameters can be changed at any time once the EMBEDDED PLC kernel is running but requires the Target to be reset or powered cycle Select Setup gt Target Configuration Follow the instructions that appear in the message dialog box and press OK x i Connect DIAG cable press OK and reset target i Cancel The EMBEDDED PLC Utility will establish connection with the target to get the configuration parameters If connection is established the following window will appear EMBEDDED PLC Target Configuration x Copyright c 2005 OEM Technology Solutions Module Version 1 06 Kernel Version 1 03 Kernel Description EMBEDDED PLE for BL2500 Modbus Slave Number il 1 255 Modbus TC Use Modbus TCP IP address 392 168 1 100 Subnet mask 255 0 0 0 Default gateway fi 92 168 1 1 Modbus ATU ever AS2s2 A5465 Use R5232 f Use R5485 Baud Rate Cancel Help Enter the desired configuration and press OK Configuration parameters e Modbus Slave Number This is slave number used to communicate with the ISaGRAF Workbench and a Modbus Master e IP Address IP address of the target must be static DHCP is not supported e Netmask Netmasks are used to identify which part of the address is the Network ID and which part is the Host ID For example 255 255 255 0 e Default Gateway IP address of the default gateway
65. e Reference 6 SOFTWARE REFERENCE 6 1 MORE ABOUT ISAGRAF 6 1 1 Project Manager The ISaGRAF methodology begins with the preparation of a detailed project specification This step is common to all PLC programming techniques and is usually the result of a thorough analysis of the project and consultation between the integrator and the user Distributed applications can be represented as several ISaGRAF projects grouped together in the project list Distributed applications can be edited simulated or debugged on the same Windows screen 6 1 2 Program Manager With the program manager the application specification is divided into smaller functional modules The exact operation that is to be performed within each module is defined at that stage ISaGRAF s program management facilities allow the user to define each of these modules their operations and their interaction to form the complete application 6 1 3 Variable Definition All variables are declared or imported in the ISaGRAF dictionary When this step is achieved during programming a mouse click will insert the variable in the program Any external database can be imported to build the ISaGRAF dictionary A quick declaration allows many variables to be declared with one command and an easy to use mapping tool is provided for Modbus based SCADA systems such as Indusoft For a brief description about Indusoft and how to use it in conjunction with EMBEDDED PLC see Chapter 10 Th
66. e Use Modbus TCP If this option is selected the Modbus RTU over RS232 RS485 box is disabled Select this option if Modbus TCP is required e Use RS232 If this option is selected the Modbus TCP configuration box is disabled Select this option if Modbus RTU over RS232 is required e Use RS485 If this option is selected the Modbus TCP configuration box is disabled Select this option if Modbus RTU over RS485 is required e Baud Rate Select between 600 to 19200 bits per second This operation can be repeated at any time but does require resetting or power cycle the Target OEM Technology Solutions Page 67 EMBEDDED PLC BL2500 User s Manual Loading or Upgrading the Firmware Kernel 7 2 1 5 Setup gt Kernel License This option can be used to establish connection with the target to check the current license status If license is required the following window will appear EMBEDDED PLC Firmware Kernel License x Copyright c 2005 OEM Technology Solutions Pty Ltd This is a new or upgrade application program You will need to enter the license key before the EMBEDDED PLC Firmware Kernel runs Please contact DEM Technology Solutions Pty Lid or your local EMBEDDED PLE representative to obtain your license key Tou will need to provide the reference number detailed below OEM Technology Solutions Pty Ltd can be contacted on Ph 61 2 9966 3424 Fas 61 2 836b 9429 Email suppartt amp aem net au User Reference Code EAEI RECE Lic
67. e jack labelled Ethernet Two 4 pin 0 156 friction lock connector terminals at J7 and J8 are installed to supply power DCIN and 5 V to the RabbitNet peripheral boards Two 2 pin 0 156 friction lock connector terminals at J2 and J10 are for power supply and K connections Analog RabbitWet Analog PU analog JM HU nome Outputs MI input 3 59822933 o oocooocom I Ji 00 oe E J 15 232 Digital Dufpufs Digital Inputs Digital Inputs Ether rmt Figure 7 BL2500 Pinouts For detail about electrical and mechanical specifications of the BL2500 go to Section 9 1 5 1 DIGITAL INPUTS The BL2500 has 16 digital inputs INOO IN15 INOO IN13 and IN15 are each protected over a range of 36 V to 36 V and IN14 is protected over a range of 36 V to 5 V The inputs are factory configured to be pulled up to 3 3 V INOO INO7 can also be pulled up to K or they can be pulled down to 0 V by changing a surface mounted O W resistor Figure 8 shows a sample digital input circuit INOO INO7 and IN15 are protected against noise spikes by a low pass filter composed of a 22 kQ series resistor and a 10 nF capacitor OEM Technology Solutions Page 47 EMBEDDED PLC BL2500 User s Manual Hardware Reference Figure 8 BL2500 Digital Inputs Pull up factory default The actual switching threshold between a zero and a one is between 0 9 V and 2 3 V for all 16 inputs i e ViNLMax 0 9 V and ViNHMin 2 3 V INOO IN13 and IN15 are ea
68. e_ipAddr to 192 168 1 101 and slave_address to 1 ow ISaGRAF MDBMAST2 I O connection m ISaGRAF MDBMAST 2 1 0 connection a Pero 5A G 6 Double click on Slot 2 select Equipments and connect mtcp8ao VO equipment Select cfgstat board and set the slave ipAddr to 192 168 1 101 and slave address to 200 m ISaGRAF MDBMAST2 1 0 connection a Ban 5A S lo Jr mbtepctg wo a mw i OEM Technology Solutions Page 45 EMBEDDED PLC BL2500 User s Manual Modbus Protocol 7 Select ao 4x board set the data type to S Short or 16 bit value and start address to 1 Connect all the Analogue output variables Save and close the l O Connection tool ISaGRAF MDBMAST 2 1 0 connection I aeee E IS ola lalola lala la OEM Technology Solutions Page 46 EMBEDDED PLC BL2500 User s Manual Hardware Reference 9 HARDWARE REFERENCE The Figure 7 shows the signal names and connectors of the BL2500 The BL2500 are equipped with five 1 x 10 friction lock connector terminals J1 J3 J9 J11 and J12 where pin 9 is removed to polarize the connector terminals a 2 x 5 RS 232 signal header a 2 x 5 programming header and an RJ 45 Ethernet jack on the Rabbit core module The RJ 45 jacks at J4 and J5 labelled RabbitNet are serial VO expansion ports for use with RabbitNet I O boards Y Caution The RabbitNet jacks do not support Ethernet connections Be careful to connect your Ethernet cable to th
69. emark of Z World Inc Dynamic C is a registered trademark of Z World Inc Indusoft is a registered trademark of Indusoft Ltd All other brand or product names are trademarks or registered trademarks of their respective holders NOTICE TO USERS When a system failure may cause serious consequences protecting life and property against such consequences with a back up system or safety device is essential The buyer agrees that protection against consequences resulting in system failure is the buyer s responsibility This device is not approved for life support or medical systems OEM Technology Solutions Unit 13 82 Reserve Road Artarmon NSW 2064 AUSTRALIA Telephone 61 2 9966 9424 Fax 61 2 9966 9429 www oem net au EMBEDDED PLC BL2500 User s Manual TABLE OF CONTENTS 1 INTRODUCTION raa a a A 1 ist WRAT IS EMBED DED PLE dodo 1 IN AI A UEM et Ee IE 1 To ABOUT TAS Sem 2 14 sEMBEDDED PEC APPLICATION Rios ads 3 Lo WCEXLOONVENTIONIS st Di A date ita ee ete ada ee 3 126 WINDOWS CONVENTION Sissi dada 3 ine REFERENCE DOCUMENTS EG ind 4 18 ABBREVIATIONS AND TERMINOLOGV ees ese ee ee ee ee ee ee ee mener nennen nnns 4 2 GETTING STARTED Oia 7 2 INTRODUCTION susto e lee nd 7 22 SOFTWARE INSTALLATION stas 7 2 2 1 Installing ISaGRAF Workbench V3 5 ees ee ee EE ee EE ee EE ee Ee ee ee EE ee ee ee ee ee ee 8 2 2 2 Installing EMBEDDED PLC Board Support Package BSP for BL2500 8
70. ense Key ce The User Reference Code can be copied into the Clipboard by double clicking on the box this will select the whole text and pressing Ctrl C The text can be pasted in any document Enter the valid license key in the entry box and press Send If license is valid a message confirming the validation will appear and the EMBEDDED PLC will be active If license is already valid a message dialog box will show the current Reference Code and License Key Keep this numbers for your records and for customer support 7 2 1 6 Setup gt Utility Settings The Target Communication Timeout corresponds to the maximum amount of time waiting for a message coming from the EMBEDDED PLC target during licensing or configuring the kernel The value is expressed in seconds and has to be an integer Minimum value is 1 seconds 7 2 2 Loading Shortcuts 7 2 2 1 Right Mouse Click Clicking the right mouse button anywhere on the main window will bring up a list of the most recently loaded programs Selecting any of the programs in the list will automatically load that program to the attached controller 7 2 2 2 Drag and Drop Once the EMBEDDED PLC Utility is open if a file is dragged from Windows Explorer the Desktop etc and dropped into the main window the file will be automatically loaded to the controller OEM Technology Solutions Page 68 EMBEDDED PLC BL2500 User s Manual FAQ and Troubleshooting 8 FAQ AND TROUBLESHOOTING 8 1
71. er must be greater than the PLC cycle execution time In any case the absolute minimum values for the polling period must be greater than the following Modbus over TCP IP 50 ms Modbus over RS232 or RS485 200 ms 8 3 1 2 ISaGRAF Workbench for EMBEDDED PLC If you experienced problems downloading an application to the Target check the items below e Check that you have communication with the Target check items above e In order to work with EMBEDDED PLC make sure that the RABBIT TIC code for Rabbit based controllers is selected in the Compiler options list before making and downloading the application 8 3 1 3 EMBEDDED PLC Utility Check the items below if you have problems downloading the EMBEDDED PLC Firmware Kernel e Check that the programming cable is connected through DIAG connection to the Target e Check that no other application is using the selected COM port e Check the location of the cold loader pilot BIOS xl and Flash initialization files Select Setup File Locations from the main menu bar Check that the Cold loader COLDLOAD bin Pilot Cold Loader BEDDED PLCXUtiACOLDLDAD BIN E BIOS pilot bin and Flash table Pilot BIDS ech EMBEDDED_PLC Utity pilot bin flash ini files locations are correct It should point to where the EMBEDDED PLC Utility is Flash table Tech EMBEDDED_PLC tiity flash ini installed default C OEMTech EMBEDDED PLCNUtility Press OK OK Cancel Help File Locat
72. eration on SW1 and SW2 with the result set on the LED1 Si ISaGRAF B25TESTI FBTESTI FBD LD Program e ioj xj File Options Help E He QQ LED FALSE S2 TRUE E pos 24 11 OEM Technology Solutions Page 24 EMBEDDED PLC BL2500 User s Manual Running Sample Applications 27 On the FBTEST1 FBD LD Programs window select File menu gt Dictionary On the dictionary window click on Integers Reals tab Double click on DA1 variable and set its value to 1 5 V any value in the 0 3 3 V range Connect a multimeter between DA1 and AGND of the BL2500 and check that the voltage is 1 5 V s ISaGRAF BL25TEST Global integers reals ES Oj xj File Edit Tools Ciptions Help Booleans Integers Reals Timers Messages FB instances Defined words Mame Attrib Adar Value Comment 041 Analog Output DAT 60000 output real Units 28 To stop the monitoring of the PLC application close the Debugger window The programs and dictionary windows in debug mode will be closed 3 4 2 Using Quick Ladder Diagrams 1 Open the ISaGRAF Project Management by double clicking on the ISaGRAF Projects icon on your Desktop or selecting Start menu gt Programs gt ISaGRAF 3 5 gt Projects On the Projects Management window select File menu gt New On the Create new project window enter the name of the project for example b25test2 and Name press OK button The name of project should not 10 configuration Cance
73. fied Modbus Master TCP Interface It supports 16 or 32 bits data type values The Modbus Master TCP Interface Configuration I O board mbtcpcfg has to be defined before connecting this complex equipment The IP address defined in the cfgstat board of this complex equipment must be the same as the one defined in the Modbus Master TCP configuration board mbtcpcfg otherwise this complex equipment will not be open Workbench ERROR It also supports communication with a Modbus slave TCP IP gateway on which multiple serial slaves are connected through one IP address In that case the slave address parameter is used to address the different slaves in the chain Configuration e cfgstat Configuration and Status of this Modbus data group Nb Channels 1 Data quality Possible values are 0 Data quality is BAD 1 Data quality is GOOD Parameters slave ipAddr string IP address defined in the Modbus Master TCP Interface Configuration VO Board Default 192 168 1 100 slave address integer Modbus slave address used in multiple slaves configuration Default 1 e ao 4x Holding registers Modbus data type 4x Nb Channels 8 or 16 Parameters gt data type character 16 or 32 bits data types Possible values are e 16 bit L 32 bit gt start address integer Modbus data start address Default 1 OEM Technology Solutions Page 60 EMBEDDED PLC BL2500 User s Manual Software Reference 6 2 3 ISaGRAF C Functions 6 2
74. files from other ISaGRAF versions 3 Once all the ISaGRAF files have been copied the following group is added to your Programs group ISaGRAF 3 5 E x E Edit View Favorites Tools Help Qe gt Bad OG 27 Search gt Folders I s Book Diagnosis Libraries File and Folder Tasks Y Shortcut Bi l h pe it hortcut Y i rj 1e an E Other Places Y Ar Se Licensin g A Projects Read Me Shortcu bad Shor l Shortcut Details a 1 KB A 1 KB 9 7 objects 4 08 KB 4 My Computer A 2 2 2 Installing EMBEDDED PLC Board Support Package BSP for BL2500 Use the following procedure to install EMBEDDED PLC BSP for BL2500 from the CD ROM 1 Goto BL2500C BSP V1 05 9 0003 007 folder located in the root directory of the CD ROM 2 Open the ISaGRAF folder and double click on INSTALL EXE to launch the ISaGRAF installation wizard Enter the location where the ISaGRAF Workbench was installed default C ISAWIN and press Install The installation wizard will update the ISaGRAF main directory with the VO boards C functions C function blocks and sample applications for the EMBEDDED PLC BL2500 target 2 3 LICENSING THE ISAGRAF WORKBENCH The ISaGRAF V3 5 Workbench you just installed runs for a trial period of 30 days before requiring licensing When not licensed you can not create modify or export IEC programs to a library or export variables to ASCII text file You can license ISaGRAF using either hardware or softw
75. for programming debug Timers 10 8 bit timers 6 cascadable from the first and one 10 bit timer with 2 match registers 8 40 V DC 1 W typical w no load Temperature 40 C to 70 C Humidity 5 to 95 noncondensing Connectors Friction lock connectors five polarized 9 position terminals with 0 1 pitch two 2 position power terminals with 0 156 pitch two 4 position terminals with 0 156 pitch Board Size 100 x 100 x 29 mm Part Number 101 0602 i Only 1 analog output is available for EMBEDDED PLC Not supported in EMBEDDED PLC at this present time Only 1 RS232 serial port E and 1 RS485 serial port D serial ports are supported in EMBEDDED PLC at this present time OEM Technology Solutions Page 76 EMBEDDED PLC BL2500 User s Manual About Indusoft 10 ABOUT INDUSOFT Indusoft Web Studio IWS is a powerful integrated collection of automation tools that include all the building blocks needed to develop modern HMI SCADA instrumentation and embedded applications running on native Microsoft Windows XP 2000 NT CE and CE NET or in Internet and intranet environments Indusoft Web Studio provides a simple drag and drop point and click development environment which mimics the most complex behaviours of you live processes Indusoft Web Studio is ideal e automation solution for industry InduSoft Web Studio Demo Application 12 39 56 ef chemical Petrochemical EA La About InduSoft P
76. ft Digital Input INO1 Switch on the right Digital Input INO2 Moves the window s screen to the left Digital Input INO3 Moves the window s screen to the right On board LED DS3 Central light 2 Onthe SORTING Programs window select x Debug menu Link setup On the PC PLC link parameters window check the Target Slave Intenet address EEATERBIT Number is set to 1 and ETHERNET Port number Cancel communication port is selected Press Setup E E EEE e button and check the IP address of the BL2500 hee ay e lure target is set to 192 168 1 100 Press OK button esti a to close this window Press OK button to close the PC PLC link parameters window OEM Technology Solutions Page 12 3 5 EMBEDDED PLC BL2500 User s Manual Getting Started Ix If you are using RS232 on the PC PLC link parameters w window select COM port and press Setup button Select HU the baud rate 19200 to 600 depending on the current Serial link parameters Baudrate 9200 Parity El Fao E value of the Target PLC Flow control none Le Select Debug menu gt Debug to open 10 x the Debugger window The Debugger Mi dE ca Era window is displayed with a No application message Qi A AD No application 5 Note If the Debugger window shows that an application is currently running application name gt active on the Target PLC press Stop button m on the toolbar to stop the
77. ge 28 EMBEDDED PLC BL2500 User s Manual Running Sample Applications 3 4 4 Using Instruction List 1 11 12 13 Open the ISaGRAF Project Management by double clicking on the ISaGRAF Projects icon on your Desktop or selecting Start menu gt Programs gt ISaGRAF 3 5 gt Projects On the Projects Management window select File menu gt New On the Create new project window enter the name of the project for example b25test4 and jns press OK button The name of project should not E oe ee Cancel exceed 8 characters The b25test4 project is then none ha listed in the Projects Management window Select Edit menu Set comment text Enter a brief description of this project and press OK button This description will be displayed next to the project name in the Projects Management window Double click on b25test4 project An empty B25TEST4 Programs window is displayed ISaGRAF H251ISTA Programs inix fle take Project Tech Debug Optra tdo D ume nus Ti BH ADS 5 Select File menu gt New On the New program window Mame enter the name of the program for example ILtest1 a Toc brief comment select the Language to Quick IL select uvas Begin Style and press OK button The ILtest1 program is Style displayed in the B25TEST4 Programs window Follow Steps 6 to 11 in 3 4 1 to create and populate the application s Dictionary with SW1 and SW2 Boolean input variables and LED1 Boolean output vari
78. h input attribute The next section contains a couple of examples on how to configure the Modbus master interface Section 6 2 2 describes in details each parameter of the Modbus master I O boards and complex equipment 4 2 2 Examples 4 2 2 1 Modbus Master communicating to one Modbus Slave EMBEDDED PLC Target Modbus Master TCP IP Addr 192 168 1 100 Modbus TCP Modbus Slave TCP IP Address 192 168 1 101 Slave Address 1 16 Coils 0x Start Address 21 8 Input Registers 3x 32 bit Reals Start Address 5001 Figure 5 Example 1 Modbus Master to one Modbus Slave over TCP There is one EMBEDDED PLC Target configured as a Modbus Master over TCP and one Modbus Slave over TCP which has 16 Coils or digital outputs starting from address 21 and 8 Input Registers analogue inputs 32 bit Real starting from address 5001 All addresses are expressed in Decimal format OEM Technology Solutions Page 39 EMBEDDED PLC BL2500 User s Manual Modbus Protocol 1 The EMBEDDED PLC Target Modbus Master must be configured as TCP with the IP Address 192 168 1 100 See Section 7 1 4 for instructions on how to configure the EMBEDDED PLC firmware kernel 2 Open ISaGRAF Workbench and create a new project called mdbMast1 Open the Dictionary and define 16 Boolean output variables remCoil01 remCoil02 and 8 Analogue input variables remInpRegO1 reminpReg08 as Reals You can use the Quick Declaration tool to quickly define tho
79. heck box if you have the RS232 to USB converter cable Press OK 2 Select File gt Load Flash Image from the main x menu bar On Choose Flash Image window press button On the Open window select the EMBEDDED PLC Firmware Kernel file lt EMBEDDED PLC Kernel Dir gt BL2500C V1 05 3 023111 bin and press Flash Image File Location EMIR A T Open Press OK on the Choose Flash Image OK eE Help window 3 A Progress window is displayed with the status of the loading process The process consists of four stages sending Coldloader gt Sending Pilot BIOS gt Erasing Flash gt Sending Program 4 After loading is completed a message dialog box is displayed Follow the instructions in the same order Connect DIAG cable gt Reset Target Press OK There are two ways to reset the BL2500 xj unplugging the power supply and then plugging it again also known as a 1 Load bin File successful Connect DIGG cable reset target and press OK power cycle and the other is shorting out the reset pads on the back of the BL2500 board For more information about the location of the hardware reset see Section 2 2 1 in 1 OEM Technology Solutions Page 64 EMBEDDED PLC BL2500 User s Manual 5 On the Kernel License window write down the User Reference Code you can select the code in the User Reference Code and copy it to the clipboard using Ctrl C Contact OEM Technology Solutions or your local distributor t
80. his complex equipment must be the same as the one defined in the Modbus Master TCP configuration board mbtcpcfg otherwise this complex equipment will not be open Workbench ERROR It also supports communication with a Modbus slave TCP IP gateway on which multiple serial slaves are connected through one IP address In that case the slave address parameter is used to address the different slaves in the chain Configuration e cfgstat Configuration and Status of this Modbus data group Nb Channels 1 Data quality Possible values are O Data quality is BAD 1 Data quality is GOOD Parameters gt slave ipAddr string IP address defined in the Modbus Master TCP Interface Configuration VO Board Default 192 168 1 100 slave address integer Modbus slave address used in multiple slaves configuration Default 1 e i Ax Input registers Modbus data type 3x Nb Channels 8 or 16 Parameters gt data type character 16 or 32 bits data types Possible values are S 16 bit L 32 bit gt start address integer Modbus data start address Default 1 OEM Technology Solutions Page 59 EMBEDDED PLC BL2500 User s Manual Software Reference 6 2 2 5 Modbus TCP Master Holding Registers Data Group Equipment Name mtcp8ao or mtcp16a0 Description Modbus Master TCP 8 or 16 Holding Registers 4x Data Group This complex equipment is used to write 8 consecutive holding registers or analogue outputs via the speci
81. in the FCtest1 Flow Chart editor Double click on the box to type in a comment such as Exclusive OR logic for switching on LED Select the Insert a test button e and place it between the Begin symbol and the End symbol Double click on it to display the editing box for that symbol Rename it SW1 SW2 and type in the code SW1 SW2 Select the Insert an action button and place one on each of the two flow links from the test Double click on the action symbol placed on the Yes flow link to display the editing box Rename it LED1 OFF and type in the code LED1 FALSE Double click on the action symbol placed on the No flow link to display the editing box Rename it LED1 ON and type in the code LED1 TRUE OEM Technology Solutions Page 33 EMBEDDED PLC BL2500 User s Manual Running Sample Applications 11 Select the Insert a Repeat Until button a and place it in between the Begin symbol and the SW1 SW2 test symbol Press Delete to just leave the flow line connector behind 12 Select the flow link between the Begin symbol and the End symbol and delete it to allow for the program to run continuously without ending 13 Click on the flow line connector that both the LED OFF and the LED ON action symbols connect to Select the Insert a flow button Y and connect both the LED OFF and the LED ON action symbols to the flow line connector remaining from Step 11 This allows the SW1 SW
82. indow select the desired free output variable and press Connect Repeat the same for the other channels Close the Connect I O channel window after all the output variables have been connected x Free Connect Free Mext remCaill 3 Previous 11 Double click on Slot 2 of the VO Connection window and select the mtcp8ai Equipment Set the slave ipAddr to the same value defined in the TCP Interface Configuration board 192 168 1 101 OEM Technology Solutions Page 42 EMBEDDED PLC BL2500 User s Manual Modbus Protocol am ISAGRAF MDBMASTI 1 0 connection O x File Edit Tools Options Help PSPml tl FR a o mbtcpcfg m eu Slave_ipAddr 192 158 1 101 gm micplbdo Sm slave address 1 E cfgstat fu di Le E do_0x n Em mtcpBai A cfgstat IE E ai 3x IE La L La HEN EN 12 Click on ai_3x board and set the data_type value to L Long data type for 32 bit Reals or Integers and start address to 5001 Connect the analogue input real variables remlnpReg01 to remlnpReg02 to the corresponding channels Save and close the I O Connection tool ow ISaGRAF MDBMASTI 1 0 connection j joj x File Edit Tools Options Help BEE TY ERK a o E mbtcpcefg ru amp 4 mus data type L gm mtcplbdo E Sum start address 5001 cfgstat nu d remInpRegl1 E do Ux n 2 reminpRegD2 mm mtcpBai reminpRegO3 E efgstat ro ds reminpRegO4 B
83. ion close the Debugger window Close the Programs window Try with other sample applications such as the one listed in the introduction of this chapter All the sample applications can run in simulation mode OEM Technology Solutions Page 16 EMBEDDED PLC BL2500 User s Manual Running Sample Applications 3 2 RUNNING APPLICATIONS THAT USE INTERNAL VARIABLES ONLY The Target PLC and your PC must be connected through Ethernet RS232 or RS485 Use the following procedure to run any sample application that uses only internal variables 1 Open the ISaGRAF Project Management by double clicking on the ISaGRAF Projects icon on your Desktop or selecting Start menu gt Programs gt ISaGRAF 3 5 gt Projects On the Projects Management window double click on the bottlef project On the BOTTLEF Programs window select Debug menu gt Link setup On the PC PLC link parameters window enter the Target Slave Number corresponds to the Modbus Slave number of the Target PLC and the Communication port ETHERNET for Modbus TCP or COM for Modbus RTU over RS232 RS485 a If ETHERNET is selected press Setup button and enter the IP address of the target default is 192 168 1 100 Press OK button Press OK button to close the PC PLC link parameters window Y Caution Do not change the port number from 1100 otherwise the Ethernet communication with the ISaGRAF Workbench will not work This port is used exclusively by the communication between ISaGRAF W
84. ions 8 3 2 Before Contacting Technical Support Some things you should try before you contact Technical Support are e Check out the documentation e Consider recent changes on your system If something used to work think about what may have changed New software installation or general system changes can affect performance and general functionality of other software on your system e Verify that the entire system has good low impedance separate grounds for analog and digital signals The BL2500 is often connected between the host PC and another device Any differences in ground potential can cause serious problems that are hard to diagnose e Do not connect analog ground to digital ground anywhere e Verify that the power supply has enough capacity and filtering to support the BL2500 If you cannot find an answer to your technical question in the product documentation or help system send your request to OEM Technology Solutions technical support via email support oem net au OEM Technology Solutions Page 72 EMBEDDED PLC BL2500 User s Manual FAQ and Troubleshooting Please try to define the problem before you contact Technical Support so that you can repeat the steps that led to the problem and specifically identify when and how the problem occurred The Technical Support representative will need to know exactly what the problem is in order to provide help These steps will help us pinpoint and solve your problem more quickly Please
85. ions to run the sorting sample application This sample application displays a SpotLight which shows different tokens being sorted depending on size and colour see the Project Description at the bottom of the Projects Management window This PLC application was written in Flow Chart 1 Start ISaGRAF Workbench by double clicking on the ISaGRAF 3 5 shortcut on your desktop or Start button gt Programs gt ISaGRAF 3 5 gt Projects On the Projects Management window double click on the sorting project 3 ISaGRAF Project Management iol x File Edit Project Tools Options Help Death RES DY B Samples EO Demo with Quick LD programming tm b25rota Rotation of 2 on board leds and 2 digital outputs b25scope Signal generation BL2500 Analog Out and SpotLight fm blinkseq Same implementation with various languages bottlef Flow Chart Simulation of bottle production r demo Complete SFC demo rfsample Sample described in user s guide rfsfc Demonstrates SFC actions in SFC rfstack Demonstrates STACKINT function block EEE sorting Flow Chart Sorting of tokens depending on their size and color Reference b25qld Author OEM Technology Solutions al Date of creation 9 August 2005 Version number 3 0240G 1 04 Description House control lights and shutter This application displays the SpotLight showing a simple room of a house lt uses some of the physical I O of the BL2500 board Digital Input INOO Switch on the le
86. ital output is open circuit 6 2 1 3 BL2500 On board LEDs Name bl25led Description Controls the BL2500 on board LEDs DS3 and DS4 Number of Channels 2 Connection Terminals None Channel Value Correspondence TRUE LED is ON FALSE LED is OFF 6 2 1 4 BL2500 Analog Input Board Name bl25ai Description Software Reference Monitors ADO Analog Input of the BL2500 10 bit resolution over 0 3 3V range Number of Channels 1 Connection Terminals ADO Connection for positive signal channel 1 AGND Connection for negative signal channel 1 Channel Value Correspondence Analog REAL type variable Voltage input in the range 0 3 3 V OEM Technology Solutions Page 56 EMBEDDED PLC BL2500 User s Manual Software Reference 6 2 1 5 BL2500 Analog Output Board Name bl25ao Description Controls DA1 Analog Output of the BL2500 10 bit resolution over 0 3 3V range Number of Channels 1 Connection Terminals DA1 Connection for positive signal channel 1 AGND Connection for negative signal channel 1 Channel Value Correspondence Analog REAL type variable Voltage output in the range 0 3 3 V 6 2 2 Remote I O Boards and Equipments Modbus TCP Master 6 2 2 1 Modbus TCP Master Main Configuration Board Name mbtcpcfg Description Configuration of TCP port used by Modbus Master TCP This board is used to configure the Modbus Master TCP interface and it has to be placed before any other remote devices
87. kLD Program window 17 Follow Steps 17 to 25 in Section 3 4 1 to compile the application and download it to the Target PLC 18 Double click on LDtest1 program The LDTEST1 Quick LD Programs window is displayed with the variables in BLUE or RED colour depending on its current state FALSE or TRUE respectively Press the SW1 short circuit digital input INOO and the LED1 will be turned ON as well as the state of LED1 in the Programs window will change The PLC program implements a Boolean XOR operation on SW1 and SW2 with the result set on the LED1 OEM Technology Solutions Page 26 EMBEDDED PLC BL2500 User s Manual Z amp ISAGRAF B25TEST2 LDTEST1 Quick LD Program File Edit Options Help A HS aas Exclusive OR XOR logic for switching on LED 1 Swit SW2 LED1 ee je mi S1 S2 bo pos 5 1 19 To stop the monitoring of the PLC application close the Debugger window The programs and dictionary windows in debug mode will be closed 3 4 3 Using Structured Text Running Sample Applications 1 Open the ISaGRAF Project Management by double clicking on the ISaGRAF Projects icon on your Desktop or selecting Start menu gt Programs gt ISaGRAF 3 5 gt Projects On the Projects Management window select File menu gt New Create new project x Cancel On the Create new project window enter the name of the project for example b25test3 and press OK button The name of project should not exceed 8 ch
88. l exceed 8 characters The b25test2 project is then none listed in the Projects Management window Select Edit menu Set comment text Enter a brief description of this project and press OK button This description will be displayed next to the project name in the Projects Management window Double click on b25test2 project An empty B25TEST2 Programs window is displayed ISAGRAF B25TEST2 Programs AE File Make Project Tools Debug Options Help amp mex DEON SLK OM ES Begin LDtest1 Ladder Diagram 5 Select File menu gt New On the New program window hame enter the name of the program for example LDtest1 a Komment brief comment select the Language to Quick LD select Language Begin Style and press OK button The LDtest1 program Stie is displayed in the B25TEST2 Programs window OEM Technology Solutions Page 25 EMBEDDED PLC BL2500 User s Manual Running Sample Applications 6 Follow Steps 6 to 11 in Section 3 4 1 to create and populate the application s Dictionary with SW1 and SW2 Boolean input variables connected to Channel 1 and 2 of the bl25di VO board respectively and LED1 Boolean output variable connected to Channel 1 of the bl25led VO board 7 Onthe B25TEST2 Programs window double click on LDtest1 program The Quick Ladder Diagram Editor contains an editing grid a logical matrix where each cell of the matrix may contain F2 EIE up to one LD symbol Press F2 Contact on
89. le click on ILtest1 program The ILTEST1 ST Programs window is displayed with the line numbers visible and the TRUE or FALSE current state for each variable displayed in the Value column Short circuit digital input INOO to set SW1 to FALSE the LED1 will be turned ON as well as the state of LED1 in the Programs window will change The PLC program implements a Boolean XOR operation on SW1 and SW2 with the result set on the LED1 ISaGRAF B25TEST4 ILTEST1 IL program of x File Edit Search Options Help HO A Line Label Inst Ope Comment Exclusive OR logic for switching on LED LD SW1 TRUE XOR SW2 TRUE ST LEDI FALSE 17 To stop the monitoring of the PLC application close the Debugger window The programs and dictionary windows in debug mode will be closed 3 4 5 Using Sequential Function Chart 1 Open the ISaGRAF Project Management by double clicking on the ISaGRAF Projects icon on your Desktop or selecting Start menu gt Programs gt ISaGRAF 3 5 gt Projects On the Projects Management window select File menu gt New On the Create new project window enter the i ame name of the project for example b25test5 and j EA press OK button The name of project should not asl acne a Cancel exceed 8 characters The b25test5 project is then none El listed in the Projects Management window Select Edit menu Set comment text Enter a brief description of this project and press OK button This des
90. ll the necessary tools to program the Z World SBC BL2500 Coyote via the ISaGRAF Soft Logic package This chapter will help you to quickly install the necessary software to run a PLC sample application on the BL2500 target using the ISaGRAF Workbench This chapter contains also important information about licensing your product To run the EMBEDDED PLC software products it is required to have a Personal Computer PC with at least a 133 MHz processor 550 MHz or faster processor is recommended This PC will be referred as the Host The PC must have the following hardware and software configuration e Windows 2000 or XP operating system e 128 MB of RAM required 256 MB or more recommended e 1 25 to 2 GB of available hard disk space e CD ROM or DVD ROM drive e VGA or hardware that supports console redirection required Super VGA supporting 800 x 600 or higher resolution monitor recommended e 1 serial port COM1 COM4 e Ethernet card 5 Note The EMBEDDED PLC Application Kit comes with one Z World SBC BL2500 pre loaded with the EMBEDDED PLC Firmware Kernel If you require to load the Firmware Kernel to another BL2500 or to upgrade the current one go to Chapter 7 which describes in detail the installation of the additional software and how to load or upgrade the EMBEDDED PLC Firmware Kernel to the Target 2 2 SOFTWARE INSTALLATION The EMBEDDED PLC CD ROM contains the following software e ISaGRAF V3 50 EMBEDDED PLC ISa
91. me physical port therefore only one can be connected to the target at any given time 4 1 2 Defining Variable Addresses for access via Modbus To make data available from the EMBEDDED PLC target to a Modbus master you must first define the variable with a Network Address The variable must be declared with a network address that is in the Modbus format All the addresses are expressed in this document in decimal format unless other format is explicitly specified 5 Note Normally the ISaGRAF Workbench always formats network addresses in hexadecimal There is anew undocumented option in ISaGRAF V3 5 to set all network address displays and edit controls to decimal This option is stored in isa ini file located in ISaGRAF folder gt EXE EDIT NwAddrDecimal 1 gt 1 Decimal O Hexadecimal OEM Technology Solutions Page 35 EMBEDDED PLC BL2500 User s Manual Modbus Protocol Table 2 describes the Modbus address mapping supported by the EMBEDDED PLC target Table 2 Modbus slave addresses mapping Modbus Data Type Network Address range Decimal Coils Read Write 1 9999 Discrete Inputs Read Only 10001 19999 Input Registers 16 bit Integer Read Only 30001 34999 Input Registers 32 bit Integer Float Read Only 35001 39997 odd address Holding Registers 16 bit Integer Read Write 40001 44999 Holding Registers 32 bit Integer Float Read Only 45001 49997 odd address In order to ex
92. mware Kernel 2 Enter the desired Modbus Slave Number Default is 1 Select Use Modbus TCP radio button and fill the Modbus TCP configuration parameters if you want to use Modbus TCP as communication protocol Otherwise select Use RS232 or Use RS485 radio buttons Once all the configuration parameters have been entered press OK The communication protocol and slave number are used to communicate the Target PLC with the ISaGRAF Workbench and Modbus master 5 Note The Modbus Slave Number parameter corresponds to the Target Slave Number on ISaGRAF Workbench Default is 1 In order to communicate the ISaGRAF Workbench with a specific Target PLC both numbers must be the same This is also valid for communication between the Target PLC and a Modbus master using Modbus protocol 3 After pressing OK the following message dialog box is shown Press OK and your x la jer Pd E Ma be i Configuration stored OK EMBEDDED PLC Firmware Kernel is ACTIVE active and ready to be used wi e ISaGRAF Workbench The DS2 red LED is turned OFF and the DS1 yellow LED starts flashing every second 7 2 EMBEDDED PLC UTILITY SOFTWARE REFERENCE To use the EMBEDDED PLC Utility you must have an EMBEDDED PLC Firmware Kernel bin file to load to your Rabbit based controller Click on File gt Load Flash Image enter the bin file s location in the dialog box and click OK This Utility works only with serial connection and it requires the programming c
93. nnnnonnnnnnnncnaronnnninons 20 3 4 2 Using Quick Ladder Diagrams ooccccccoccncoconcnnccnncnnconanoncnnoncnnnnarononnnnnnonnnnrnnonanrnnnnnas 25 3 4 3 LISING Structured Ted sarc dotes Gr Ee Se a tie oe DE De 2f 3 4 4 Using Instiueuon EISE sede cola etie dida 29 3 4 5 Using Sequential Function Chart sees ee ee ee ee ee ee AR ee ee ee ee ee Ee ee ee ee 30 3 4 6 Brel ole Ao rr EE NE EA ER N 33 d MODBUS PROTOCOL iaa 35 4 1 EMBEDDED PLC TARGET AS A MODBUS SLAVE ees ese ee see ee ee se ee ee ee ee nnns 35 4 1 1 Contigurina Modbus Sla Vesi aani ini 35 4 1 2 Defining Variable Addresses for access via Modbus cccoooccncccoccnnccncnnconononcnnonnnnnnos 35 4 2 EMBEDDED PLC TARGET AS A MODBUS MASTER ees ee ee ee ese ee se ee ee ee ee ee ee ee ee ee ee 38 4 2 1 Configuration of Modbus Master over TCP esse ee ee ee ee ee ee ee ee ee ee ee ee ee 38 4 2 2 zin P ali is a DE Ee IS DE Ie ase 39 5 HARDWARE REFERENCE es ed oe ee os oe ese bee Oe ee ress bee SE wese raices 47 54 DIELTAEINEEES is oe as a o dota MEE ee DA AT o NC CO TS A E A 48 6 5 ANALOG INRO Teclas coa 48 OEM Technology Solutions Page EMBEDDED PLC BL2500 User s Manual s4 ANACO OUTPUT ES ES GM Ge DE e a 49 9 5 COMMUNICATION INTERFACES 5 is es is Deeg casio 50 5 5 1 o O M c D EMI E 50 9 5 2 ElierhEL dolo ET 51 5 6 LEDANDICATO Ss mes 52 6 SOFIWARE REFERENCE esse lt 53 D MORE ABOUT SAO RAT E IE LE ML MUN Td D EMIT NE 53 6 1 1 AAA A E
94. nual Hardware Reference DAO too low 7 lc m N a RI LM324 e PB Pl 10 kk Le e N Rm LM324 s AAA PBS 5I 7 TOM ii DAD too high Figure 10 Schematic Diagram of the A D Converter The A D converter programs DAO using a successive approximation binary search until DAO equals the A D converter input voltage That programmed DAO voltage is then reported as the A D converter value The A D converter transforms the voltage at DAO into a 13 2 mV window around DAO Because the A D converter circuit uses a 13 2 mV window the accuracy is 6 6 mV DAO can range from 0 1 V to 3 1 V which represents 227 steps of 13 2 mV This represents a resolution of approximately 8 bits Since the D A converter is able to change the DAO output in 3 22 mV steps there are 930 steps over the range from 0 1 V to 3 1 V This represents a resolution of approximately 10 bits The A D converter has no reference voltage There is a relative accuracy between measurements but no absolute accuracy without calibration This is because the 3 3 V supply can vary 5 the pulse width modulated outputs might not reach the full O V and 3 3 V rails out of the Rabbit 3000 microprocessor and the gain resistors used in the circuit have a 1 tolerance For these reasons each BL2500 needs to be calibrated individually with the constants held in software to be able to rely on an absolute accuracy The BL2500 has this calibration support An A D conversion takes appro
95. o obtain a valid license key Remember to quote the User Reference Code Press Cancel An error message dialog is displayed press OK and close the EMBEDDED PLC Utility 5 Note Loading or Upgrading the Firmware Kernel EMBEDDED PLC Firmware Kernel License x Copyright c 2005 OEM Technology Solutions Pty Ltd This is a new or upgrade application program You will need to enter the license key before the EMBEDDED PLC Firmware Kernel runs Please contact OEM Technology Solutions Pty Ltd or your local EMBEDDED PLC representative to obtain your license key You will need to provide the reference number detailed below OEM Technology Solutions Pty Ltd can be contacted on Ph 61 2 9966 9424 Fax 61 2 9966 9429 Email support oem net au User Reference Code MENA ASIA EE License Key res Even if your Target is not active without valid license key you can run several samples in the ISaGRAF Workbench in simulation mode To run those sample files go to Section 0 6 Once you have a valid license key open the EMBEDDED PLC Utility Select Setup gt Kernel License Follow the instructions on the message dialog box in the same order Press OK gt Reset Target After a few seconds the License Window will be displayed and the DS2 led red will be turned on 7 Enter the valid license key in the License Key entry box and press Send A confirmation message is displayed Save the User Reference Code and License Key for fu
96. on resistors in place on the BL2500 at each end of the network 1 AAA E ili TEE EE 7 E t Ia L ir i I E kl fa RH Figure 13 RS485 Termination and Bias Resistors 5 5 2 Ethernet Port Figure 14 shows the pinout for the RJ 45 Ethernet port J4 Note that some Ethernet connectors are numbered in reverse to the order used here ETHERNET RIAS Plug Figure 14 RJ 45 Ethernet Port Pinout Three LEDs are placed next to the RJ 45 Ethernet jack one to indicate an Ethernet link LNK one to indicate Ethernet activity ACT and one to indicate when the RCM3200 is connected to a functioning 100Base T network SPD The RJ 45 connector is shielded to minimize EMI effects to from the Ethernet signals OEM Technology Solutions Page 51 EMBEDDED PLC BL2500 User s Manual Hardware Reference 5 6 LED INDICATORS The EMBEDDED PLC Kernel running on the BL2500 uses three LEDs to indicate status e DS1 yellow When this LED is flashing every second it indicates that the Target PLC is licensed and active e DS2 red This LED is turned ON after reset the Target PLC If the Target PLC is not licensed the LED will remain ON indefinitely If the Target PLC is licensed the LED will be turned OFF after 8 seconds Also this LED is turned ON during configuration of the Target PLC DS3 and DS4 yellow LEDs are used via ISaGRAF Workbench VO boards OEM Technology Solutions Page 52 EMBEDDED PLC BL2500 User s Manual Softwar
97. on the START button and press TRUE button The bottle production will start ISAGRAF BOTTLEF GRAF1 SpotLight ioj xi Fie Edit Insert Options Help DO Balis tapenen x emir eg START STOP OEM Technology Solutions Page 17 EMBEDDED PLC BL2500 User s Manual Running Sample Applications 5 Onthe Debugger window select Options menu X Parameters Change the Cyclic refresh Communication time out duration value to 200 This value corresponds to Cochicirctresh duration 200 Cancel the refresh rate of the SpotLight Press OK button All times ares given in milliseconds x di 6 On the SpotLight window double click on the t 1s box Enter new value Change the variable SPEED value to t 200ms and press Write button The bottle production will speed up par See Er by a factor of two 7 Repeat this procedure for the rfstack application 3 3 RUNNING APPLICATIONS THAT USE BL2500 INPUTS AND OUTPUTS 3 3 1 Creating l O connectors The EMBEDDED PLC Application Kit comes with a bag of cables connectors and crimp terminals in order to connect to the I Os of the BL2500 To create an VO connector you will need to assemble a wiring harness using the friction lock connectors and crimp terminals supplied with the EMBEDDED PLC Application Kit In addition you will need e Wire 22 to 30 AWG 0 33 mm to 0 049 mm for the 0 1 crimp terminals 22 to 26 AWG 0 33 mm to 0 13 mm for the 0 156 crimp terminals
98. ooting which contains more information about how to troubleshoot your particular problem OEM Technology Solutions Page 13 EMBEDDED PLC BL2500 User s Manual Getting Started 2 6 WHERE DO GO FROM HERE The next chapter describes how to run the other sample applications and step by step instruction on how to create a simple PLC application The ISaGRAF User s Manual and the ISaGRAF Workbench on line help contain a complete description of the Workbench features and capability as well as a complete PLC programming languages reference The User s Manual can be found in the Documentation folder of the CD ROM ISaGRAF pdf OEM Technology Solutions Page 14 EMBEDDED PLC BL2500 User s Manual Running Sample Applications 3 RUNNING SAMPLE APPLICATIONS The ISaGRAF Workbench provides two modes of running PLC applications e Simulation mode The PLC application runs entirely on the PC without the need to have a Target PLC connected This mode is very useful to perform complete structural and functional tests prior to deploying the application to the target hardware e Real mode The PLC application is first downloaded to a Target PLC and then the Target PLC executes the application The Workbench monitors the program execution as well as the status of internal and VO variables The EMBEDDED PLC ISaGRAF V3 5 Workbench plus the EMBEDDED PLC BL2500 BSP includes several sample applications There are three types of sample applications e
99. or window is displayed Press Exit button ISaGRAF B25TEST1 Code Generator File Options Edit Help Verifying variables declarations Verifying FBtestl No error detected Code Generator x No error detected Resetting temporary files Building configuration data Linking object files Do you want to exit the Code Generator now Relocating object files Post compiling code No error detected No error detected 24 Select Debug Link setup or press Link Setup and configure the Target PLC PC link Follow the guidelines on Step 2 of Section 3 2 25 Select Debug gt Debug or press Debug to open the Debugger window If an application is running stop it press Stop button on the toolbar On the Debugger window select File gt Download to download the b25test1 application to the Target PLC A progress bar on the Debugger window shows the progress of the download process Once the downloading is completed the B25TEST1 Debug programs window is displayed On the Debugger window the application state will be RUN 26 Double click on FBtest1 program The FBTEST1 FBD LD Programs window is displayed with the variables in BLUE or RED colour depending on its current state FALSE or TRUE respectively If the digital input INOO of the BL2500 is short circuited SW1 is FALSE and LED DS3 will be turned ON as well as the state of LED1 in the Programs window will change The PLC program implements a Boolean XOR op
100. orkbench and the EMBEDDED PLC target b If serial COM port is selected COM1 COMA press Setup button and select either 19200 9600 4800 2400 1200 or 600 baud rate depending on the current configuration of your EMBEDDED PLC target 5 Note The EMBEDDED PLC Kernel supports baud rates from 19200 to 600 The other parameters are fixed no parity 8 data bits 1 stop bit and no flow control Note also that ISaGRAF supports serial ports COM1 to COM4 If you are using a USB to serial converter cable check that the com port assigned is between COM1 and COM4 If not change the serial port settings on your Windows Operating System see Section 8 2 Many USB to serial converters are assigned to COM5 port or higher after its installation Select Debug menu gt Debug to open the Debugger window If Debugger window displays lt application name gt active message stop the current application that is running by pressing the Stop button moy on the toolbar or select File menu gt Stop application A No application message is displayed Download the bottlef application by selecting File menu Download Select RABBIT TIC code for Rabbit based controllers on the Download window and press Download button A progress bar on the Debugger window will show the progress of the downloading process Once the downloading is completed the application runs immediately and the SpotLight window is displayed In the SpotLight double click
101. r to the RS 232 to USB converter cable on Windows XP Open Control Panel gt System Click on Device Manager On the Device Manager window expand the Ports COM amp LPT category and select the USB Serial Port COMx Select Action gt Properties on the menu bar On the USB Serial Port COMx Properties window click on Port Setting tab and click on Advanced On the Advanced window change the COM port number to within COM1 to COM4 range For more information about device settings contact your local system administrator Can use the other serial ports on the BL2500 from an ISaGRAF application The EMBEDDED PLC Firmware Kernel Version 1 05 uses one RS232 serial port E or one RS485 serial port D to communicate with the ISaGRAF Workbench or Modbus master Contact OEM Technology Solutions or your local EMBEDDED PLC distributor for information about custom solutions for the EMBEDDED PLC Kernel Can I have 2 analog outputs instead of 1 analog input and 1 analog output The EMBEDDED PLC Firmware Kernel Version 1 05 has the analog I O configuration fixed For more information about custom I O configuration on the EMBEDDED PLC BL2500 contact OEM Technology Solutions of your local EMBEDDED PLC distributor Can l use RabbitNet with EMBEDDED PLC BL2500 In Version 1 05 of the EMBEDDED PLC BL2500 BSP RabbitNet is not supported Contact OEM Technology Solutions or your local EMBEDDED PLC distributor for information about features to be implemente
102. rogram Click on Dictionary icon T or click on File menu Dictionary Double click on the variable to assign the Modbus address The following dialog window is displayed Integer Real Variable E l X Network Address 40001 Name Comment Sutter level current position Unit Conversion none Attributes Format Integer standard Real Internal Cancel C Dutput Mext Constant Initial value 0 l Retain Previous Extended Met Previous ET Enter the complete Modbus address in the Network Address field and press Store button See the previous Note on how to change the format Decimal or Hexadecimal of the Network Address field of the above window If the variable is of Boolean type and its attribute is internal or output the Network Address must be defined within the range of Modbus Coils 1 9999 If the variable is of Boolean type and its attribute is internal or input the Network Address must be defined within the range of Discrete Inputs 10001 19999 OEM Technology Solutions Page 36 EMBEDDED PLC BL2500 User s Manual Modbus Protocol If the variable is of Integer type and its attribute is internal or input the Network Address must be defined within the range of Input Registers 30001 39997 If the variable if of Integer type and its attribute is internal or output the Network Address must be defined within the range of Holding Registers 400
103. s a complete PLC programming environment including an editor for each of the PLC programming languages downloading PLC application to the target simulation program debugging tools and on line monitoring of the PLC application BL2500 Target PLC 1 2 BL2500 OVERVIEW The BL2500 is an advanced Single Board Computer that incorporates flash memory SRAM digital VO ports A D converter input D A converter outputs RS232 RS485 ports and Ethernet interface 10 100 Mbps The BL2500 SBC gives PLC designers extremely low cost embedded control for high volume applications such as product control factory equipment control access control HVAC and vending machines The BL2500 s compact board size of 100 x 100 mm is easily mountable in standard 100 mm DIN rail trays External connections via polarized locking industry standard Molex type connectors enable rapid assembly with wire harnesses These connectors also provide dependable cable harness connectivity to VO Main features of the EMBEDDED PLC Firmware Kernel running on the BL2500 Target PLC are shown in Table 1 OEM Technology Solutions Page 1 EMBEDDED PLC BL2500 User s Manual Introduction Table 1 Main Features of the EMBEDDED PLC Firmware Kernel V1 05 on the BL2500 Kernel filename BL2500C V1 05 3 023111 bin SBC model supported I Os supported Communications Memory Space ISaGRAF V3 50 features not supported by EMBEDDED PLC BL2500 with Rabbit core module RCM320
104. s at 3 3 V is equal to the time the signal is O V the duty cycle will be 50 and the average signal will be 1 65 V If the time at 3 3 V is only 25 of the time then the average voltage will be 0 825 V Thus the software needs to only vary the time the signal is at 3 3 V with respect to the time the signal is at O V to achieve any desired voltage between 0 and 3 3 V It is very easy to do pulse width modulation with the Rabbit 3000 microprocessor because the chip s architecture includes an advanced PWM feature 5 5 COMMUNICATION INTERFACES 5 5 1 Serial Ports The BL2500 can be configured using EMBEDDED PLC Utility to use either one RS 232 serial port E or the RS485 serial port D The serial port chosen will be used as the communication channel with either the ISaGRAF Workbench or a Modbus master The serial port A is used by the programming cable Table 3 EMBEDDED PLC BL2500 Serial Port Configuration Programming Port J3 Rabbit core module RS 232 3 wires 9 5 1 1 RS 232 The BL2500 RS 232 serial communication is supported by an RS 232 transceiver This transceiver provides the voltage output slew rate and input voltage immunity required to meet the RS 232 serial communication protocol Basically the chip translates the Rabbit 3000 s CMOS TTL signals to RS 232 signal levels Note that the polarity is reversed in an RS 232 circuit so that a 3 3 V output becomes approximately 6 V and O V is output as 6 V The RS 232 transcei
105. se variables Tools menu gt Quick Declaration Save and close the Dictionary Quick declaration xX Cancel Numbering Symbol Attributes C Internal Input C Constant C Dutput Other Retan Format C Integer Length Digits 3 Inthe ISaGRAF Programs window click the I O connection tool icon Ll On the l O Connection tool click the Set board equipment con al The following window is displayed x bl 5ao BL2500 Analog Output bl 5di BL2500 Digital Inputs bl25do BL2500 Digital Out bl25led BL2500 D53 and D54 LEDs Cancel Modbus master serial Dort com a 02361 ar OEM 0236x Up to 6 Analog Inputs Note of 361uar OEM 0236x LEDs of 361ud DEM 0 236x LEDs of 3b5ar OEM 0236 4 x Analog Inputs az3b5xdi DEM 0236x 16 Digital Inputs az 3b5xdo OEM 0236x 18 Digital Outputs a2 3b5xled DEM 0 236x LEDs pcia DEM PC1000 10 Analogue Inputs pcl ao OEM PC1000 2 Analogue Output nc 1 Qaost DEM PC1000 Analog Out Statu Library Boards C Equipments 4 Select mbtcpcfg VO configuration board and press OK The following information is displayed in the VO connection tool This board is the main configuration of the Modbus master interface All the parameters displayed here affect all the data groups linked to this board This configuration board MUST be defined before the Modbus data groups boards OEM Technology Solutions Page 40 EMBEDDED PLC BL2500 User s Manual
106. sed when you click on them e Lists are panes white boxes in windows or dialog boxes containing two or more selectable options e Combo boxes have arrows that when clicked show part or all of an otherwise concealed list Note The dialogs and procedures described in this manual are valid for Windows 2000 and XP Some terms may vary according to the operating system type language and version you are using 1 7 REFERENCE DOCUMENTS 1 019 0120 041215 H Coyote BL2500 C Programmable Single Board Computer with Ethernet User s Manual 2002 2004 Z World Inc 2 SaGRAF Version 3 5 User s Guide 1994 2004 ICS Triplex ISaGRAF Inc 3 019 0108 050610 P Rabbit amp 3000 Microprocessor Users Manual 2002 2005 Rabbit Semiconductor 4 Modbus Application Protocol Specification V1 1a 1 8 ABBREVIATIONS AND TERMINOLOGY The following abbreviations are terms used throughout the document Heating Ventilation and Air Conditioning This is sometimes referred to as climate control OEM Technology Solutions Page 4 EMBEDDED PLC BL2500 User s Manual Introduction Random Access Memory EE ENLI A M OEM Technology Solutions Page 5 EMBEDDED PLC BL2500 User s Manual Introduction This page is intentionally left blank OEM Technology Solutions Page 6 EMBEDDED PLC BL2500 User s Manual Getting Started 2 GETTING STARTED 2 1 INTRODUCTION The EMBEDDED PLC Application Kit provides a
107. t Hi ISaGRAF B25TEST1 FBTEST1 FBD LD Program ni xj File Edit Tools Options Help Da xul H Eg aai a lio oH aS l exclusive OR pos 26 B 16 Save the program by selecting File menu Save Press OK button on the Update diary window Close the FBtest1 FBD LD Program window 17 On the B25TEST1 Programs window click on I O connection button on the toolbar OEM Technology Solutions Page 22 EMBEDDED PLC BL2500 User s Manual Running Sample Applications slal x File Edit Tools Options Help PBem LLER SE 18 Double click on Slot 0 or press Set board equipment button E on the toolbar Select bl25di board 19 20 21 22 BL2500 Digital Inputs and press OK button The bl25di VO board is placed in Slot 0 Double click on Channel 1 On the Connect I O channel window press Connect button several times until all the free variables are connected Press Close button ow ISaGRAF B25TEST1 10 connection m iol x File Edit Tools Options Help amp pPSro tl FR 8 E bl25di n eal CI 9 SWI 5 2 o swe 2 EB 4 4 La 5 ES 6 6 L7 4 8 7i 5 B7 Ls 10 4 Iu 4 Double click on Slot 1 and select bl25led BL2500 on board LEDs board Double click on Channel 1 and connect the free variable LED1 Press Close button Double click on Slot 2 and select bl25ai
108. t such as Microsoft Outlook will be displayed Fill out the information on the message body Contact details and Workbench Serial Number located on the License Registration Form Once you have filled out all the information send the e mail to support oem net au The e mail client application must be running before pressing Proceed button b Alternatively if instead of e mail client such as Microsoft Outlook you use web based email or a command line e mail such as pine compose manually a new message indicating the Workbench Serial Number that appears in the License Registration Form User Code 1 and 2 and Contact details and send it to support oem net au 3 Alternatively if you do not have an e mail address or access to the Internet copy the User Code 1 and User Code 2 into the SaGRAF License Registration Form that comes in the Application Kit and send the completed form to OEM Technology Solutions by fax Fax Number 61 2 9966 9429 4 OEM Technology Solutions will send you the ISaGRAF software license within two business days of receiving the completed Form Press Close button to close the License Manager 2 3 1 Adding the software license The ISaGRAF software license consists of two sets of 4 Registration Keys Upon reception of the Registration Keys open License Manager and follow these instructions 1 On the Available Components select ISaGRAF 3 Software License and press Add button Select the purchased number of I O
109. t by double clicking on the ISaGRAF Projects icon on your Desktop or selecting Start menu gt Programs gt ISaGRAF 3 5 gt Projects On the Projects Management window select File menu gt New p On the Create new project window enter the name of the project for example b25test6 and 2 S press OK button The name of project should not 9 senfiguration Cancel exceed 8 characters The b25test6 project is then Liters El listed in the Projects Management window Select Edit menu gt Set comment text Enter a brief description of this project and press OK button This description will be displayed next to the project name in the Projects Management window Double click on b25test6 project An empty B25TEST6 Programs window is displayed ISAGRAF B25TEST6 Programs AE File Make Project Tools Debug Options Help D mex DER Siel Name o Select File menu gt New On the New program window Be MA enter the name of the program for example FCtest1 a Lampa brief comment select the Language to FC select Begin nee E Style and press OK button The FCtest1 program is displayed in the B25TEST6 Programs window Follow Steps 6 to 11 in 3 4 1 to create and populate the application s Dictionary with SW1 and SW2 Boolean input variables and LED1 Boolean output variable On the B25TEST6 Programs window double click on FCtest1 program Select the Insert a comment button and place the comment box
110. that e mail to obtain license pricing and payment information Contact details Company Name Address Telephone Fax and e mail 2 3 2 Adding a hardware license optional When using a hardware license dongle on Windows 2000 XP systems you must install the Sentinel driver in order for the dongle to be seen Open the ISaGRAF V3 5 Sentinel folder located in the root directory of the CD ROM and double click on Setup exe Follow the on screen instructions to install the driver After the installation is completed connect the dongle to a parallel or USB port and open the License Manager Start menu gt OEM Technology Solutions Page 9 EMBEDDED PLC BL2500 User s Manual Getting Started Programs gt ISaGRAF 3 5 gt Licensing On the Selected Components list the ISaGRAF 3 Hardware license will be shown active 2 4 BL2500 CONNECTIONS 2 4 1 Connect a Power Supply 1 Connect the AC adapter to header J2 on the BL2500 as shown in Figure 1 Match the friction lock tab on the friction lock connector to the back of header J2 on the BL2500 as shown The friction lock connector will only fit one way Plug in the AC adapter Application Kits sold outside North America or Australia include a friction lock connector that can be connected to header J2 on the BL2500 Connect the leads from your power supply to the friction lock connector to preserve the polarity indicated in the figure The power supply should deliver 8 40 VDC at 500
111. ture reference and technical support Press OK The DS2 led red will be turned off and DS1 led yellow will start flashing every second as an indication that the Kernel is licensed and active For more information about the BL2500 LED status see Section 5 6 7 1 4 Configuring the Firmware Kernel If you purchased an EMBEDDED PLC Application Kit the BL2500 comes pre configured for Use Modbus TCP and the following TCP IP values IP address 192 168 1 100 Netmask 255 0 0 0 Default gateway 192 168 1 1 If you want to check or change the Target PLC configuration follow these instructions 1 Open the EMBEDDED PLC Utility and check the communications setup Select Setup Target Configuration Follow the instructions on the message dialog box in the same order Connect DIAG cable Press OK gt Reset Target After a few seconds the Target Configuration Window is displayed EMBEDDED PLC Target Configuration X Copyright c 2006 OEM Technology Solutions Module version 1 10 Kernel Version 1 05 Kernel Description embeddedPLE for BL2500 Modbus Slave Number 1 255 Madbus TE gt Use Modbus TCP IP address Subnet mask fi 32 168 1 100 255 255 255 0 Default gateway fi 92 168 1 1 C Use R5232 Baud Rate 19200 Cancel Help Modbus ATU aver R5 232 R5485 Use A5485 OEM Technology Solutions Page 65 EMBEDDED PLC BL2500 User s Manual Loading or Upgrading the Fir
112. unction blocks are available for simulation Section 6 2 3 and 6 2 4 describes C functions and C function blocks that are specific to the BL2500 and are not available for simulation 6 2 ISAGRAF SOFTWARE REFERENCE This section presents information about the specific elements of the ISaGRAF Workbench Library for the EMBEDDED PLC BL2500 VO boards C functions and C function blocks 6 2 1 I O Boards ISaGRAF I O board library for the BL2500 is included as part of the BL2500 BSP to make it easy to communicate with the BL2500 supported inputs and outputs These I O boards are described in the following sub sections 6 2 1 1 BL2500 Digital Inputs Board Name bI25di Description Monitors INOO IN15 of the BL2500 Digital Inputs Parameters None Number of Channels 16 Connection Terminals INOO to IN15 Connection for positive signal channel 1 to 16 GND Connection for negative signal all channels Channel Value Correspondence TRUE When digital input pulled up to greater than 2 3 V Vinumin FALSE When digital input pulled down to less than 0 9 V Vinimax OEM Technology Solutions Page 55 EMBEDDED PLC BL2500 User s Manual 6 2 1 2 BL2500 Digital Outputs Board Name bl25do Description Controls OUTO OUT of the BL2500 digital sinking outputs Number of Channels 8 Connection Terminals OUTO to OUT7 Connection of channels 1 to 8 Channel Value Correspondence TRUE Digital output is short circuit to O V FALSE Dig
113. ve support 8 Under mtcp16do equipment double click on cfgstat board Enter the slave ipAddr defined previously in the mbtcpcfg board 192 168 1 101 It is important that the IP address defined in the TCP Interface Configuration board mbtcpcfg and the configuration board of the mtcp16do data group are the same The slave_address parameter is used if you have a TCP IP to RS232 485 converter where multiple slaves can be connected to one IP address The status of the data quality of the group is returned in Channel 1 of the cfgstat board integer input OEM Technology Solutions Page 41 EMBEDDED PLC BL2500 User s Manual Modbus Protocol mr ISAGRAF MDBMASTI 10 connection p lOl x File Edit Tools Options Help eeen tt FR a o mbtcpcfg ru amp bus slave ipAddr 192 158 1 101 gm mtcplbdo Sus slave address 1 BI cfgstat na d Iri do_Ox ns EN 6 La EN a La 9 Under mtcp16do equipment double click on do_0x board Double click on start_address parameter to modify the starting address of the Modbus data group ww SaGRAF MDBMASTI I O connection E nmi X File Edit Tools Options Help 56 BBPA LEKE o mbtcpefg cog 4 mel start address 21 gm 3 mtcpl bdo EB a E efgstat ru d Bx do x n e Fa p 4 5 1 Ira e p Elie e a Fa e 4 Fa p E Y 10 On the right section of the I O Connection tool double click on Channel 1 On the Connect VO channel w
114. ver also provides the proper line loading for reliable communication RS 232 can be used effectively for distances of up to 15 m 9 5 1 2 RS 485 The BL2500 has one RS 485 serial channel which is connected to the Rabbit 3000 Serial Port D through an RS 485 transceiver The half duplex communication uses PA4 to control the transmit enable on the communication line Using this scheme a strict master slave relationship must exist between devices to insure that no two devices attempt to drive the bus simultaneously The BL2500 can be used in an RS 485 multidrop network spanning up to 1200 m 4000 ft and there can be as many as 32 attached devices Connect the 485 to 485 and 485 to 485 using single twisted pair wires as shown in Figure 12 Note that a common ground is recommended OEM Technology Solutions Page 50 EMBEDDED PLC BL2500 User s Manual Hardware Reference Figure 12 BL2500 Multidrop Network The BL2500 comes with a 220 W termination resistor and two 681 W bias resistors installed and enabled The load these bias and termination resistors present to the RS 485 transceiver limits the number of BL2500s in a multidrop network to one master and nine slaves unless the bias and termination resistors are removed When using more than 10 BL2500s in a multidrop network or when you need the full common mode immunity per the RS 485 specification leave the 681 W bias resistors in place on the master BL2500 and leave the 220 W terminati
115. will not be open Workbench ERROR It also supports communication with a Modbus slave TCP IP gateway on which multiple serial slaves are connected through one IP address In that case the slave address parameter is used to address the different slaves in the chain OEM Technology Solutions Page 58 EMBEDDED PLC BL2500 User s Manual Software Reference Configuration e cfgstat Configuration and Status of this Modbus data group Nb Channels 1 Data quality Possible values are O Data quality is BAD 1 Data quality is GOOD Parameters gt slave ipAddr string IP address defined in the Modbus Master TCP Interface Configuration VO Board Default 192 168 1 100 slave address integer Modbus slave address used in multiple slaves configuration Default 1 e di 1x Discrete Inputs Modbus data type 1x Nb Channels 8 or 16 Parameters Start_address integer Modbus data start address Default 1 6 2 2 4 Modbus TCP Master Input Registers Data Group Equipment Name mtcp8ai or mtcp16ai Description Modbus Master TCP 8 or 16 Input Registers 3x Data Group This complex equipment is used to read 8 or 16 consecutive input registers or analogue inputs via the specified Modbus Master TCP Interface It supports 16 or 32 bits data type values The Modbus Master TCP Interface Configuration VO board mbtcpcfg has to be defined before connecting this complex equipment The IP address defined in the cfgstat board of t
116. ximately 83 ms 5 4 ANALOG OUTPUT Two D A converter outputs DAO and DA1 are supplied on the BL2500 These are shown in Figure 11 Note Only DA1 is available for EMBEDDED PLC BL2500 as DAO is used by the A D converter Figure 11 Schematic Diagram of D A Converters The D A converters have no reference voltage Although they may be fairly accurate from one programmed voltage to the next they do not have absolute accuracy This is because the 3 3 V supply can change 49 the PWM outputs might not achieve the full O V and 3 3 V rail out of the processor and OEM Technology Solutions Page 49 EMBEDDED PLC BL2500 User s Manual Hardware Reference the gain resistors in the circuit have a 1 tolerance The D A converters therefore need individual calibration with the calibration constants held in software before absolute accuracy can be relied on The BL2500 has such calibration Pulse width modulation PWM is used for the D A conversion The digital signal which is either O V or 3 3 V will be a train of pulses This means that if the signal is taken to be usually at O V or ground the pulses will be some 3 3 V pulses of varying width The voltage will be O V for a given time then jump to 3 3 V for a given time then back to ground for a given time then back to 3 3 V and so on A hardware filter that consists of a resistor and capacitor averages the 3 3 V signal and the 0 V signal over time Therefore if the time that the signal i
117. y connected to an Ethernet hub use a straight through Ethernet cable not provided in the EMBEDDED PLC Application Kit to establish an Ethernet connection to the BL2500 from the hub BL2500 b NL J User s PC Ethernet Ethernet cables a Y crossover rimi To additional cable Hub network N i i w elements Direct Connection SUD d network of 2 computers Direct Connection Using a Hub Figure 2 Ethernet connections When your PC is connected directly to the BL2500 via an Ethernet connection you need to set or change the TCP IP parameters of your computer in order to establish a proper connection with the BL2500 If you require changing the TCP IP configuration of the BL2500 go to section 7 1 4 for instructions how to change the configuration of the Target PLC To configure your PC with an IP address and netmask suitable for establishing a TCP IP connection with a pre configured BL2500 Target PLC follow these instructions you might need Administrator privileges to perform these steps 1 Goto Control Panel Start button gt Settings gt Control Panel and start Network Connections File Edit view Favorites Tools A P Back 7 Y 4 Search 2 Select Local Area Connection and choose Properties File menu gt IG E Properties LAN or High Speed Internet Select Internet Protocol TCP IP and press Properties button Local Area Connection Wizard 4 Click on Use the following

Download Pdf Manuals

image

Related Search

Related Contents

内 灘 町  Bains à ultrasons et accessoires  1 2 3 AB - Siemens    

Copyright © All rights reserved.
Failed to retrieve file