Home
Nokeval Oy User manual 7181
Contents
1. The ID is formed from the device address 0 123 by setting the most significant bit or by adding 128 80h to the address Address 126 ID byte 126 128 254 is reserved for general call The purpose of this is to provide a connection to a device the address of which is not known When using this procedure there should be only one device on the bus This is supported by certain products only Note The ID is one byte not a series of separate numbers e g 1 2 and 8 11 Branch max 2m Bus topology Chain Actual command The command is sent as is The command can be for example MEA CH 1 End byte ETX The command is terminated with single byte with value of 3 03h this is called ETX Do not send Ascii character 3 Checksum byte BCC The target device calculates the checksum and compares it to the BCC sent with the command to see if the command has transfer errors The BCC is a single byte that is calculated using XOR operation bitwise exclusive OR on every byte in the actual command and ETX ID is excluded Some Nokeval devices have an option to disable the BCC because it may be too difficult to calculate in some applications Example of a command frame We want to send a command MEA CH 1 to a device with address 1 The command frame is represented below with the hexadecimal values of the bytes lt ID gt MEACH 1 lt ETX gt lt BCC gt 81 4D 45 41 20
2. 1 ON time HoldingRegister 9 Line 2 ON time HoldingRegister 10 Line 3 ON time HoldingRegister 11 Line 4 ON time Line 1 OFF time Line 2 OFF time Line 3 OFF time Line 4 OFF time HoldingRegister 12 HoldingRegister 13 HoldingRegister 14 HoldingRegister 15 5 Serial communication Device is controlled vie RS 485 bus In RS 485 bus can be connected up to 32 devices By using repeaters you can extend the RS 485 bus For each segment of RS 485 bus you can connect 32 devices Maximum length of segment is about 1 km RS 485 bus topology shoul be chain Length of brances can be max 2 m 5 1 SCL protocol 5 1 1 SCL protocol uses 8N1 bit protocol e 8 data bits none parity and one stop bit Baud rates depend on device in concern see its user manual Recommended baud rate is 9600 bits per second Serial communication settings The control characters presented below are one byte each and every character letter or number or space in the command takes one byte as well 5 1 2 Command frame The actual command is composed of letters and numbers and is human readable The commands recognized by a device are specified in its user manual however some most common commands are represented in this manual also ID command ETX BCC Start byte ID The start byte is the only byte in SCL protocol that has the most significant bit set This identifies that a completely new command frame is to come
3. 07 02 2006 Nokeval Oy User manual 7181 Table of contents TI a EEE 3 DECIMOS vasama avaa a A EAN AS AAA 4 SS KS Ja Omissa taan ee a ee ne E E ES EEK dies 5 S Ba UIP OFS EL EE TA A AT E AE A ATT 5 A T E E EA EEE E A E A 6 A nn eE EEEa Eee ener 7 3 3 1 Serial COMMUNICA ION A een ende 7 33 2 AIE ern A EAT Son NT PT ES Sa en V T U Ean RT 7 33 3 Virttal cha nnels mosat O A N NTI Ae ya SK DSA ITN E EE 8 A DCT AU O Sena RT T rein S NEA RAE a NT ET 9 A a E NVS E E T anne N NaMUSNSETKMMON 9 AITA PU LIN GS stvaa A Sree ake hanes 9 412 Virtual Aput channels a ai 9 4 2 OUND SR a A E ERE 9 4 271 O tp t INES rauen 9 4 2 2 Virtual output channels ass ee ae 9 4 2 3 OneShot DUI St AA AS E 10 4 24 Pulse OUIDULS na NE A AD antennae 10 SEA COMMUNICA Mirra Ri AAA AE dsd 11 S Es une rei ore Pee rer stn Koeman k Ta emer SA SR DRS Ds Dres v en see EP Kim ns 11 5 1 1 Serial communication SettidQS ooococooccccccccnnncccccccnnnannnnnnnonnnnnnnnnnnnnnnnnnnnnnnnnnnnnn nn nnnnnnr 11 5 1 2 Command frameKomentopaketti ccccccccceceececeeceeeeceaeeeeeeeseseeeseeeeeeeeeeeeeeeeeeees 11 DA Responce Fame unse A A A anise AA RD EKV EKS 11 5 1 4 Supported command Sii ia ia 12 5 2 Modbus RTU PrO OC OL ERA 13 52 1 SUD poned COMMAND 13 9 2 2 Holding fegisters nato iia en 13 ES A eier Runen EE Aee ea EERE 14 9 2 4 Disereie Inpuhregisters ces ee hessen 14 9 29 CO 18gISlers a nee ee pen 14 9 2 6 En m explanations 430 00 mdak
4. 43 48 20 31 20 3F 03 6F BCC is calculated by applying XOR on all bytes except ID x represents XOR operation 4Dx45x41x20x43x48x20x31x20x3Fx03 6F 5 1 3 Responce frame Kun laite saa komennon se vastaa vastauspaketilla Niit on kahta lajia normaalia vastausta ACK ja virhevastausta NAK Normal response The response packet starts with response start byte ACK 06h then comes the actual response ETX 03h and finally the BCC ACK response ETx Bcc BCC is calculated by applying XOR on all response frame bytes including the start byte ACK or NAK Assume the panel meter transmitter has a result 21 3 It will answer to the MEA command with a response frame lt ACK gt 2 1 3 lt ETX gt lt BCC gt 06 32 31 2E 33 03 1B Note that some commands cause the device to send an empty response lt ACK gt lt ETX gt lt BCC gt to indicate that the command has been received but there is nothing to say kind of OK response DISP OUT and DO are this kind of commands 5 1 4 Supported commands TYPE Palauttaa laitteen tyypin ja versio numeron Esim 7181 VO 1 SN Palauttaa laitteen sarjanumeron DI CH x Palauttaa tulolinjan x tilan DI SCAN xy Palauttaa tulolinjojen x y tilan Esim 0 1 1 0 DO CH xb Asettaa lahtolinjan x tilaksi b n DO SCAN x y b be bn Asettaa l ht linjojen x y tiloiksi b4 bz MEA CH x Palauttaa virtuaalikanavan x arvon 12 Error
5. FINLAND Tel 03 3424800 Email support nokeval com Fax 03 3422066 http www nokeval com 16
6. O2 Lo Count WORD Unsigned 3 CtrNDO4 BYTE Unsigned 0 1 113 Conf l O3 Type ENUM See table E3 4 Ctr VCh1 Out BYTE Unsigned 0 15 114 Conf l O3 Def BOOL 5 Ctrl VCh2 Out BYTE Unsigned 0 15 115 Conf l O3 NC BOOL 6 Ctrl VCh3 Out BYTE Unsigned 0 15 116 Conf l O3 Hi Count WORD Unsigned 7 Ctrl VCh4 Out BYTE Unsigned 0 15 117 Conf l O3 Lo Count WORD Unsigned 8 Ctri Cntr1 Hi WORD Unsigned 118 Conf l O4 Type ENUM See table E3 9 CtrNCntr2Hi WORD Unsigned 119 Conf l O4 Def BOOL 10 CtrNCntr3Hi WORD Unsigned 120 Confll OA NC BOOL 11 CtrNCntr4Hi WORD Unsigned 121 Conf l O4 Hi Count WORD Unsigned 12 Ctrl Cntr1Lo WORD Unsigned 122 Conf l O4 Lo Count WORD Unsigned 13 Ctri Cntr2Lo WORD Unsigned 123 Conf VCh1 Mode ENUM See table E4 14 Ctrl Cntr3Lo WORD Unsigned 124 Conf VCh1 First BYTE Unsigned 1 4 15 Ctrl Cntr4Lo WORD Unsigned 125 Conf VCh1 Last BYTE Unsigned 1 4 100 Conf Serial Protocol ENUM See table E1 126 Conf VCh2 Mode ENUM See table E4 101 Conf Serial Baud ENUM See table E2 127 Conf VCh2 First BYTE Unsigned 1 4 102 Conf Serial Addr BYTE Unsigned 0 123 128 Conf VCh2 Last BYTE Unsigned 1 4 103 Conf l O1 Type ENUM See table E3 129 Conf VCh3 Mode ENUM See table E4 104 Conf l O1 Def BOOL 130 Conf VCh3 First BYTE Unsigned 1 4 105 Conf l O1 NC BOOL 131 Conf VCh3 Last BYTE Unsigned 1 4 106 Conf l O1 Hi Count WORD Unsigned 132 Conf VCh4 Mode ENUM See table E4 107 Conf l O1 Lo Count WORD Unsigned 133 Conf VCh4 First BYTE Unsigned 1 4 108 Conf l O2 Ty
7. aa ae din 14 1 Description I O transmitter is designed for transfering state information from process to PC by serial communication and vice versa Unit can replace I O cards inside PC Wiring is simple because of RS 485 bus Setting can be done by PC using MekuWin software or by hand held configuration programmer 6790 Transfering analog information from process to PC can be done with transmitter 7100 or RMD680 Using transmitter 7470 you can transfer analog information from PC to process 2 Specifications Supply voltage 24 VDC 15 Supply current 12 mA Oper temperature 0 60 C Storage temperature 20 70 C Humidity 0 95 Weight 55 Y Terminals detachable 1 5 mm Mounting 35 mm DIN rail Serial communication Protocol Nokeval SCL or Modbus RTU Baudrate 1200 2400 4800 9600 19200 38400 57600 ot 115200 Bus RS 485 Distance without repeaters max 1000 m Address 0 123 85 Programming Hand held configuration programmer 6790 or PC using RS 485 bus or jack on front panel using POL RS232 cable or DCS772 converter Input lines Input voltages below 3 5 V is indicated as active Input voltages above 4 5 Vis indicated as non active Output lines Output can sink 50 mA as active Pulse outputs Pulse outputs resolution is 10 ms Oneshot active time 10 ms 655 35 s PWM period 1 655 35 s min 1 Pulse period 20 ms 1310 71 s 60 3 Installing If facto
8. and input line terminal 6 9 PNP transistor should be connected between terminals 5 24 Vcd and input line Use 1kQ pull down resistor from input line to terminal 10 Output lines Connect actuators between terminal 5 and output line terminals 6 9 When using external powersupply for actuators connect them between positive terminal of the supply and output line Connect negative terminal of supply to terminal 10 3 3 Settings Device settings can be done by hand held configurator programmer 6790 or by PC with MekuWin software In this manual we will not treat using of 6790 or MekuWin software Separate manuals are available for them Next we will look menu structure and menu items of 7181 Conf Serial Serial 1101 1 01 Protocol 1102 Type Baud 1 03 Def Addr 1 04 NC VCh1 VCh1 Hi Count VCh2 Mode Lo Count VCh3 First VCh4 Last 3 3 1 Serial communication Submenu Conf Serial contains parameters for serial communication 1 03 VCh3 VCh4 Protocol Select the protocol to use SCL or Modbus Baud Select baudirate 1200 2400 4800 9600 19200 38400 57600 or 115200 Addr Select serial addres for device Address range 0 123 3 3 2 1 0 lines Submenu Conf 1 01 1 04 contains parameters for I O lines These settings will come active avery time device is powered up or rese
9. pe ENUM See table E3 134 Conf VCh4 Last BYTE Unsigned 1 4 109 Conf l O2 Def BOOL 5 2 3 Input registers Register Name Type Values 0 MonW1 BYTE Unsigned 0 1 1 Mon l2 BYTE Unsigned 0 1 2 Mon I3 BYTE Unsigned 0 1 3 MonW4 BYTE Unsigned 0 1 4 Mon VCh1 In BYTE Unsigned 0 15 5 Mon VCh2 In BYTE Unsigned 0 15 6 Mon VCh3 In BYTE Unsigned 0 15 7 Mon VCh4 In BYTE Unsigned 0 15 5 2 4 Discrete Input registers Register Name Type Values 0 Mon l1 BYTE Unsigned 0 1 1 Mon l2 BYTE Unsigned 0 1 2 Mon I3 BYTE Unsigned 0 1 3 Mon l4 BYTE Unsigned 0 1 5 2 5 Coil registers Register Name Type Values 0 CtrIM1 BYTE Unsigned 0 1 1 CtrIM2 BYTE Unsigned 0 1 2 CtrIM3 BYTE Unsigned 0 1 3 Ctri 14 BYTE Unsigned 0 1 5 2 6 Enum explanations Table E1 Table E2 Table E3 Table E4 Value Protocol Value Baud Value Type Value Mode 0 SCL 0 1200 0 Input 0 Off 1 Modbus 1 2400 1 Output 1 Bin 2 4800 2 OneShot 2 Bcd 3 9600 3 Pulse 3 Gray 4 19200 5 38400 6 57600 7 115200 14 15 Manufacturer Nokeval Oy Yrittajakatu 12 37100 Nokia
10. response If there is error in the transfer or in the command the device sends an error response It is started with NAK byte 15h instead of ACK and the actual response is an integer consisting of Ascii characters 0 9 NAK Error number ETX Bcc The precise meaning of the error number is specified in the device user manual Most common error number meanings are O Device busy try again later 1 Buffer overflow too long command 2 Timeout command interrupted 3 BCC error in command frame disturbance in transmission 4 Command not recognized 5 First parameter invalid 6 Second parameter invalid 7 etc MEA SCAN x y Palauttaa virtuaalikanavien x y arvot OUT CH x v Asettaa virtuaalikanavan x arvoksi v n ONESHOT xh Asettaa l ht linjan x ylh ll oloajaksi h 10ms PULSE xh I Asettaa l ht linjan x ylh ll oloajaksi h 10ms ja alhaallaoloajaksi I 10ms PWM xpd Asettaa l ht linjan x jaksonajaksi p 10ms ja pulssisuhteeksi d PERIOD x p Asettaa l ht linjan x jaksonajaksi p 10ms pulssisuhteella 50 5 2 Modbus RTU protocol Modbus RTU is commonly used protocol in instrumentation Specifications can be found at http www modbus org specs php In this document we treat Modbus protocol relating to this device properties When the settings are changed by writing to a Holding register the settings are changed to the non voltatile EEPROM memory immediately It might
11. ry defaults of RS 485 bus 3 wire connection no termination and programmable baudrate are not suitable you have to J change the jumper settings First you have to 4 open the case Put the tip of screwdriver between the right side panel and the frame Twist screwdriver upright Change the settings as shown in section 3 1 Close the case Do connections by section 3 2 page 6 Rest of settings can be done by Hand held configuration programmer 6790 or by MekuWin software Look section 3 3 page 7 Opening the case 3 1 Jumpers RS 485 bus 3 wire connection no termination a O oo oO 3 wire connection Sc termination of o m m o ol oO oO 2 wire connection no termination 2 wire connection ao termination Baudrate E Programmable Fixed 9600 RS 485 bus Baudrate Set the properties of RS 485 bus by jumper By jumper J2 you can select programmable J6 2 or 3 wire connection terminated or or fixed 9600 baud baudrate not terminated 3 2 Connections Inpust Com Switch or NPN PNP transistor Powersupply Connect 24 Vdc between terminals 1 and 2 Terminal 1 is positive and terminal 2 negative RS 485 Connect RS 485 line D1 to terminal 3 and line DO to terminal 4 When 3 wire connection is used connect potential compensation line to terminal 2 Outputs Actuators 24 Vdc max 50 mA Input lines Connect switch and NPN transistor between terminal 10 Com
12. take several dozens of milliseconds for the transmitter to respond to the next command The maximum length of the command is 150 bytes The maximum length of the response is the same This sets the limit to number of registers with commands 3 4 and 16 The command 17 will return 0x11 lt byte count gt 0x00 OxFF followed with 7181 V1 0 A123456 for example 5 2 2 Holding registers When the serial connection settings are changed the changes do not affect until the transmitter is powered down This is to prevent breaking the connection while making the changes 5 2 1 2 Read Discrete Inputs reading the digital inputs 3 Read Holding Registers reading the settings 4 Read Input Registers reading the input readings 6 Write Single Register changing the settings and the Ext channel 16 Write Multiple registers changing the settings 17 Report Slave ID checking the device type lt 109 Meku Mekuwin configuration software uses this Supported commands 13 Register Name Type Values Register Name Type Values 0 CtriDO1 BYTE Unsigned 0 1 110 Conf l O2 NC BOOL 1 CtrI DO2 BYTE Unsigned 0 1 111 Conf l O2 Hi Count WORD Unsigned 2 CtrI DO3 BYTE Unsigned 0 1 112 Conf l
13. tput channels 1 4 input lines can be combined to one virtual channel to get binary number of 1 4 bits Note virtual channel output will override possible output line state setting SCL command Value of virtual output channel can be set by command OUT CH xb Modbus registers Value of virtual output channel can be set to Modbus registers HoldingRegister 4 Value of Channel 1 HoldingRegister 5 Value of Channel 2 HoldingRegister 6 Value of Channel 3 HoldingRegister 7 Value of Channel 4 4 2 3 OneShot outputs Output lines can be set as monostabile flip flop Output will go active when command is sent or modbus register is wrote After given period output line will go unactive This monostabile flip flop is retriggerable SCL command Monostabile operation will be initiated by command ONESHOT x h Modbus registers Monostabile operation will be initiated by writing to Modbus registers HoldingRegister 8 HoldingRegister 9 HoldingRegister 10 HoldingRegister 11 Trig line 1 and ON time Trig line 2 and ON time Trig line 3 and ON time Trig line 4 and ON time 10 4 2 4 Pulse outputs Output lines can be set as astabile flip flop Output will change state after user defined periods SCL commands Astabile operation will be initiated by command PULSE x hl PWM xpd PERIOD x p Modbus registers Astabile operation will be initiated by writing to Modbus registers HoldingRegister 8 Line
14. tted Conf Serial 1 01 VCh1 VCh2 VCh3 VCh4 Lo Count Type Select type of I O line Input static input Output static output OneShot single pulse tai Pulse continuous pulse PWM or frequency Def Default state of output line after powerup On or Off NC Inverting I O line Yes tai No NC no Input as active equals 1 unactive equals 0 Output 1 equals output pulled down 0 equals floating output NC yes Vica versa as NC no Hi Count Select active time for output Hi Count 10 ms Available only when Type Oneshot or Pulse Range 0 65000 equals 0 650 s Lo Count Select unactive time for output Lo Count 10 ms Available only when Type Pulse Range 0 65000 equals 0 650 s 3 3 3 Virtual channels Submenu Conf VCh1 VCh4 contains parameters for virtual channels You can combine 1 4 I O lines to one virtual channel So combined I O lines are treat as binary number of 1 4 bits Note virtual channel output will override possible output line state setting Mode Select format of virtual channel Bin BCD or Gray Dir Direction of virtual channel Input or Output First Select LSB I O line for this virtual channel Note type of I O line should be Input tai Output Last Select MSB I O line for this virtual channel Note type of I O line should be Input tai Output 4 Operation Device is controlled via RS 485 bus
15. using either Nokeval SCL or Modbus RTU protocol Command list of SCL protocol is in section 5 1 4 Modbus registers are shown in section 5 2 4 1 Inputs 4 1 1 Input lines SCL commands States of I O lines can be read by commands DI CH x DI SCAN x y Modbus registers States of I O lines can be read from Modbus registers InputRegister 0 State of line 1 InputRegister 1 State of line 2 InputRegister 2 State of line 3 InputRegister 3 State of line 4 State of line 1 State of line 2 State of line 3 State of line 4 DiscretelnputRegister O DiscretelnputRegister 1 DiscretelnputRegister 2 DiscretelnputRegister 3 4 2 Outputs 4 2 1 Output lines SCL commands States of output lines can be set by commands DO CHxb DO SCAN x y by by Modbus registers States of output lines can be set to Modbus registers CoilRegister O State of line 1 CoilRegister 1 State of line 2 CoilRegister 2 State of line 3 CoilRegister 3 State of line 4 4 1 2 Virtual input channels 1 4 input lines can be combined to one virtual channel to get binary number of 1 4 bits SCL commands Values of virtual input channels can be read by commands MEA CH x MEA SCAN x y Modbus registers Values of virtual input channels can be read from Modbus registers InputRegister 4 Value of Channe 1 InputRegister 5 Value of Channe 2 InputRegister 6 Value of Chamne 3 InputRegister 7 Value of Chamne 4 4 2 2 Virtual ou
Download Pdf Manuals
Related Search
Related Contents
お風呂ポスター取扱説明書 eq manual all(2012.04.14) Copyright © All rights reserved.
Failed to retrieve file