Home

SM5 logic to Modbus module

image

Contents

1. RS 485 A B GND PC computer Tr RS 232 port 1 p RS 485 port 16 17 18 Eggs is ll i E SM5 module Afo DEI pets E A UL PD51 zieno gt 1D eem im miim 1 EN 1 RxD T PORT RS 232 PC computer with a RS 485 card RS485 port l t t i 8 DB9 3 5 i N Fig 3 Way of the RS 485 interface connection 10 PC computer pS RS 232 port DB9 i 1 SM5 module Fig 4 Way of the RS 232 interface connection 5 SERVICE After connecting external signals and switching the supply on the SM5 module is ready to work The lighted green diode signals the module work The green diode RxD signals the module polling however the yellow diode TxD signals the module response Diodes should ignite in cycles during the data transmission through the RS 232 or the RS 485 interface Programmable parameters ofthe module can be programmed by means of RS 232 or RS 485 ports The RS 232 port has constant transmission parameters acc to technical data what enables the connection to the module even when programmed parameters of the digital RS 485 output address mode rate are unknown The RS 485 standard allows to the direct connection to 32 devices on a single ser
2. 000 2400 bit s 001 4800 bit s 010 9600 bit s 011 19200 bit s 100 38400 bit s 101 57600 bit s 110 115200 bit s 18 Set of registers for SM5 module readout and write Table 4 Description The value is placed in 16 by tes registers These registers content corresponds to the content of 32 bit registers Write w Readout r from the area 7600 The value is placed in 32 bit registers Identifier Device identifier Baud rate of the RS 485 interface bit s Value 0 2400 4800 9600 19200 38400 57600 115200 4202 7602 Mode wit 0 7 Kind of transmission via the RS 485 interface Interface switched off ASCII 8N1 ASCII 7E1 ASCII 701 RTU 8N2 RTU 8E1 RTU 801 RTU 8N1 4203 7603 1 247 Device address Anpi Register confirming changes 4204 7604 wir 0 1 of transmission parameters 19 6 TECHNICAL DATA Logic levels Transmission data a RS 485 interface transmission protocol ASCII RTU baud rate address b RS 232 interface transmission protocol RTU baud rate address Power consumption by the module Rated operation conditions supply voltage Supply voltage frequency ambient temperature relative humidity external magnetic field work position Storage and transport conditions ambient temperature relative humidity Ensured protection grade from th
3. 5 of bytes Hi Lo y 1DBE 7614 CRC 01 10 oo 02 3F a80 00 00 40 00 00 00 0309 Answer Devi Register Register Number of Number of Checksum ies Function address address registers registers CRC ere Hi Lo Hi Lo 10 1D BD 00 02 D7 80 Report identifying the device code 11h Request Device Checksum address CRC 01 CO 2C Answer Device Number of Device identifier Device Software version Checksum address bytes State number 01 06 8D FF XXXX 14 Device address Function Number of bytes Device identifier Device state No of the software version software Checsum Example The work in RTU mode e g Mode RTU 8N2 value 0x02 in case of 0x08 Ox8F OxFF depends on the set value function number 0x11 XXXX 4 byte variable of float type readout write through the interface Device address set on Adr 0x01 For the SM5 module the response frame has the following shape Software version implemented in the module 1 00 2 bytes in case of work in the RTU mode 1 byte in case of work in the ASCII mode Device Function Number Device Device Nunber of Checksum address of bytes identifier state softwer wersion CRC 01 11 06 8b FF 3F 80 00 00 AE 1B Jest to modu SM5 wersja oprogramowania 1 00 5 3 Register map of the module Register map of SM5 module series Table 2 Address Value type Description ra
4. _ Value of read out state of input 3 2003 4006 7506 WA o Value of read out state of input 4 2004 4007 7507 w5 o Value of read out state of input 5 2005 4008 7508 W6 0 Value of read out state of input 6 2006 4009 7509 7 0 _ Value of read out state of input 7 2007 4010 7510 w8 0 _ Value of read out state of input 8 Description of the Status1 register State IN6 State IN5 State INA State IN3 State IN2 State IN1 o x Z g g g S S 5 2 o o bits 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 MSB LSB 16 Bit 15 8 not used State 0 Bit 0 State of IN 1 input 0 open 1 shorting Bit 1 State of IN 2 input 0 open 1 shorting Bit 2 State of IN 3 input 0 open 1 shorting Bit 3 State of IN 4 input 0 open 1 shorting Bit 4 State of IN 5 input 0 open 1 shorting Bit 5 State of IN 6 input 0 open 1 shorting Bit 6 State of IN 7 input 0 open 1 shorting Bit 7 State of IN 8 input 0 open 1 shorting 17 Description of the Status 2 register Operating Baud rate mode and in formation unit bits 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 MSB LSB Bit 15 6 Not used Their States are free Bit 5 3 Operating mode and information unit 000 interface switched off 001 8N1 ASCII 010 7E1 ASCII 011 7O1 ASCII 100 8N2 101 8E1 RTU 110 801 111 8 1 RTU Bit 2 0 Baud rate
5. MODULE WITH 8 LOGIC INPUTS SM5 TYPE USER S MANUAL CONTENTS APPLICATION E Y 5 2 MODULE SET 3 BASIC REQUIREMENTS AND OPERATIONAL SAFETY 6 A INSTALLATION i T ee 8 4 1 Module TIXIA carr 8 4 2 Electrical Connections oco ern nsona anenai 8 5 SERVICE 11 5 1 Description of the MODBUS protocol implementation sel 5 2 Description of the MODBUS protocol functions 12 5 3 Map of module 15 5 4 Set of module registers 16 6 TECHNICAL DATA 0 20 7 BEFORE A DAMAGE WILL BE DECLARED 21 8 ORDERING CODES s siti n E 22 9 MAINTENANCE AND GUARANTEE 23 1 APPLICATION The SM5 module has 8 logic inputs and RS 485 and RS 232 interfaces with MODBUS RTU and ASCII transmission protocols It is destined to readout logic states of logic inputs and enables their access in industrial systems Ports in RS 485 and RS 232 are galvanically isolated from input signals and the supply The module programming is possible by means of the RS 485 or the RS 232 port Configurable baud rate 2400 4800 9600 19200 34800 57600 115200 bit s The SM5 module set includes a connecting cable to connect with the PC computer RS 232 2 MODULE SET The set consists of SM5 module user s manual guar
6. antee card nennen plug with BU1005 screw terminals plug with BUO204 screw terminals RS 232 socket hole 9 RS 232 wire to connect with the computer 1 5 m 1 pc When unpacking the module please check whether the type and version code on the data plate correspond to the order 3 BASIC REQUIREMENTS SAFETY INFORMATION Symbols located in this service manual mean WARNING Warning of potential hazardous situations Especially important one must acquaint with this before connecting the module The non obser vance of notices marked by these symbols can occasion severe injuries of the personnel and the damage of the module CAUTION Designates a general useful note If you observe it handling of the module is made easier One must take note of this when the module is working inconsistently to the expectations Possible consequences if disregarded In the security scope the module the requirements of the EEC Low Voltage Directive EN 61010 1 issued by CENELEC Remarks concerning the operator safety N 1 General e The SM5 module is destined to be installed in measuring systems on a 35 mm mounting rail Non authorized removal of the required housing inappropriate use incorrect installation or operation creates the risk of injury to personnel or damage to equipment For more detailed information please study the user s manual e All oper
7. as the data transmission mode transmission to many devices 5 2 Description of the MODBUS protocol function Following functions of the MODBUS protocol have been implemented in the SM5 module Description of MODBUS protocol functions Table 2 Code Signification 02 02h Readout of n bit registers Readout of n register 04 04h Write of n input registers Write of a single register 16 10h Write of n registers 17 11h Slave device identification Readout of n registers code 02h The function is not accessible in the broadcast mode Example Readout of 8 bit registers beginning by the register with the 07DOh 2000 address Request Device in Register address Number of registers Checksum address Hi Lo Hi Lo CRC 01 02 07 DO 00 08 7941 12 Answer Device Function Number Value from the register Checksum address of bytes 2200 2207 CRC 01 02 01 01 6048 Readout of n registers code 03h The function is not accessible in the broadcast mode Example Readout of 2 registers with 1DBDh 7613 address Request Devi Register Register Number of Numberof Checksum dics Function address address registers registers CRC 001685 Hi Lo Hi Lo 01 03 1D BD 00 02 5243 Answer Device Function Number Value from the register Val
8. ations concerning transport installation and commissioning as well as maintenance must be carried out by qualified skilled personnel and national regulations for the prevention of accidents must be observed According to this basic safety information qualified skilled personnel are persons who are familiar with the installation assembly commissioning and operation of the product and who have qualifications necessary for their occupation 2 Transport storage Please observe the notes on transport storage and appropriate handling Observe the climatic conditions given in technical data 3 Installation e The module must be installed according to the regulation and instructions given in this user s manual e Ensure proper handling and avoid mechanical stress e Do not bend any components and do not change any insulation distances 6 e Do not touch any electronic components and contacts e Modules may contain electrostatically sensitive components which can easily be damaged by inappropriate handling e Do not damage or destroy any electrical components since this might endanger your health 4 Electrical connection e Before switching the module on one must check the correctness of connection to the network e In case of the protection terminal connection with a separate lead one must remember to connect it before the connection of the module to the mains e When working on live modules the applicable national reg
9. e housing from terminal side 20 1 logic shorted input 0 logic open input shorting resistance of the contact without potential 2 10 kQ opening resistance of the contact without potential gt 150 kQ MODBUS 8N1 7E1 7O1 8N2 8E1 801 8N1 2400 4800 9600 19200 38400 57600 115200 bit s 1 247 MODBUS 8N1 9600 bit s 1 lt 1 5 VA 10 24 50 V a c d c or 85 230 253 V a c d c 40 50 60 440 Hz 20 23 55 C lt 95 inadmissible condensation lt 400 A m any 20 70 C lt 95 inadmissible condensation IP 40 IP 20 45 x 120 x 100 mm 0 25 kg adapted to be mounted on a 35 mm rail acc to EN 60715 Dimensions Weight SM5 housing Electromagnetic compatibility Immunity emission acc to EN 61000 6 2 acc to EN 61000 6 4 Safety requirements acc to EN 61010 1 installation category pollution grade 2 maximal phase to earth work voltage for the supply circuit for other circuits 300 V 50V 7 BEFORE A FAILURE WILL BE DECLARED In case of incorrect symptoms please to acquaint with the table below SYMPTOMS 1 The green diode is off PROCEDURE Check the connection of the network cable REMARKS 2 The module does not communicate with the device master via the RS 232 port Lack of transmission signalling on RxD and TxD diodes Check if the wire is connected to the appropriate module socket Check if the device maste
10. e period may cause its cancellation 7 4 INSTALLATION 4 1 Module fixing The SM5 module is fixed on a 35 mm rail in accordance with EN 60715 The module housing is made of a self extinguishing plastic Overall dimensions of the housing 45 x 120 x 98 mm Overall dimensions and the fixing way are presented on the fig 1 2202220222 4 SM5 o RxD O F TxD O 120 100 45 Fig 1 Overall dimensions and way of the module fixing 4 2 Electrical connections N Following external wires can be connected to the module up to 2 5 mm cross section from supply and interface side up to 1 5 mm cross section from input signal side Caution One must pay special attention to the correct connection of external sig nals see fig 2 8 Caution Regarding electromagnetic interference one must use shielded wires to connect binary input signals and RS 485 interface signals The shield must be connected to the protective terminal in one point SUPPLY DEPENDING on THE EXECUTION CODE 80 253 V a c d c RS 485 or20 50Va c d c GNDA B 1213 14 15 16 1718 7 2000000020 RS 232 TS TER 255055 6789108 Fig 2 Electrical connections of SM5
11. ial link up to 1200 m To connect a greater number of devices it is necessary to use additional intermediate separating systems e g the PD51 converter repeater 5 1 Description of MODBUS protocol implementation The transmission protocol describes ways of the information exchange between devices through serial links The MODBUS protocol has been implemented in the module in accordance with the PI MBUS 300 Rev G specification of the Modicon company Set of parameters of the module serial link in the MODBUS protocol e module address 1 247 e baudrate 2400 4800 9600 19200 38400 57600 115200 bit s e working modes ASCII RTU 11 e information unit ASCII 8N1 7E1 7O1 RTU 8N2 8E1 801 8N1 e maximal response time 300 ms The parameter configuration of the serial link is described in the further part of the user s manual It consists on establishing the baud rate baud parameter device address Adr parameter and the information unit type Mode parameter In case of the module connection with the computer through the RS 232 wire the module set automatically following transmission parameters Baud rate 9600 bps Working mode RTU 8N1 Address 1 Notice Each module connected to the communication network must e have aunique address different from addresses of other devices connected to the network e identical baud rate and information unit type e the message sent with the address 0 is identified
12. logic input module There are three diodes on the frontal plate e green signals switching the supply on e green RxD signals data reception through the module e yellow TxD signals data transmission through the module The signal terminal 10 is the 5 V output with admissible overload 100 A One must connect binary signals to the mass and appropriate output terminal The way to connect interfaces are shown on fig 3 and 4 To obtain a correct trans mission through the RS 485 interface it is necessany to connect lines A and B lines in parallel with their equivalents in other devices The connection must be made with a shielded wire The shield must be connected to a shielded wire The shield must be connected to the protective terminal in one point The GND line serves to equalize potentials of interface lines in the communicating devices To obtain the communication with the computer of PC class throught the RS 485 port it is essential to apply an RS 232 RS 485 converter e g PD51 from Lumel production or an RS 485 interface card Marking of transmission lines for the card in the PC computer depends on the card producer To obtain the connection through the RS 232 port the added wire in the module set is sufficent The module can be connected to a device of master type through one interface port In case of the simultaneous connection of both ports the module will work through the RS 232 interface
13. nge 2000 2007 bool 1 bit The value is located in 1 bit register Registers can be read out and written integer The value is located in 16 bit registers The register content 4000 4100 16 bit w corresponds to the 32 bit register contents from the 7500 area Registers are only for readout A The value is located in 16 bit registers The register content 4200 4300 a corresponas to the 32 bit register contents from the 7600 it w area Registers can be read out and written E A The value is located in the 2 bit register Registers are only 7500 7600 float 32 bity or readout 7600 7700 float 32 bity The value is located in the 32 bit register Registers can be read out and written 15 5 4 Set of module registers Set of registers for readout the SM5 module Table 3 8652 8 BOE 2 e85 o9 la Los 2 5 5 cas soles o 8885 8058 p E Sogs Sfas 9 2 Quantity name aseo 29 44 5 ocg9 00580 E oe 8 g9 0 2 Ti d d ue 256 9 520 2 EDT E z oz 820550 20 055626856 0 4000 7500 Identifier 0 Constant identifying the device Status 1 is a register describing 4001 7501 status 1 9 current states of binary inputs Status 2is a register describing 4002 7502 Status 2 0 current transmission parameters 2000 4003 7503 wi 0 Value of read out state of input 1 2001 4004 7504 w2 0 Value of read out state of input 2 2002 4005 7505 W3 0
14. ot require any periodical maintenance In case of some incorrect operations 1 After the dispatch date and within the period stated in the guarantee card One should return the instrument to the Manufacturer s Quality Inspection Dept If the module has been used in compliance with the instructions the Manufacturer guarantees to repair it free of charge The disassembling of the housing causes the cancellation of the granted guarantee After the guarantee period One should send the instrument to repair it in an authorised service workshop Spare parts are available for the period of five years from the date of purcha se Our policy is one of continuous improvement and we reserve the right to make changes in design and specifications of any products as engineering advances or necessity requires and revise the above specifications without notice 23 24 25 26 27 20 5
15. r is set on 9600 baud rate 8N1 mode and address 1 RS 232 has constant trans mission para meters 3 The module does not communicate with the device master via the RS 485 port Lack of transmission signalling on RxD and TxD diodes Check if the wire is connected to the appropriate module terminal Check if the device master is set onthe same transmission parameters as the modu le baud rate mode address In case of necessity to change transmission parameters when we can not communicate through RS 485 one can use the RS 232 port which has constant transmission parameters in case of further problems see the section 2 After changing e RS 485 parameters into the required one one can switch over on RS 485 port 8 ORDERING CODES Table 5 Module of 8 binary inputs SM5 X XX X Supply voltage 85 230 253 V acid invita 1 20 24 50 V a c d c on order Kind of version catalogue custom made Acceptance tests without extra requirements esses with an extra quality inspection certificate other requirements agreed with the manufacturer code numbering is settled by the manufacturer Example of order SM5 1 00 7 code means SM5 Module of 8 binary inputs 1 supply 85 230 253 V a c d c 00 catalogue version 7 with an extra quality inspection certificate 22 9 MAINTENANCE AND GUARANTEE The SM5 module does n
16. ue from the register Checksum address of bites 1DBD 7613 1DBE 7614 CRC 01 03 08 80 00 00 40 00 00 00 428B Readout of n input registers code 04h The function is not accessible in the broadcast mode Example readout of 1 register with the OFA3h 4003 address Request A Register Register Number of Number of a Function address address registers registers gt Hi Lo Hi Lo 01 04 OF A3 00 01 C2FC Answer Device Function Number Value from the register Checksum address of bytes OFA3 4003 CRC 01 04 02 00 01 78 FO 13 Write of values in the register code 06h The function is accessible in broadcast mode Example Write of the register with 1DBDh 7613 address Request Register Register Checksum Device Value from the register address address address 1DBD 7613 CRC Hi Lo 01 1D BD 3F 80 00 00 85AD Answer Register Register Checksum Device Value from the register address adress 1DBD 7613 CRG i Lo 01 1D BD 00 85AD Write into n registers code 10h The function is accessible in the data transmission mode Example Write 2 registers beginning from the register with 1DBDh 7613 address Request Device 5 Number of Value from the register Value from the Check Number registers 1DBD 7613 register sum address
17. ulations for the prevention of accidents must be observed The electrical installation must be carried out according to the appropriate regulations cable cross sections fuses PE connection Additional information can be obtained from the user s manual e The documentation contains information about installation in compliance with EMC shielding grounding filters and cables These notes must be observed for all CE marked products e The manufacturer of the measuring system or installed devices is responsible for the compliance with the required limit values demanded by the EMC legislation 5 Operation Measuring systems including SM5 modules must be equipped with protection devices according to the corresponding standard and regulations for prevention of accidents e After the instrument has been disconnected from the supply voltage live components and power connections must not be touched immediately because capacitors can be charged The housing must be closed during operation The RS 232 socket serves only to connect the device Fig 2 working with the MODBUS protocol When the module is not used place the hole plug in the RS 232 socket of the module 6 Maintenance and servicing Please observe the manufacturer s documentation Read all product specific safety and application notes in this user s manual e Before taking the module out one must turn the supply off e The removal of the module housing during the guarante

Download Pdf Manuals

image

Related Search

Related Contents

203/205 Butterfly LaserMount User`s Manual  Déclaration de garantie  dynabookガイド  

Copyright © All rights reserved.
Failed to retrieve file