Home

User Manual Connection to 3S symbolic

image

Contents

1. User Manual Connection to 3S symbolic Part Number 80 860 632 Version 2 Date 25 11 2005 Valid for TSwin net 4 0x TSwin net 4 1x S sutron ELECTRONIC GMBH Version Date Modifications 1 04 07 2005 First edition 2 25 11 2005 Validation extended chapter Important Notes added This manual including all illustrations contained herein is copyright protected Use of this manual by any third party in departure from the copyright provision is forbidden No part of this manual may be reproduced trans lated or electronically or photographically archived or altered without the express written consent from S tron electronic GmbH Violations shall be cause for damage liability S tron electronic reserves the right to make any changes that contribute to technical improvement 6 SUTRON ELECTRONIC GMBH Overall Table of Contents 1 2 Overall Table of Contents important Notes na 1 1 1 1 is EE ER aa 1 1 1 2 Safety NOI6S i ii reine reine a edere Tea Era ann FPE RN ann ee EE KENN Sk 1 1 1 3 Intended Use ale a E Ea aa 1 1 14 Target 1 01 o l 2 SOSYMDO anne mm 2 1 2 1 Data TYDES EE atea 2 1 2 1 1 Single Variables ie ee AA Ee AR AA Ge AA AA ee entree ennt nnns 2 1 2 1 2 String Variables eec pieta ore Ee een 2 1 22 Programming sissies eke es eke Se RR Ee bt ba in oe Fev P RE ERR g RR NE fdan 2 1 2 2 1 Protocol Parameters rette emer rte 2 1 2 2
2. 1 1 Bald ATA ERR EO RIT 2 1 2 2 1 2 cu IL AE EE N 2 2 2 2 1 3 Data BIS ncs OE de ven cripta eec nen ett oe N N 2 2 2 2 1 4 O DS eer aa eredi o ia eee eere AR Na niens rei deine Eo HEP HM TERRAE EHE 2 2 2 2 1 5 Waiting Time f r Responses EE EE ER iaia 2 2 2 2 1 6 Delay until Connection Set UPp unneersnnennsensennnennnnnennnnnnennnnnnnnnnnnnnnennnnnnnnnnnnnn ee 2 2 2 2 1 7 Byte Orde 2 3 2 2 1 8 GOI OM GS i isa EE ETE EE OR EO 2 3 2 2 1 9 Path for Variable List SYM siese ia EN Ge Ee Gee KA tbe FA ch ERR dada pea BA Bi GER A ea EX EE Eed Ge 2 3 2 2 2 Polling Area enge 2 3 2 2 3 Status Messages u nenne el 2 3 2 2 4 BEY 2 4 2 2 5 Varant Buffer tet a 2 4 2 2 6 IJ 2 4 2 2 7 Physical Connection a l i 2 5 2 2 7 1 Pin Assignment for Operating Devices with an Universal Interface 2 5 2 2 7 2 Cable SER1 RS232 Schraml PLC FWM105 eeue ee ee ee ee ee ee ee ee ee ee ee ee 2 6 22 7 3 Cable SER1 RS232 Schraml SPS FWM160 ccccscssssescesesescsestesestesescsceseseaeneaes 2 6 2 3 EMf r EE LE MR iii 2 7 2 4 Applications oe Ee Se set EED en enixe Ee Ee enis 2 8 2 4 1 CoDeSys Version 2 2 or Higher nanna 2 8 2 4 1 1 De larin Global Variables 2 nter ERR Herren 2 8 2 4 1 2 Activate Output into Symbol File 2 8 2 4 1 8 Target System Settings i 2 10 2 4 1 4 EL AE AE OE OOR OE OE LEHRER CH
3. be stored 1 Select Directories from the Options dialog S SGTRON B ELECTRONIC GMBH 3S symbolic The Options dialog will look as follows Category Load amp Save Project OK Libraries c programme codesysforautomationaliance projects tswin demo do Cancel Compile files Jc programme cadesysforautomationaliance projects tswin dema Configuration files Jc programme codesysforautomationaliance projects tswin demo n Target load Libraries E PROGRA 1 CoDeSys T argets Suetron Lib_Tesipan Symbol configuration Macros Configuration files CAPROGRA 1 CoDeSys T argets Suetron Lib_Tesipan PlcConh Common Libraries E Programme Codes ysFor amp utomation llianceMibrary aa Compile files C AProgramme CoDeS ysFor amp utomationllianceN En Upload files JCAProgramme CoDeS ysFor amp utomationlliance Library Sa Configuration files CA Programme NCoDeS ysForutomationAlliance Library PLCCONF Figure 2 5 Dialog Options directories 2 From the Project area select a directory for the compile files 3 Click OK to confirm your selection You are returned to the Options dialog The symbol file will not be created until a compilation process takes place and is stored in the same directory as the project 2 4 1 3 Target System Settings Select the following settings for the target system to ensure the symbol file is sent to th
4. checksum 50 Negative acknowledgement 60 Waiting time exceeded no response Cable interruption connec tion cut off wrong baud rate 70 Error from controller 50 No service Wrong service code 51 No variable list Variable list in controller is missing 80 20 Variable types not the same Recompile the project using the current symbol file and re load it into the operating de vice 30 Invalid symbol 40 Waiting time exceeded There is no valid symbol list in the controller Specify a higher value for Delay until Connection Set Up 6 SUTRON ELECTRONIC GMBH 2 7 3S symbolic 2 4 Applications 2 4 1 CoDeSys Version 2 2 or Higher The programming software takes the global variables from the symbol file project name SYM and inserts them into the variable list The symbolic names cannot be longer than 80 characters The entries in the variable list cannot be modified 2 4 1 1 Declaring Global Variables To declare global variables in CoDeSys 1 Select Auto Declare from the Edit menu The Declare Variable dialog opens Class Name Type Lm VAR GLOBAL v Message WORD A essem Cancel Symbol list Initial Value Address conce Global Variables v ftl PONI Comment RETAIN Figure 2 1 Example of a variable declaration for global variables Select the VAR_GOBAL class from the Class field Enter a name Message and a type WORD Repeat step 3 for all additional global variables Click OK to confirm you
5. safety re quirements However dangerous situations or damage to the machine itself or other property can arise from the use of this device The device fulfills the requirements of the EMC directives and harmonized Euro pean standards Any modifications to the system can influence the EMC behav ior S SGTRON ii ELECTRONIC GMBH Important Notes 1 4 Target Group All configuration and programming work in connection with the automation system must be performed by trained personnel only e g qualified electricians electrical en gineers The configuration and programming personnel must be familiar with the safety con cepts of automation technology B S SGTRON ELECTRONIC GMBH 3S symbolic 2 3S symbolic The protocol provides random read and write access to all global data objects of the controller The programming software adopts the data objects of the project_name SYM file which are created when the CoDeSys project is compiled The connected operating device uses the symbolic name to access a data object 2 1 Data Types The length of a variable is determined by the length defined in the programming soft ware CoDeSys 2 1 1 Single Variables You can access variables of the following type BOOL BYTE WORD DWORD SINT INT DINT USINT UINT UDINT REAL and STRING Floating point numbers are interpreted in IEEE format The variable type REAL is required for this purpose 2 1 2 String Variable
6. EE ON 2 11 ta 12 RE RE E E E A 1 6 SUTRON ELECTRONIC GMBH Overall Table of Contents 6 SUTRON ELECTRONIC GMBH Important Notes 1 Important Notes A gt 1 1 Symbols The symbols in this manual are used to draw your attention on notes and dangers Danger This symbol is used to refer to instructions wich if ignored or not carfully followed could result in personal injury Note This symbol indicates application tips or supplementary notes Reference to source of information This symbol refers to detailed sources of information on the current topic 1 2 Safety Notes Read this manual carefully before using the operating device Keep this manual in a place where it is always accessible to all users Proper transportation handling and storage placement and installation of this product are prerequisites for its subsequent flawless and safe operation This user manual contains the most important information for the safe operation of the device The user manual in particular the safety notes must be observed by all person nel working with the device Observe the accident prevention rules and regulations that apply to the operating site Installation and operation must only be carried out by qualified and trained per sonnel 1 3 Intended Use The device is designed for use in the industry The device is state of the art and has been built to the latest standard
7. GMBH Index A Index Numerics 3S SymbollG tette nre ev rire 2 1 C Cable SER1 RS232 Schraml PLC FWM105 2 6 Schraml SPS FWM160 2 6 Important notes see a 1 1 Intended USE 1 1 P Protocol parameters ee es RE EE 2 1 S Safety notes ent 1 1 Symbols etie aa 1 1 T Target group cete ente SEE RES ER EE Eg 1 2 6 SUTRON ELECTRONIC GMBH Index A 2 ELECTRONIC GMBH 6 SUTRON ELECTRONIC GMBH S tron electronic GmbH Kurze Stra e 29 D 70794 Filderstadt Phone 0049 711 77098 0 Fax 0049 711 77098 60 E mail doku suetron de Internet www suetron com 6 SUTRON ELECTRONIC GMBH
8. RONIC GMBH 3S symbolic 2 2 7 2 Cable SER1 RS232 Schraml PLC FWM105 The following cabling diagram applies to operating devices with an universal inter face only Operating Device Schraml FWM105 RTS na i CTS Ls i D z I m o a wo Z g z N zi 2 o oO TD SGND C e gr GND D SUB D SUB Male Connector Male Connector 25 Pin 9 Pin Both ends of the shield are connected to the metallic housing 2 2 7 3 Cable SER1 RS232 Schraml SPS FWM160 The following cabling diagram applies to operating devices with an universal inter face only Operating Device Schraml FWM160 RTS di CTS mE 2D a EL AT HET D w gt kb TD mm RD SGND D SUB RJ45 Male Connector Connector 25 Pin 5 Pin Both ends of the shield are connected to the metallic housing E S SGTRON ELECTRONIC GMBH 3S symbolic 2 3 Error Messages Error messages are displayed on the operating device along with a code and sub code Error messages are composed as follows Communication Error Code XXXXX Subcode XXXXX Retries XXXXX Table 2 12 Error messages for 3S symbolic Code Subcode Error Type Possible Cause 50 03 Framing error on serial interface 05 CRC error on serial interface 06 Parity error on serial interface 10 Poll area error No poll area defined 60 10 Wrong telegram length 20 Wrong telegram ident number 30 Wrong block number 40 Wrong
9. e target system 1 Open the Resources tab 2 Double click Target settings The Target settings dialog opens 3 Open the General tab 4 Select the Download Symbol File check box The Target settings dialog might look like the example below x Configuration CoDeSus SP for S ton TesPEnXSede 000 rl Target Platform l Memory Layout General Network functionality Visualization 1 0 Configuration M Configurable Download as file TT No address check MW Support preemptive multitasking IV Download symbol file Jv VAR IN OUT as reference Single task in multi tasking Symbol config from INI file IV Initialize inputs Byte addressing mode IV PLC Browser Load bootproject automatically M Initialize zero MW Trace 7 SoftMotion IV Online Change Retain forcing Update unused I Os Default DK Cancel ok Figure 2 6 Dialog Target settings S SGTRON ELECTRONIC GMBH 3S symbolic 2 4 1 4 Variable List The programming software automatically places the symbolic variable entries cre ated in the example into the variable list if you specified the correct directory and name in the communications parameters KA variable list 3S serial OP Variable name Variable address VA 4 2 Figure 2 7 Variable list This makes the variables globally available in the programming software S SGTRON di ELECTRONIC GMBH 3S symbolic 2d S SGTRON ELECTRONIC
10. nfigurable Values Default Value 5sto 255s 5s 2 2 6 SUTRON ELECTRONIC GMBH 3S symbolic 2 2 1 7 Byte Order This parameter specifies the destination hardware s CPU type Table 2 7 Byte order Configurable Values Default Value Intel Motorola X 2 2 1 8 Controllers This parameter specifies the runtime system of the controller Table 2 8 Controllers Configurable Values Default Value Standard X PLCWinNT 2 2 1 9 Path for Variable List sym This parameter specifies the directory in which the variable list sym is stored To select a directory click the Browse button The variable list sym is created by the programming software CoDeSys when com pilation takes place 2 2 2 Polling Area The poll area is used to manage the write coordination byte WCB the serial mes sage channel and the LEDs in the function keys This area is continuously polled by the operating device This protocol requires you to set up the poll area with three single variables Table 2 9 Data types for the poll area Area Valid Data Types KBS write coordination byte BYTE USINT WORD UINT Message Channel WORD UINT Function Key LEDs BYTE USINT WORD UINT DWORD UDINT ARRAY 1 N 2 2 3 Status Messages Status messages are the static assignment of flags bits in the controller to plain text messages in the operating device For
11. r input Qoo qe The Global Variables window opens BO001 vAR GLOBAL 0002 0003 Message WORD LEDs ARRAY 1 5 OF WORD 0004 ParaMess ARRAY 0 49 OF WORD 0005 KBS BYTE BODB END VAR Figure 2 2 Window Global variables 2 4 1 2 Activate Output into Svmbol File Specify the following settings in CoDeSys to write the global variables into a symbolic file 1 Select Options from the Project menu 2 Select Symbol configuration 2 8 6 SUTRON ELECTRONIC GMBH 3S symbolic The Options dialog will look as follows Category 17 Dump symbol entries Cancel Configure symbol file Figure 2 3 Dialog Options symbol configuration 3 Select the Dump symbol entries check box 4 Click the Configure symbol file button The Set object attributes window opens J TSwin Demo pro I POUS Aaschine PRG _Caneel LC PRG PRG Resources B E library A Library Mecsfc lib 23 10 00 14 20 30 global varie 23 library Library standard lib 23 10 00 14 20 56 global v B C3 Global Yariables IV Export variables of object IV Export data entries IV Export structure components IV Export array entries MW Write access Figure 2 4 Dialog Set object attributes 5 Select the Global variables entry 6 Click OK to confirm your selection You are returned to the Options dialog Now you need to specify the position where the symbol file is to
12. s For string variables the variable type STRING N is used where N is the length of the string 2 2 Programming 2 2 1 Protocol Parameters With the protocol parameters you can adapt the communication of the controller used 2 2 1 1 Baud Rate This parameter specifies the communication rate Table 2 1 Baud rate Configurable Values Default Value Baud 4800 9600 19200 38400 X S sutron i ELECTRONIC GMBH 3S symbolic 2 2 1 2 Parity This parameter specifies the parity used to control the communication Table 2 2 Parity Configurable Values Default Value None X Even Odd 2 2 1 3 Data Bits This parameter specifies the number of data bits Table 2 3 Data bits Configurable Values Default Value 5 6 7 8 X 2 2 1 4 Stop Bits This parameter specifies the number of stop bits Table 2 4 Stop bits Configurable Values Default Value 1 X 1 5 2 2 2 1 5 Waiting Time for Response This parameter specifies how long the operating device waits for a response from the PLC Table 2 5 Waiting time for response Configurable Values Default Value 100 ms to 25500 ms 1000 ms 2 2 1 6 Delay until Connection Set Up This parameter specifies the waiting time after which the operating device starts the communication Table 2 6 Delay until connection set up Co
13. status message addressing use the data types BYTE USINT WORD UINT DWORD UDINT or ARRAYT 1 N The following applies when using ARRAY The type size multiplied by N provides the size of the message system in bytes S SGTRON d ELECTRONIC GMBH 3S symbolic 2 2 4 Date and Time The variables for synchronizing the time and date must use the data types USINT or ARRAY 1 N OF BYTE Table 2 10 Byte lengths for the date and time Variable Length Date with a 2 digit year 3 Bytes Date with a 4 digit year 4 Bytes Time 3 Bytes Weekday 1 Byte 2 2 5 Variant Buffer The variable for the variant buffer must use the data type BYTE or USINT 2 2 6 Tables The variable for representation of tables must use the data type ARRAY 1 N The ARRAY 1 N has to be of one of the following base data types BOOL BYTE WORD DWORD SINT INT DINT USINT UINT UDINT REALor STRING 6 SUTRON ELECTRONIC GMBH 3S symbolic 2 2 7 Physical Connection Plug in connectors on the operating device for connection to the controller 2 2 7 1 Pin Assignment for Operating Devices with an Universal Interface Table 2 11 Pin assignment RS232 Pin Designation Function 6 TD Transmitted Data 15 CTS Clear to send 17 RTS Request to send 18 RD Received data 25 SGND Signal Ground S SGTRON d ELECT

Download Pdf Manuals

image

Related Search

Related Contents

取扱説明書 (2.17 MB/PDF)  Samsung LA23R51B User Manual  Sony RM-VL1000 User's Manual  Cod.953811 GB EXPLANATION OF DANGER, MANDATORY AND  Descargar Ficha Tecnica - SAS International Trading, Inc.  Installation & User Guide  Honda P/N 08A53-S5A-100 User's Manual  eTrex® 20  II.i) Main Screen - Metal-Fach  Manuel d`installation  

Copyright © All rights reserved.
Failed to retrieve file