+ All Categories
Home > Documents > Modbus-ModbusTCP en User-Manual 6159935751-01 PDF

Modbus-ModbusTCP en User-Manual 6159935751-01 PDF

Date post: 17-Aug-2015
Category:
Upload: angelo-machado
View: 248 times
Download: 0 times
Share this document with a friend
Description:
mANUAL
Popular Tags:
22
© © Copyright 2008, St Herblain France All rights reserved. Any unauthorized use or copying of the contents or part thereof is prohibited. This applies in particular to trademarks, model denominations, part numbers and drawings. Use only authorized parts. Any damage or malfunction caused by the use of unauthorised parts is not covered by Warranty or Product Liability. Desoutter - ZAC de la Lorie - 38 rue Bobby Sands BP 10273 - 44818 Saint-Herblain Cedex - France - www.cp.com Part no Issue no Language Date Page 6159935751 01 English 04/2008 1 / 22 MODBUS / MODBUS TCP User manual N° 6159935751-01
Transcript

Copyright 2008,St Herblain FranceAllrightsreserved.Anyunauthorizeduseorcopyingofthecontents or part thereof is prohibited. This applies in particular totrademarks, model denominations, part numbers and drawings.Useonlyauthorizedparts.Anydamageormalfunctioncausedby the use of unauthorised parts is not covered by Warranty orProduct Liability.Desoutter - ZAC de la Lorie - 38 rue Bobby SandsBP 10273 - 44818 Saint-Herblain Cedex - France - www.cp.comPart noIssue noLanguageDatePage615993575101English04/20081 / 22MODBUS / MODBUS TCPUser manualN 6159935751-01MODBUS / MODBUS TCPPart no 6159935751Issue no 01Language EnglishDate 04/2008Page 2 / 22TABLE OF CONTENTSGLOSSARY..........................................................................................................................................31 - MODBUS.............................................................................................................................................. 41.1 - Introduction............................................................................................................................................ 41.1.1 - Communication over RS232 networks....................................................................................................... 41.1.2 - Communication over RS485 networks ........................................................................................................ 41.2 - Description.............................................................................................................................................51.2.1 - Technical features ....................................................................................................................................... 51.2.2 - Peripheral Address in the Network .............................................................................................................. 51.2.3 - Wiring ........................................................................................................................................................... 51.3 - Settings...................................................................................................................................................61.3.1 - Configuring the CVI ..................................................................................................................................... 61.3.2 - Configuration with the CVIPC2000 software: .............................................................................................. 72 - MODBUS TCP...................................................................................................................................... 92.1 - Introduction............................................................................................................................................ 92.2 - Description.............................................................................................................................................92.2.1 - Technical features ....................................................................................................................................... 92.2.2 - Peripheral Address in the Network .............................................................................................................. 92.3 - Settings.................................................................................................................................................102.3.1 - Configuring the CVI ................................................................................................................................... 102.3.2 - Configuration with the CVIPC2000 software: ............................................................................................ 113 - MODBUS / MODBUS TCP PROTOCOL............................................................................................ 143.1 - Supported Functions ........................................................................................................................... 143.2 - Memory addresses ..............................................................................................................................144 - DESCRIPTION OF THE MEMORY ZONE ......................................................................................... 174.1 - Date programming zone ...................................................................................................................... 174.2 - Input / output zone...............................................................................................................................174.2.1 - 24 V Inputs/Outputs.................................................................................................................................. 184.2.2 - Network inputs/outputs............................................................................................................................... 184.2.3 - Input mask.................................................................................................................................................. 184.3 - Machine 1 and 2 write zone ................................................................................................................184.3.1 - Cycle number selection ............................................................................................................................. 184.3.2 - Spindle validation....................................................................................................................................... 184.3.3 - Specific code.............................................................................................................................................. 194.4 - Machine 1 and 2 read zone .................................................................................................................194.4.1 - Bar code.................................................................................................................................................... 194.4.2 - Spindle list .................................................................................................................................................. 194.4.3 - Number of spindles .................................................................................................................................... 194.4.4 - Selected cycle............................................................................................................................................ 194.4.5 - Number of programmed OK cycles ........................................................................................................... 194.4.6 - Number of executed OK cycles ................................................................................................................. 194.4.7 - General report ............................................................................................................................................ 194.4.8 - Result number............................................................................................................................................ 194.4.9 - Report......................................................................................................................................................... 194.5 - Machine 1 and 2 results zone.............................................................................................................204.5.1 - Result format options................................................................................................................................ 204.5.2 - Result per spindle read zone ..................................................................................................................... 214.5.3 - Size of result per spindle............................................................................................................................ 214.6 - Specific data zone ...............................................................................................................................214.7 - Option zone..........................................................................................................................................214.8 - Example................................................................................................................................................22MODBUS / MODBUS TCPPart no 6159935751Issue no 01Language EnglishDate 04/2008Page 3 / 22GLOSSARYPLC. Programmable logic controllerField bus network. An industrial communications networkByte. 8 bitsWord. 16-bit valueLong word. 32-bit valueCVI. Tightening controllerFloating. Real value whose decimal point has a variable positionSCY command. Tightening command: start cycleRxD. Received data on RS232 serial linkTxD. Transmitted data on RS232 serial linkRT+. Received and transmitted data polarised '+' on RS485 serial linkRT-. Received and transmitted data polarised '-' on RS485 serial linkGND. GroundMODBUS / MODBUS TCPPart no 6159935751Issue no 01Language EnglishDate 04/2008Page 4 / 221 - MODBUS1.1 - IntroductionMODBUS is a data exchange protocol for field bus networks. This protocol is used between a master unit and several slaveunits. The master and slaves communicate using RS232 or RS485.1.1.1 - Communication over RS232 networksThis type of communication is used in short-distance field bus networks only. Communications can be made atbaud rates of 300 to 115,200 bauds. RS232 links can only be established between one master and one slave.1.1.2 - Communication over RS485 networksThis type of communication is used in medium-distance field bus networks only. Communications can be madeat baud rates of 300 to 115,200 bauds. RS232 links can be established between one master and up to 31 slaves.Caution: the network must be considered as a chain made up of links:- the master is at the start of the chain,- the slaves represent the intermediate links (RS485i),- the last slave (RS485f) forms the end of the chain. MasterSlave 1Slave 2Slave 3AnswerQuestionSlave 1RS232 RS232 RS232RS-B RS-B RS-B MasterSlave 2 Slave 3Slave 1RS485i RS485i RS485fRS-B RS-B RS-BSlave X Slave 2 MasterMODBUS / MODBUS TCPPart no 6159935751Issue no 01Language EnglishDate 04/2008Page 5 / 221.2 - DescriptionExample RS845:1.2.1 - Technical featuresThe technical features of the MODBUS network are the following:1.2.2 - Peripheral Address in the NetworkA network can include no more than 32 peripherals.A unique network address must be assigned to each peripheral (between 1 and 254).1.2.3 - WiringRS232Mapping between the wiring paths from the PLC to the RS-B port of the CVI controller.RS485Mapping between the wiring paths from the PLC to the RS-B port of the CVI controller. The 0 V link betweenthe different peripherals is optional.Type Master/SlaveInterface RS232RS485CVI socketSUBD25 contact socketSpeed 300 > 115,200 MbaudLength Max. 15 m Max. 1,000 mStation ASUBD25 SUBD25 SUBD25Connector with 2 cable inputsConnector with 1 cable input MasterStation B Station CRxDTxD0 VRx (3) Tx (2) 0 V (7)Male SUB D25 MasterRT+0 VRT-0 V (7) RT- (19) RT+ (11) Master0 V (7) RT- (19) RT+ (11)Male SUB D25 MODBUS / MODBUS TCPPart no 6159935751Issue no 01Language EnglishDate 04/2008Page 6 / 221.3 - SettingsThe tightening controller must be configured to be included in the MODBUS network.Caution:touseMODBUS,thefieldbusnetworkdaughterboard(Modbus+,Profibus,InterbusS,Devicenet)inthecontroller must not be connected. If there is an ETHERNET board in the controller, check that SOCKET 3 is not used. 1.3.1 - Configuring the CVIInitial status: the machine is powered up and running.Serial ports:1. PressL on the keyboard to view the configuration screen.2. Open the PARAMETERS / PERIPHERALS / SERIAL PORTS menu.3. In the RS-B screen, select the same settings as the master PLC.4. Save the settings and exit by pressing K.PLC link on the RS-B channel:1. PressL on the keyboard to view the configuration screen.2. Open the PARAMETERS / PERIPHERALS / PLC menu.3. Select the required settings.4. Save the settings and exit by pressing K.Speed(300 to 115,200)Serial port type(RS232 / RS485i / RS485f )Slave number(1 to 253)MODBUS / MODBUS TCPPart no 6159935751Issue no 01Language EnglishDate 04/2008Page 7 / 221.3.2 - Configuration with the CVIPC2000 software:Initial status: the CVIPC2000 software is open. Open the Parameters > Controller menu.Serial ports:1. Click on "Serial ports" to enter the settings of the link(s) between the controller and the master.2. Open the "RSB port" tab.3. Press "OK" to validate.Select the same settings as the master PLC.Speed(300 to 115,200)Serial port type(RS232 / RS485i / RS485f )MODBUS / MODBUS TCPPart no 6159935751Issue no 01Language EnglishDate 04/2008Page 8 / 22PLC link on the RS-B channel:1. Click on "Peripherals" to enter the settings of the master's link on the RS-B channel.2. Open the "PLC" tab.3. Press "OK" to validate.Master CVINetwork address(1 to 253)MODBUS / MODBUS TCPPart no 6159935751Issue no 01Language EnglishDate 04/2008Page 9 / 222 - MODBUS TCP2.1 - IntroductionMODBUS TCP is a data exchange protocol for field bus networks. This protocol is used between a server unit and oneor several client units. The server and the client communicate over ETHERNET.This means of communication is faster and more reliable than MODBUS for field bus networks.2.2 - Description2.2.1 - Technical featuresThe technical features of the MODBUS TCP network are as follows:2.2.2 - Peripheral Address in the NetworkA network can include no more than 32 peripherals.A unique network address must be assigned to each peripheral.Type Server/ClientInterface TCP/IPConnector RJ45Speed 10 - 100 Mb/s Length Max. 100 mClient 1Client 2Client 3AnswerQuestionServerClient ARJ45RJ45 Connector ServerClient B Client CRJ45 RJ45Switch / Hub MODBUS / MODBUS TCPPart no 6159935751Issue no 01Language EnglishDate 04/2008Page 10 / 222.3 - SettingsThe tightening controller must be configured to be included in the MODBUS TCP network.Caution:touseMODBUSTCP,thefieldbusnetworkdaughterboard(Modbus+,Profibus,InterbusS,Devicenet) in the controller must not be connected. Check that the RSB is not configured as Controller / Slave. 2.3.1 - Configuring the CVIInitial status: the machine is powered up and running.Ethernet client configuration:1. PressL on the keyboard to view the configuration screen.2. Open the PARAMETERS / PERIPHERALS / ETHERNET menu.3. Enter the IP address of the controller4. Save the settings and exit by pressing K.MODBUS TCP server configuration:1. PressL on the keyboard to view the configuration screen.2. Open the PARAMETERS / PERIPHERALS / SOCKET 3 menu.3. Enter the IP address of the server.4. Save the settings and exit by pressing K. Client IPServer IPMODBUS / MODBUS TCPPart no 6159935751Issue no 01Language EnglishDate 04/2008Page 11 / 222.3.2 - Configuration with the CVIPC2000 software:Initial status: the CVIPC2000 software is open. Open the Parameters > Controller menu.Ethernet:1. Click on "Ethernet" to enter the settings of the link(s) between the client and the server.2. Click on "Ethernet" to view the "Ethernet.ini" file.MODBUS / MODBUS TCPPart no 6159935751Issue no 01Language EnglishDate 04/2008Page 12 / 223. Enter the IP address of the client (controller) in the "Ethernet.ini" file.4. Select Socket 3.5. Transfer the data from the PC to the controller using the "Transfer > PC-Station" menu.Save the changes.Example: 192.168.5.167(IP - Controller/PC)IP address of the PCMODBUS / MODBUS TCPPart no 6159935751Issue no 01Language EnglishDate 04/2008Page 13 / 226. Send the new program configuration.7. Transfer progress bar.MODBUS / MODBUS TCPPart no 6159935751Issue no 01Language EnglishDate 04/2008Page 14 / 223 - MODBUS / MODBUS TCP PROTOCOL3.1 - Supported FunctionsOnly the following MODBUS / MODBUS TCP functions can be supported:3.2 - Memory addressesThe memory address table below includes:- the internal address for access to the CVI data in bytes and words,- the name of the data,- read/write access (R/W) by the master PLC,- the size of the data in bytes,- the permitted range of values.Information: "Page" refers to the number of the page containing the corresponding information in detail.Function code Type Max.()3 Reading of N internal registers Word 10016 Writing of N internal registers Word 100AddressDescription AccessSize (bytes)ValuePagebytes wordsHexa. Deci. Hexa. Deci.0x0000 0 0x0000 0 Reserved x 128 -0x0080 128 0x0040 64 Date programming zone R/W 128 17Input / output zone R/W 16 170x0100 256 0x0080 128 24-volt outputs,port 1 R 2 170x0102 258 0x0081 130 24-volt outputs,port 2 R 2 180x0104 260 0x0082 132 24-volt inputs, port 1 R 2 180x0106 262 0x0083 134 24-volt inputs, port 2 R 2 180x0108 264 0x0084 136 Network inputs, port 1 R/W 2 180x010A 266 0x0085 138 Network inputs, port 2 R/W 2 180x010C 268 0x0086 140 24-volt input mask 1 R/W 2 180x010E 270 0x0087 142 24-volt input mask 2 R/W 2 18Machine 1 write zone R/W 36 180x0200 512 0x0100 256 Cycle number selection (cycle n) R/W 2 0 - 250 180x0202 514 0x0101 257 Spindle validation R/W 4 180x0206 518 0x0103 259 Specific code length R/W 2 0 - 30 190x0208 520 0x0104 260 Specific code (write bar code) R/W 30 19Machine 2 write zone R/W 36 180x0400 1024 0x0200 512 Cycle number selection (cycle n) R/W 2 0 - 250 180x0402 1026 0x0201 513 Spindle validation R/W 4 180x0406 1030 0x0203 515 Specific code length R/W 2 0 - 30 190x0408 1032 0x0204 516 Specific code (write bar code) R/W 30 190x0600 1536 0x0300 768 Reserved x 2560 -Machine 1 read zone R 120 190x1000 4096 0x0800 2048 - R 20x1002 4098 0x0801 2049 Bar code R 30 190x1020 4128 0x0810 2064 List of OK spindles R 4 190x1024 4132 0x0812 2066 List of NOK spindles R 4 190x1028 4136 0x0814 2068 List of ready spindles R 4 190x102C 4140 0x0816 2070 Number of spindles R 2 1 - 32 190x102E 4142 0x0817 2071 Selected cycle (cycle acknowledge) R 2 0 - 250 190x1030 4144 0x0818 2072 Number of programmed OK cycles R 2 0 to 999 190x1032 4146 0x0819 2073 Number of executed OK cycles R 2 0 to 999 190x1034 4148 0x081A 2074 Number of results R 2 0-65535 190x1036 4150 0x081B 2075 General report R 2 0/1/2 190x1038 4152 0x081C 2076 Simple report (spindle 1) R 2 0/1/2 190x103A 4154 0x081D 2077 Simple report (spindle 2) R 2 0/1/2 19MODBUS / MODBUS TCPPart no 6159935751Issue no 01Language EnglishDate 04/2008Page 15 / 220x103C 4156 0x081E 2078 Simple report (spindle 3) R 2 0/1/2 190x103E 4158 0x081F 2079 Simple report (spindle 4) R 2 0/1/2 190x1040 4160 0x0820 2080 Simple report (spindle 5) R 2 0/1/2 190x1042 4162 0x0821 2081 Simple report (spindle 6) R 2 0/1/2 190x1044 4164 0x0822 2082 Simple report (spindle 7) R 2 0/1/2 190x1046 4166 0x0823 2083 Simple report (spindle 8) R 2 0/1/2 190x1048 4168 0x0824 2084 Simple report (spindle 9) R 2 0/1/2 190x104A 4170 0x0825 2085 Simple report (spindle 10) R 2 0/1/2 190x104C 4172 0x0826 2086 Simple report (spindle 11) R 2 0/1/2 190x104E 4174 0x0827 2087 Simple report (spindle 12) R 2 0/1/2 190x1050 4176 0x0828 2088 Simple report (spindle 13) R 2 0/1/2 190x1052 4178 0x0829 2089 Simple report (spindle 14) R 2 0/1/2 190x1054 4180 0x082A 2090 Simple report (spindle 15) R 2 0/1/2 190x1056 4182 0x082B 2091 Simple report (spindle 16) R 2 0/1/2 190x1058 4184 0x082C 2092 Simple report (spindle 17) R 2 0/1/2 190x105A 4186 0x082D 2093 Simple report (spindle 18) R 2 0/1/2 190x105C 4188 0x082E 2094 Simple report (spindle 19) R 2 0/1/2 190x105E 4190 0x082F 2095 Simple report (spindle 20) R 2 0/1/2 190x1060 4192 0x0830 2096 Simple report (spindle 21) R 2 0/1/2 190x1062 4194 0x0831 2097 Simple report (spindle 22) R 2 0/1/2 190x1064 4196 0x0832 2098 Simple report (spindle 23) R 2 0/1/2 190x1066 4198 0x0833 2099 Simple report (spindle 24) R 2 0/1/2 190x1068 4200 0x0834 2100 Simple report (spindle 25) R 2 0/1/2 190x106A 4202 0x0835 2101 Simple report (spindle 26) R 2 0/1/2 190x106C 4204 0x0836 2102 Simple report (spindle 27) R 2 0/1/2 190x106E 4206 0x0837 2103 Simple report (spindle 28) R 2 0/1/2 190x1070 4208 0x0838 2104 Simple report (spindle 29) R 2 0/1/2 190x1072 4210 0x0839 2105 Simple report (spindle 30) R 2 0/1/2 190x1074 4212 0x083A 2106 Simple report (spindle 31) R 2 0/1/2 190x1076 4214 0x083B 2107 Simple report (spindle 32) R 2 0/1/2 19Machine 2 read zone R 120 190x2000 8192 0x1000 4096 - R 20x2002 8194 0x1001 4097 Bar code R 30 190x2020 8224 0x1010 4112 List of OK spindles R 4 190x2024 8228 0x1012 4114 List of NOK spindles R 4 190x2028 8232 0x1014 4116 List of ready spindles R 4 190x202C 8236 0x1016 4118 Number of spindles R 2 1 - 32 190x202E 8238 0x1017 4119 Selected cycle (cycle acknowledge) R 2 0 - 250 190x2030 8240 0x1018 4120 Number of programmed OK cycles R 2 0 to 999 190x2032 8242 0x1019 4121 Number of executed OK cycles R 2 0 to 999 190x2034 8244 0x101A 4122 Number of results R 2 0-65535 190x2036 8246 0x101B 4123 General report R 2 0/1/2 190x2038 8248 0x101C 4124 Simple report (spindle 1) R 2 0/1/2 190x203A 8250 0x101D 4125 Simple report (spindle 2) R 2 0/1/2 190x203C 8252 0x101E 4126 Simple report (spindle 3) R 2 0/1/2 190x203E 8254 0x101F 4127 Simple report (spindle 4) R 2 0/1/2 190x2040 8256 0x1020 4128 Simple report (spindle 5) R 2 0/1/2 190x2042 8258 0x1021 4129 Simple report (spindle 6) R 2 0/1/2 190x2044 8260 0x1022 4130 Simple report (spindle 7) R 2 0/1/2 190x2046 8262 0x1023 4131 Simple report (spindle 8) R 2 0/1/2 190x2048 8264 0x1024 4132 Simple report (spindle 9) R 2 0/1/2 190x204A 8266 0x1025 4133 Simple report (spindle 10) R 2 0/1/2 190x204C 8268 0x1026 4134 Simple report (spindle 11) R 2 0/1/2 190x204E 8270 0x1027 4135 Simple report (spindle 12) R 2 0/1/2 19AddressDescription AccessSize (bytes)ValuePagebytes wordsHexa. Deci. Hexa. Deci.MODBUS / MODBUS TCPPart no 6159935751Issue no 01Language EnglishDate 04/2008Page 16 / 220x2050 8272 0x1028 4136 Simple report (spindle 13) R 2 0/1/2 190x2052 8274 0x1029 4137 Simple report (spindle 14) R 2 0/1/2 190x2054 8276 0x102A 4138 Simple report (spindle 15) R 2 0/1/2 190x2056 8278 0x102B 4139 Simple report (spindle 16) R 2 0/1/2 190x2058 8280 0x102C 4140 Simple report (spindle 17) R 2 0/1/2 190x205A 8282 0x102D 4141 Simple report (spindle 18) R 2 0/1/2 190x205C 8284 0x102E 4142 Simple report (spindle 19) R 2 0/1/2 190x205E 8286 0x102F 4143 Simple report (spindle 20) R 2 0/1/2 190x2060 8288 0x1030 4143 Simple report (spindle 21) R 2 0/1/2 190x2062 8290 0x1031 4144 Simple report (spindle 22) R 2 0/1/2 190x2064 8292 0x1032 4145 Simple report (spindle 23) R 2 0/1/2 190x2066 8294 0x1033 4146 Simple report (spindle 24) R 2 0/1/2 190x2068 8296 0x1034 4147 Simple report (spindle 25) R 2 0/1/2 190x206A 8298 0x1035 4148 Simple report (spindle 26) R 2 0/1/2 190x206C 8300 0x1036 4150 Simple report (spindle 27) R 2 0/1/2 190x206E 8302 0x1037 4151 Simple report (spindle 28) R 2 0/1/2 190x2070 8304 0x1038 4152 Simple report (spindle 29) R 2 0/1/2 190x2072 8306 0x1039 4153 Simple report (spindle 30) R 2 0/1/2 190x2074 8308 0x103A 4154 Simple report (spindle 31) R 2 0/1/2 190x2076 8310 0x103B 4155 Simple report (spindle 32) R 2 0/1/2 190x3000 12288 0x1800 6144 Machine 1 results zone R Srv 200x5000 60481 0x2800 50241 Machine 2 results zone R Srv 200x7000 28672 0x3800 14336 Specific data zone R/W Srv 210xEFFF 61439 0x77FF 30719 -Option zone R 320 210xF000 61440 0x7800 30720 64 option bytes R 64x10xF040 61504 0x7820 30752 64 option words R 64x20xF0C0 61632 0x7860 30816 32 long option words R 32x4AddressDescription AccessSize (bytes)ValuePagebytes wordsHexa. Deci. Hexa. Deci.MODBUS / MODBUS TCPPart no 6159935751Issue no 01Language EnglishDate 04/2008Page 17 / 224 - DESCRIPTION OF THE MEMORY ZONEThe memory of a tightening controller contains seven main categories of information:- date setting zone, inputs/outputs, 24 V inputs/outputs, inputs/outputs and network mask,- control zone,- read zone,- simple reports per spindle zone,- results per spindle results zone,- special data zone (IsaGraf),- option zone.In the event of asynchronous operation, the tightening controller can be made up of two machines (TWINCVI). Therefore,the seven main information categories above are available for both machines.Reminder: a multi-spindle station can include no more than 32 spindles (MULTICVI).4.1 - Date programming zoneThis zone is used to program the data and time across a network so that the time in the PLCs is coherent.When the PLC accesses the date, it must reset the acknowledge flag (least significant byte) and set the most significantbyte.Example:Control word for access to the dateWhen the CVI has finished programming or reading the date, it resets the most significant byte and provides a report inthe least significant byte:4.2 - Input / output zoneA machine has 14 inputs and 16 x 24 Volt outputs which are in read only mode.Description Access Size TypeYear (0 to 59 for 2000 to 2059) R/W 1 IntegerMonth (1 to 12) R/W 1 IntegerDay (1 to 31) R/W 1 IntegerHours (0 to 23) R/W 1 IntegerMinutes (0 to 59) R/W 1 IntegerSeconds (0 to 59) R/W 1 IntegerControl word for access to the dateR/W 2 IntegerAction (PLC)Most significant byte(first byte - Hexa.)Least significant byte(second byte - Hexa.)Description of the actionWrite 40 00 Request to read the dateRead 00 80 Date information availableData processing timeWrite 80 00 Request to write the date and timeRead 00 80 Date and time successfully loadedBit7 Bit6 Bit6 Bit4 Bit3 Bit2 Bit1 Bit0Completed NOK Year errorMonth errorDay error Hours errorMinutes errorSeconds error1 Yes 1 NOK 1 Error 1 Error 1 Error 1 Error 1 Error 1 Error0 No 0 OK 0 OK 0 OK 0 OK 0 OK 0 OK 0 OKMODBUS / MODBUS TCPPart no 6159935751Issue no 01Language EnglishDate 04/2008Page 18 / 224.2.1 - 24 V Inputs/OutputsThis zone represents the 24 Volt inputs/outputs of the tightening controller. They can be accessed in read-onlymode.4.2.2 - Network inputs/outputsThesamefunctionsexecutedbythe24VinputscanbeusedwithMODBUS.However,notalloftheinputfunctions are available over MODBUS type field bus networks. Only the "Cycle start", "Direction", "Report request", "Emergency stop", "Reset", and "Clear fault" functionsare available across field networks.4.2.3 - Input maskMasks are used to enable or disable the functions of maskable inputs.Masks are only of any use with tightening controllers without an IsaGRAF application.Tightening controllers with an IsaGRAF application can redefine their network inputs/outputs.Example:To enable the "Cycle start" over the field bus network and disable this function by the 24V input, theinput mask must be set to 0x0020 (bit n 5 is set).When an input can be accessed by the network and a 24 V input, an "OR" function is executed between thenetwork input and the 24 V input.4.3 - Machine 1 and 2 write zone4.3.1 - Cycle number selectionThis data is only taken into consideration if "Source of cycle number" is set to "PLC" in the tightening controller.4.3.2 - Spindle validationThis data is only taken into consideration when "Spindle validation" is set to "PLC" in the tightening controller.This list is a 32-bit long word. Each bit corresponds to one spindle.A list of spindles is encoded as follows.BitInput Description(See Input mask)Maskable Output Description0 Cycle 1 Cycle 1 acknowledge1 Cycle 2 Cycle 2 acknowledge2 Cycle 4 Cycle 4 acknowledge3 Cycle 8 Cycle 8 acknowledge4 Cycle 16 Cycle 16 acknowledge5 Cycle startReport OK6 DirectionReport NOK7 Report requestN of cycles OK8 Emergency stop (ES)Running9 ResetReady10 Clear fault-11 Spindle validation -12 Synchro In Reverse run detected 13 External stop Reverse run detected 14 Synchro out15 -Byte N Spindles1st byte Spindles 25 to 322nd byte Spindles 17 to 243rd byte Spindles 9 to 164th byte Spindles 1 to 8MODBUS / MODBUS TCPPart no 6159935751Issue no 01Language EnglishDate 04/2008Page 19 / 224.3.3 - Specific codeWriting the specific code in the memory serves two purposes:- to memorise a code in the tightening results of the tightening controller,- to select a cycle using a code. In order to use the code as the source of the cycle number, the followingoptions must be selected:Note: the PLC must program the specific code and its length in a single record. When the controller takes thespecific code into account, it resets the length.4.4 - Machine 1 and 2 read zoneNote: the size of the machine read zone depends on the number of spindles in the machine. 4.4.1 - Bar codeThis code is the result of reading a standard bar code connected to the station, or copying of the specific code inthe write zone.If the code is less than 30 characters in length, the unused memory is filled with zeros (0x00).4.4.2 - Spindle listThis list is a 32-bit long word. Each bit corresponds to one spindle. A list of spindles is encoded as follows.4.4.3 - Number of spindlesFor a TWINCVI or a MODCVI, the maximum number of spindles per machine is 2.For a MULTICVI, the maximum number of spindles per machine is 32.4.4.4 - Selected cycleThis zone is the equivalent to the cycle acknowledge. 4.4.5 - Number of programmed OK cyclesThis zone contains the number of OK cycles programmed in the selected cycle.4.4.6 - Number of executed OK cyclesThis zone contains the number of executed OK cycles in the selected cycle since the last reset.4.4.7 - General reportThis zone contains the general report of the last executed cycle.4.4.8 - Result numberThis value indicates the number of the result (0 to 65535). This value is reset when it reaches the maximum.4.4.9 - ReportThe reports per spindle are encoded as follows:Byte n Spindles1st byte Spindles 25 to 322nd byte Spindles 17 to 243rd byte Spindles 9 to 164th byte Spindles 1 to 80No general report1General report OK2General report NOKTension Torque rate Torque AngleX X x X X X x x"cycle source n" to "bar code","read by PLC" in the bar code settings.MODBUS / MODBUS TCPPart no 6159935751Issue no 01Language EnglishDate 04/2008Page 20 / 22Each setting may take the following values:4.5 - Machine 1 and 2 results zoneThe size used for this zone depends on the number of spindles and format.4.5.1 - Result format optionsThe results zone is made up of the following:- a general report,- a results zone, the size of which is the size of a spindle result multiplied by the number of spindles in themachine.The description of a result per spindle depends on three options programmed in the tightening controller:- The type of data saved is used to select whether the following data are saved: torque, angle, torque rateand tension.The type of data is programmed in word N 10 as follows:Example:word no. 10 = 0x0007Torque + Angle + Torque rate- The data format is used to select the type of data encoding: ASCII or floating IEEE 754.The data format is programmed in word N 11 as follows:- The type of saved values is used to select the following data for each type of data saved: tolerance, finalvalue and report. The type of values is programmed in word N 12 as follows:These three options are used to adapt the size and presentation of a result per spindle to the user's requirements.Remark: these options can be accessed through an option configuration utility.01 (binary) : Min.11 (binary) : OK10 (binary) : Max.00 (binary) : The spindle did not rotate or was stopped during the cycle.Bit 0 : TorqueBit 1 : AngleBit 2 : Torque rate0 : ASCII1 : floating MOTOROLA2 : floating INTEL0 : Tolerance + Final value + Report1 : Final Value + Report2 : ReportMODBUS / MODBUS TCPPart no 6159935751Issue no 01Language EnglishDate 04/2008Page 21 / 224.5.2 - Result per spindle read zoneThesizeofthiszonedependsonthenumberofspindlesandthesizeofeachresultdependsonthetyperequested.4.5.3 - Size of result per spindleDepending on the three options programmed in the tightening controller, the size of a spindle result takes thefollowing values:4.6 - Specific data zoneThis zone is used for specific applications. It can only be used with IsaGRAF applications. This memory zone can beaccessed by both the PLC and the IsaGRAF application of the tightening controller.The data stored in this memory zone is saved even when the controller power supply is cut.4.7 - Option zoneThis memory zone is read-only. It displays the options used to code the result per spindle zone, as well as the size reservedfor the specific zone.Report description table according to typeDescription ASCII type Example Size Natural MOTOROLA type SizeGeneral report "": No report"A": Accepted"R": Rejected"""A""R"2 0x0000 : no report0x0001: report OK0x0002: report NOK2Min. torque -6.x"49.97""100.2"6 Floating 4Torque -6.x"49.97""100.2"6 Floating 4Max. torque -6.x"49.97""100.2"6 Floating 4Torque pattern "": no result" < ": value is too low" > ": value is too high" = ": result OK2 0x0000: no result0x0001: value is too low0x0010: value is too high0x0011: result OK2Min. angle -6.1 "9999.1""25.2"6 Floating 4Angle -6.1 "9999.1""25.2"6 Floating 4Max. angle -6.1 "9999.1""25.2"6 Floating 4Angle pattern "": no result" < ": value is too low" > ": value is too high" = ": result OK2 0x0000: no result0x0001: value is too low0x0010: value is too high0x0011: result OK2Min. torque rate -6.3 "10.158" 6 Floating 4Torque rate -6.3 "10.158" 6 Floating 4Max. torque rate -6.3 "10.158" 6 Floating 4Torque rate pattern"": no result" < ": value is too low" > ": value is too high" = ": result OK2 0x0000: no result0x0001: value is too low0x0010: value is too high0x0011: result OK2Value maskFormat 0 (full)Tolerance, final, patternFormat 1 (partial)Final, patternFormat 2 (reduced)PatternASCII Natural ASCII Natural ASCII NaturalTorque(word N 10 = 0x0001)20(6x3 + 2)14(4x3 + 2)8(6 + 2)6(4 + 2)2 2Torque, angle(word N 10 = 0x0003)40((6x3 + 2)x2)28(4x3 + 2)x216((6 + 2)x2)12(4 + 2)x24(2x2)4(2x2)Torque + Angle + Torque Rate (word N 10 = 0x0007)60((6x3 + 2)x3)42(4x3 + 2)x324((6 + 2)x3)18(4 + 2)x36(2x3)6(2x3)MODBUS / MODBUS TCPPart no 6159935751Issue no 01Language EnglishDate 04/2008Page 22 / 224.8 - Example Sequence of a complete tightening cycle by MODBUS.Select cycle N(1 to 250)Address = 256Read cycle acknowledgeAddress = 2071Write SCY command = 1Address = 132Read resultsAddress = 6144Read inputCycle in progress = 1Address = 0128Read inputCycle in progress = 0Address = 0128Error: the cycle n does not exist or selection impossible (cycle source PLC)echo = 0YESWrite SCY command =1Address = 0132Cycle acknowledge = cycle requestedCycle in progress = 0Cycle in progress = 1Cycle in progress = 1Cycle in progress = 022


Recommended