Data Communication EDP Interface DISOMAT® B/C/T, DISONET Master 07/97 Order No. 9895 042 DKI 116 gb Copyright: All rights reserved. No part of this documentation may be reproduced by any means without the prior permission of SCHENCK PROCESS GmbH, given in writing. Subject to change without prior notice. Copyright © 1996 SCHENCK PROCESS GmbH, D-64273 Darmstadt Tel: +49 (0)6151 32-1028, Fax: +49 (0)6151 32-1370 Email: service2.process@csd.de SCHENCK PROCESS GmbH a Corporate Division of CARL SCHENCK AG Your Contacts at CARL SCHENCK AG Your Contacts at SCHENCK PROCESS Please do not hesitate to contact your nearest SCHENCK PROCESS office. Prior to calling please prepare some details the knowledge of which will enable us to help you quickly. Our order acknowledgement contains all the information about your system. If this is not available, please read the operating instructions or the type plate to find the serial number and/or the file number issued by us Moreover it would be desirable for us to receive more details about the type of scale or the weighing procedure. Your questions regarding (Installation, Calibration, Troubleshooting, Maintenance Contract, System Modification) will be directly answered by our service department. Please contact us under the following numbers: Telephone: Area code (0 61 51), no. 32 24 48 Telefax: Area code (0 61 51), no. 32 38 26 Your Contacts at CARL SCHENCK AG You require spare parts for your scale? Information can be achieved by contacting us under the following numbers: Telephone: 0 61 51 - 32 33 33 Telefax: 0 61 51 - 32 36 32 Remark: Our service specialists also sell spare parts! Contents Contents 1 About The Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 Safety Hints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 3 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.1 Protocol Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2 DISOMAT Interface Parameters . . . . . . . . . . . . . . . . . . . . 5 6 7 4 Protocols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1 SCHENCK Standard Protocol . . . . . . . . . . . . . . . . . . . . . 4.1.1 Protocol Declaratives . . . . . . . . . . . . . . . . . . . . . . 4.1.2 Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.2 SCHENCK Poll Protocol . . . . . . . . . . . . . . . . . . . . . . . . . 4.2.1 Protocol Declaratives . . . . . . . . . . . . . . . . . . . . . . 4.2.2 Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3 Siemens Protocol 3964R . . . . . . . . . . . . . . . . . . . . . . . . . 4.3.1 Protocol Declaratives . . . . . . . . . . . . . . . . . . . . . . 4.3.2 Data Request Sequence (Siemens Protocol 3964R) 4.4 SIMATIC S5 Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.4.1 Protocol Declaratives . . . . . . . . . . . . . . . . . . . . . . 4.4.2 Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.4.3 SIMATIC S5 Message Samples . . . . . . . . . . . . . . 4.4.4 Sample of DISOMAT Message to S5 . . . . . . . . . . 4.5 Teleperm M . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.5.1 Protocol Declaratives . . . . . . . . . . . . . . . . . . . . . . 4.6 J-Bus (Modbus) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 9 9 12 15 15 17 18 18 20 22 22 24 30 31 32 32 33 5 User Data Construction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 6 EDP Commands . . . . . . . . . . . . . . . 6.1 EDP Commands Overview Table 6.2 Table of Command Formats . . . . 6.3 Explanations of Commands . . . . 6.4 Function Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 37 42 61 66 7 Protocol Specific Features . . . . . . . . . . . . . . . . 7.1 Teleperm M Protocol With One DISOMAT® C 7.2 Teleperm M Protocol With One DISOMAT® T 7.3 Instructions for Successful Interfacing . . . . . . 7.4 J-Bus/Modbus Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 71 76 77 78 8 Special Features of DISONET Master ................. 8.1 Additional Commands for DISONET Master . . . . . . . . . . . 83 84 Data Communication, DKI 116 e, 23.7.97 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . I Contents 8.2 Teleperm M Protocol with DISONET® Master . . . . . . . . . . 8.3 Flexible Command Message . . . . . . . . . . . . . . . . . . . . . . 87 94 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 List of Keywords . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 9 II Data Communication, DKI 116 e, 23.7.97 1 About The Manual 1 About The Manual Whom Does It Serve? This manual is designed to serve technicians and programmers who wish to control DISOMAT B/C/T or DISONET Master by using an EDP system. The DISOMAT variants and their weighing functions as well as the principle of data communication in local computer networks (point-to-point connections and bus systems) are supposed to be known. Software Versions DISOMAT® C as of Version 4.0 DISOMAT® B as of Version 3.1 DISOMAT® T as of Version 2.0 DISONET® Master as of Version 4.1 What Is Described? Among others: Protocols EDP commands identical for all DISOMAT variants, or DISONET Master Protocol-specific particularities Device-specific particularities What If You Meet Terms You Don’t Know? Consult list of keywords, page 95. Supplementary Manuals Overview Internal Number Stock number DKI 108 e 9895 022 DISOMAT B Commissioning Instructions DKI 109 e 9895 027 DISOMAT® C Operating Instructions DKI 118 e1 9895 045 1 9895 046 DISOMAT® B Operating Instructions ® ® DKI 119 e ® DISOMAT T - Projecting, Installation, Commissioning DKI 121 e 9895 048 DISONET Master DKI 117 e 9895 041 DISOMAT C Commissioning Instructions 1 Data Communication, DKI 116 e, 23.7.97 as of Software-Version 4.0 1 1 About The Manual 2 Data Communication, DKI 116 e, 23.7.97 2 Safety Hints 2 Safety Hints Use As Originally Intended When controlling DISOMAT® B/C/T , or DISONET Master, pay heed to the instructions referring to the originally intended use, given in the respective device manuals. Any use other than originally intended is considered inappropriate. General Risks The connected DISOMAT variants, or DISONET Master, correspond to the state of the art and are safe in operation. There may be residual risks, if devices are used by inexperienced persons other than originally intended. Safety-Minded Operation Any person being involved in EDP controlling of the DISOMAT is required to know the respective manuals and particularly the safety hints. The connection of the DISOMAT or the DISONET Master to an EDP and its control via data line may exclusively be performed by trained and authorized personnel who is supposed to be familiar with the weighing functions. Error messages must be acknowledged only if cause of error has been remedied and risks are excluded.1 Error messages may be acknowledged by password entry only if cause of error has been remedied.1 If control systems are connected to the subordinate DISOMAT ensure that they remain in a safe state after acknowledgement of error. 1 Data Communication, DKI 116 e, 23.7.97 With DISOMAT® T, error messages need not be acknowledged. Messages efface automatically once error has been remedied. 3 2 Safety Hints Symbols for Residual Risks Some commands can be used only in interactive mode. This applies in general to all risky commands such as acknowledgement of an error message und starting of a feeding process. In Manual these commands are marked with the opposite symbols. Using these commands without operator acknowledgement may cause bodily injuries or material damage. Ensure that for EDP control of the DISOMAT risky commands will be executed only after operator acknowledgement. Prior to acknowledgement the operator must ensure that all risks are excluded. If this is impossible you should operate the EDP control system without risky commands. Safety Hints for the User The user is responsible for the EDP control of the connected DISOMAT in due form. Responsible persons working on plant are required to know the chapter Safety Hints and the relevant items in Operating and Commissioning instructions. Prior to commissioning the responsible persons are required to check to see if EDP operation of DISOMAT or DISONET Master might jeopardize the safety of other machines or system components. If need be, additional safety hints have to be formulated. 4 Data Communication, DKI 116 e, 23.7.97 3 Introduction 3 Introduction If devices of the DISOMAT family are connected to and remote-controlled from a superordinate EDP system (process computer, PC, programmable logic controls), certain declarations on electrical connections (physical level) and data communication are necessary. Every DISOMAT can be integrated in a local network via serial interface. Data communication uses Protocols. Protocols comprise a set of rules established for connection set-up, formatting and data encoding as well as for ensuring faultfree transmission. All protocols used with the DISOMAT variants operate with reports for sending and receiving of data blocks (messages) and confirmation of connection (acknowledgement). All protocols feature the immediate response behaviour: DISOMAT responds to each message directly and with time-delayed commands, automatically sends an additional message reporting due execution (e.g. taring expects standstill). Data to be transmitted, the socalled user data, are packed in data messages which additionally include control and block check characters. The control characters determine the beginning and end of the data message. To that end, user data are limited either by a start- or end-oftext character, or a message header determines the total length of data message1. Permitting the receiver to recognize error in data transmission, the block check characters (BCC) serve for data protection. Data and user data as such can be character-encoded (e.g. 7-bit ASCII, 8-bit ASCII) or transmitted as binary bit strings. Synchronization Message: Data Message Enquiry Header 1 Data Communication, DKI 116 e, 23.7.97 User Data Data Protection Ending Combined use is also possible. 5 3 Introduction 3.1 3.1 Protocol Overview Protocol Overview The table below shows the protocols currently used with DISOMAT® B, C and T as well as DISONET Master for communication via serial interface. Table of DISOMAT Interface Protocols Protocol DISOMAT® B DISOMAT® C DISOMAT® T DISONET® Master SCHENCK Standard Protocol (Spec Sheet DDP 8 672) used ---- ---- used SIEMENS 3964R (Spec Sheet DDP 8 782) used used used used SCHENCK Poll Protocol (Spec Sheet DDP 8 785) used (as of Version 3.2) ---- used ---- SIMATIC S51 used used used used Teleperm M1 via Master only used used used J-Bus used ---- used used Modbus ---- used ---- ---- Profibus ---- ---- used ---- Interbus-S ---- ---- used ---- Allen-Bradley ---- ---- used ---- DTA used used used ---- DLZ used ---- used ---- DDP8 861 used ---- used ---- Display Protocols: 1 6 Teleperm M and SIMATIC S5 are registered trade marks of SIEMENS AG. Data Communication, DKI 116 e, 23.7.97 3 Introduction 3.2 3.2 Schnittstellen-Parameter der DISOMATen DISOMAT Interface Parameters Before you can operate interface, various parameters require to be set. With DISOMAT B/C and DISONET® Master, enter or select parameters in menu tree at the following menu items: CONFIGURATION / EDPConfiguration and CONFIGURATION / Interfaces. With DISOMAT® T, enter parameters using command language TCLI (via terminal or PC with terminal emulation) or direct with the DISOPLAN® T Windows software. For details, see relevant DISOMAT manual. Data Communication, DKI 116 e, 23.7.97 7 3 Introduction 8 3.2 Schnittstellen-Parameter der DISOMATen Data Communication, DKI 116 e, 23.7.97 4 Protocols 4.1 SCHENCK Standard Protocol 4 Protocols 4.1 SCHENCK Standard Protocol 4.1.1 Protocol Declaratives Synchronisation Message: Data Message Enquiry Header <ENQ> <STX> User Data Data Protection Ending <ETX> <BCC> In the following, the individual data transmission elements are characterized. The sequence of elements is not to be understood as time sequence. Enquiry Transmitter starts data transmission with control character <ENQ>. Data Message The data messages (transmission, request and response messages) are constructed as under: <STX> User Data <ETX><BCC> Acknowledgement Receiver acknowledges successful data transmission with <ACK>; faulty data transmission, with <NAK>. Error Recognition Receiver acknowledges with <NAK> or one of the two peers fails to send feedback within preset period of time. Data Communication, DKI 116 e, 23.7.97 9 4 Protocols 4.1 SCHENCK Standard Protocol Error Treatment Upon errors in data transmission, sender repeats sending various times. With errors in connection set-up, repeats start from enquiry. With faulty transmission of user data, repeats start with data message. Synchronization, Monitoring Times, Repeats: Acknowledgement monitoring time1 tq 2 Response monitoring time Enquiry monitoring time 3 2 seconds ta 5 seconds te 2 seconds Max. number of enquiry repeats 3 Max. number of data repeats 3 Data Protection, Block Check Character Generation <BCC> Block check character BCC is formed as longitudinal parity over all character sent exclusive of <STX>. BBC bits complete number of bits of a bit number line to even. BBC parity bit is not formed in accordance with this rule. It is generated from the 7 bits of the BBC itself. Receiver for his part generates the BCC code and compares it with block check characters received. 1 2 3 10 Wait for acknowledgement after enquiry of message transmission Wait for response message Wait for data receipt to be complete after enquiry Data Communication, DKI 116 e, 23.7.97 4 Protocols 4.1 SCHENCK Standard Protocol Example: Formation of block check character <BCC> for AB34 data. Bit No. S T X A B 3 4 E T X B C C 7 6 5 4 3 2 1 0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 0 0 0 0 1 0 0 1 1 0 0 1 1 0 1 1 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 1 1 1 Parity bit odd 0 1 1 1 0 1 0 (Longitudinal: Even and BCC parity like character parity) Transmission Parity DISOMAT and DISONET Master always have low priority. If both peers attempt to start data communication, DISOMAT or DISONET Master cut off and go to receiving state. Data Communication, DKI 116 e, 23.7.97 11 4 Protocols 4.1 SCHENCK Standard Protocol 4.1.2 Sequence 12 Data Communication, DKI 116 e, 23.7.97 4 Protocols 4.1 SCHENCK Standard Protocol 1st Sequence Sample: 1) Master (EDP) Slave (DISOMAT) Enquiry <ENQ> <ACK> <ACK> Master (EDP) Acknowledgement Request message <STX>WN#TG#<ETX><BCC> 2) Protocol element Slave (DISOMAT) <ENQ> Acknowledgement Protocol element Enquiry Acknowledgement <ACK> <STX>WN#TG#net#tare#dg/dt#status#<ETX><BCC> Response message Acknowledgement <ACK> Description: Scale with scale number WN is to transmit current weight values to EDP. EDP routes command for weigh data transmission to DISOMAT (WN#TG#). DISOMAT responds direct with response message. The latter includes NET weight, TARE weight, weight change per unit time (dW/dt) and information on scale status (status). Data Communication, DKI 116 e, 23.7.97 13 4 Protocols 2nd Sample: 1) 4.1 SCHENCK Standard Protocol Command With Delayed Response Master (EDP) Enquiry <ENQ> <ACK> <ACK> Master (EDP) Acknowledgement Protocol element Slave (DISOMAT) Enquiry <ENQ> Acknowledgement <ACK> <STX>WN#AT#0#<ETX><BCC> Response message Acknowledgement <ACK> 3) Acknowledgement Request message <STX>WN#AT#<ETX><BCC> 2) Protocol element Slave (DISOMAT) Master (EDP) Protocol element Slave (DISOMAT) <ENQ> Enquiry Acknowledgement <ACK> <STX>WN#AT#0#<ETX><BCC> Response message Acknowledgement <ACK> Description: Scale with scale number WN is to tare remote-controlled by EDP. EDP transmits taring command (2#AT#) to DISOMAT (1). However, taring requires certain marginal conditions to be met, e.g. DISOMAT must have recognized No-motion. This may take some seconds. Therefore DISOMAT immediately outputs an immediate response message informing EDP that command is being processed (2). DISOMAT tries to tare scale and, once command is duly executed, transmits a response message including user data WN#AT#0#. If execution fails, response includes a figure unequal to 0, e.g. WN#AT#1#, if DISOMAT has not identified no-motion after a certain period of time. 14 Data Communication, DKI 116 e, 23.7.97 4 Protocols 4.2 4.2 SCHENCK Poll Protocol SCHENCK Poll Protocol1 This protocol has been developed from the SCHENCK Standard Protocol (see Item 4.1, or Spec Sheet DDP 8 672) and is used for special applications, for instance, running weight display in superordinate PC. EDP starts communication direct with request message and DISOMAT responds with corresponding data record. This is done without acknowledgement and without repeat in case of error. Transmission of data contents is secured through block check mechanism (recognition of faulty messages). With this protocol, important response messages can get lost, particularly the delayed response messages whose output time is not exactly predictable. Note: Examples: The feed result message (DO) may be output several hours after start of feeding. The delayed message of taring command (AT) follows direct after first reaction only if scale is in no-motion. 4.2.1 Protocol Declaratives Synchronization Message: Data Message Enquiry Data Protection Header User Data Ending <STX> ... <ETX> <BCC> In the following, the individual data transmission elements are characterized. The sequence of elements is not to be understood as time sequence. Enquiry None ! 1 Data Communication, DKI 116 e, 23.7.97 See also Spec Sheet DDP 8 785. 15 4 Protocols 4.2 SCHENCK Poll Protocol Data Message Data messages (transmission, request and response messages) are constructed as under: <STX> User Data <ETX><BCC> Acknowledgement None ! Error Recognition One of the two peers fails to send feedback within preset period of time. Error Treatment Upon errors in data transmission, transmitter repeats sending various times. Synchronization, Monitoring Times, Repeats: No acknowledgement Response monitoring time1 ta : No enquiry No data repeat No EDP errors on DISOMAT 5 sec. Data Protection, Block Check Character <BCC> Generation See Item 4.1, page 10. Transmission Priority DISOMAT and DISONET Master always have low priority. If both peers wish to start data communication, DISOMAT or DISONET Master cut off and go to receiving state. 1 16 Wait for response message Data Communication, DKI 116 e, 23.7.97 4 Protocols 4.2 SCHENCK Poll Protocol 4.2.2 Sequence Sample: EDP sends command for acquisition and transmission of weigh data to DISOMAT. <STX>WN#TG#<ETX><BCC> DISOMAT responds direct with data message. <STX>WN#TG#net#tare#dg/dt#status#<ETX><BCC> Data Communication, DKI 116 e, 23.7.97 17 4 Protocols 4.3 4.3 Siemens Protocol 3964R Siemens Protocol 3964R 4.3.1 Protocol Declaratives Synchronization Message: Enquiry <STX> Data Message Header User Data ... Data Protection Ending <DLE><ETX> <BCC> In the following, the individual data transmission elements are characterized. The sequence of elements is not to be understood as time sequence. Enquiry Transmitter starts data transmission with control character <STX>. Data Message The data messages (transmission, request and response messages) are constructed as under: User Data <DLE><ETX><BCC> Acknowledgement Receiver acknowledges successful data transmission with <DLE>; faulty transmission, with <NAK>. Error Recognition Receiver acknowledges with <NAK> or one of the two peers fails to send feedback within preset period of time. Error Treatment Upon errors in data transmission, sender repeats sending various times. In principle, repeats start from enquiry. 18 Data Communication, DKI 116 e, 23.7.97 4 Protocols 4.3 Siemens Protocol 3964R Synchronization, Monitoring Times, Repeats: Acknowledgement monitoring time1 tq 2 Response monitoring time Enquiry monitoring time 3 2 sec. ta 5 sec. te 2 sec. Max. number of enquiry repeats 5 Max. number of data repeats 5 Data Protection, Block Check Character <BCC> Generation See Item 4.1, page 10. Transmission Priority DISOMAT and DISONET Master always have low priority. If both peers wish to start data communication, DISOMAT or DISONET Master cut off and go to receiving state. Value Range The value range of transmitted characters of a data section covers 8 bit, i.e. in hexadecimal representation 00 to FF. This value range requires a special treatment of user datas’ end code (<DLE>), if the bit string of the <DLE> character is included in user data. This is done by doubling the <DLE> character. <DLE> Doubling: A <DLE> ocurring in user data is doubled by transmitter, for receiver to completely receive user data. If two <DLE> codes are received, receiver resets doubling and treats <DLE> as data byte. 1 2 3 Data Communication, DKI 116 e, 23.7.97 Wait for acknowledgement after enquiry of message transmission Wait for response message Wait for data receipt to be complete after enquiry 19 4 Protocols 4.3 Siemens Protocol 3964R 4.3.2 Data Request Sequence (Siemens Protocol 3964R) 20 Data Communication, DKI 116 e, 23.7.97 4 Protocols 4.3 Siemens Protocol 3964R Sample: 1) Master (EDP) Slave (DISOMAT) Enquiry <STX> <DLE> <DLE> Master (EDP) Slave (DISOMAT) Acknowledgement Protocol element Enquiry <STX> Acknowledgement <DLE> WN#TS#s#<DLE><ETX><BCC> Response message Acknowledgement <DLE> 3) Acknowledgement Request message WN#TS#<DLE><ETX><BCC> 2) Protocol element Master (EDP) Slave (DISOMAT) Protocol element Enquiry <STX> Acknowledgement <DLE> WN#TS#net#tare#status#<DLE><ETX><BCC> Response message Acknowledgement <DLE> EDP transmits command for weight value transmission at no-motion (1) and receives immediate response that command has been understood. Then, DISOMAT sends delayed message. If command can be executed within preset period of time (20 seconds), delayed message includes requested data, here: weight values (3). If not, corresponding error message is output after elapse of preset period of time. (Command s in response message stands for EDP command status.) Note: With "Transmit Data" the immediate response is also sent. The second response message is omitted. For further samples, see Items 4.1 and 4.2. Data Communication, DKI 116 e, 23.7.97 21 4 Protocols 4.4 4.4 SIMATIC S5 Control SIMATIC S5 Control The protocol used with SIMATIC S5 differs from the SIEMENS 3964R protocol by the 10-byte message header ahead of user data which comprises address, command and length information. To address a scale, Data block (DB) has to be used for a scale number (0...255) and Data word (DW) has to include the message code. Corresponding values are listed in the Table shown at Chapter 6. Messages to DISOMAT are routed to directly adjacent addresses. Example: "Weight At No-motion Request" to DW=6, "Periodic Request" to DW=7. Address of AD Messages routed from DISOMAT consists of a data block entered in dialog and the data word (fixed value) for message identification. (See Chap. 6.1, Page 37.) In SIMATIC S5 Mode, all data are transmitted in ASCII code. Data block or word are represented hexadecimally 0..FF. 4.4.1 Protocol Declaratives Synchronization Message: Data Message Enquiry Header User Data <STX> 10 bytes ... Data Protection Ending <DLE><ETX> <BCC> In the following, the individual data transmission elements are characterized. The sequence of elements is not to be understood as time sequence. Enquiry Transmitter starts data transmission with control character <STX>. 22 Data Communication, DKI 116 e, 23.7.97 4 Protocols 4.4 SIMATIC S5 Control Data Message The data messages (transmission, request and response messages) are constructed as under: Message header User Data <DLE><ETX><BCC> Acknowledgement Receiver acknowledges successful data transmission with <DLE>; faulty data transmission, with <NAK>. Error Recognition Receiver acknowledges with <NAK> or one of the two peers fails to send feedback within preset period of time. Error Treatment Upon errors in data transmission, transmitter repeats sending various times. In principle, repeats start from enquiry. Synchronization, Monitoring Times, Repeats Acknowledgement monitoring time1 tq 2 Response monitoring time Enquiry monitoring time 3 2 sec. ta 5 sec. te 2 sec. Max. number of enquiry repeats 5 Max. number of data repeats 5 All data are transmitted in ASCII code. Transmission Priority DISOMAT and DISONET Master always have low priority. If both peers wish to start data communication, DISOMAT or DISONET Master cut off and go to receiving state. Wait for acknowledgement after enquiry of message transmission Wait for response message Wait for data receipt to be complete after enquiry Data Communication, DKI 116 e, 23.7.97 23 4 Protocols 4.4 SIMATIC S5 Control Value Range The value range of transmitted characters of a data section covers 8 bit, i.e. in hexadecimal representation 00 to FF. This value range requires a special treatment of user datas’ end code (<DLE>), if the bit string of the <DLE> character is included in user data. This is done by doubling the <DLE> character. <DLE> Doubling: A <DLE> ocurring in user data is doubled by transmitter, for receiver to completely receive user data. If two <DLE> codes are received, receiver resets doubling and treats <DLE> as data byte. 4.4.2 Sequence Description of AD and ED Messages: AD messages (SEND messages) consist of message header (10 bytes) followed by data. Response message contains 4 bytes. ED messages (FETCH messages) consist of message header (10 bytes). Response message comprises messages header cut down to 4 bytes followed by requested data. 24 Data Communication, DKI 116 e, 23.7.97 4 Protocols 4.4 SIMATIC S5 Control Protocol with "Fetch Data" (SIMATIC S5, ED Message "FETCH") Protocol with "Send Data" (SIMATIC S5 , AD-Telegramm "SEND"): The sequence with AD messages is the same (see page 24).) as with ED messages, except that the response message is firmly defined. Data Communication, DKI 116 e, 23.7.97 25 4 Protocols 4.4 SIMATIC S5 Control Message Header in SIMATIC S5 Request Message: In SIMATIC S5 mode, message header data are always represented in hexadecimal form. All messages start with two bytes (Ø) zeros followed by message type (ED or AD), data block address, data word address, data length and two coordination flags. Byte No. Meaning 1 0000 2 3 Message type (ED or AD) 4 5 Data block address = Scale number 6 Data word address = Command code 7 Data length (_ > 1) 8 9 10 11 ... 26 Coordination flag To keep configuration work low at highest data safety, value FF is expected for each byte (with ED messages only). Data whose lengths are indicated in 7th and 8th byte (At least 1 data word has to be sent). Data Communication, DKI 116 e, 23.7.97 4 Protocols 4.4 SIMATIC S5 Control AD Message Construction AD message in case of Clear Tare (AC) Request message (SIMATIC S5 → DISOMAT) Byte no. Hex. 1 2 3 4 5 6 7 8 9 10 00 00 41 44 01 02 00 01 ff ff 11 12 20 20 ASCII A D Meaning Command: output Type: data Target: DB = scale no. e.g. 1 Target: DW = command ID "AC" Number: Number: 1 DW Coordination flag (byte) Coordination flag (bit) 1. Data byte - blank 2. Data byte - blank Response Message (DISOMAT → SIMATIC S5) Byte No. 1 2 3 4 Data Communication, DKI 116 e, 23.7.97 Hex. Meaning 00 00 00 xx Fixed length: 4 Byte xx= Error code (00 = Job ok; odd 00 = Error) 27 4 Protocols 4.4 SIMATIC S5 Control ED Message Construction ED Message in case of Request Setpoint (AS) This command sends back the weight values to S5 without no-motion request. S5 can read out the status of the scale from the scale status. For more detailed information see chapter 6.3. For example Net = -123.5kg, Tare 100.0kg and Material flow 12.3kg/sec.. Request message (SIMATIC S5 → DISOMAT) 28 Byte No. Hex. 1 2 3 4 5 6 7 8 9 10 00 00 41 44 01 02 00 01 ff ff 11 12 20 20 ASCII Meaning A D Command: output Type: data Target: DB = scale no. e.g. 1 Target: DW = command ID "AC" Number: Number: 1 DW Coordination flag (byte) Coordination flag (bit) 1. Data byte - blank 2. Data byte - blank Data Communication, DKI 116 e, 23.7.97 4 Protocols 4.4 SIMATIC S5 Control Response message (DISOMAT → SIMATIC S5) Byte No. Hex. ASCII Meaning 1 2 3 4 00 00 00 00 Error number (00 = no error) 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 20 2d 31 32 33 2c 35 23 20 20 31 30 30 2c 30 23 20 20 20 31 32 2c 33 23 63 30 23 00 1. Data byte 2. Data byte 3. Data byte 4. Data byte Net 5. Data byte 6. Data byte 7. Data byte 8. Data byte - Separator 9. Data byte 10. Data byte 11. Data byte 12. Data byte Tare 13. Data byte 14. Data byte 15. Data byte 16. Data byte - Separator 17. Data byte 18. Data byte 19. Data byte 20. Data byte Flow speed 21. Data byte kg/sec 22. Data byte 23. Data byte 24. Data byte - Separator 25. Data byte - Scale st. n1 26. Data byte - Scale st. n2 27. Data byte - Separator 28. Dumybyte 1 2 3 , 5 # 1 0 0 , 0 # 1 2 , 3 # c 0 # or in case of error: Byte No. 1 2 3 4 Data Communication, DKI 116 e, 23.7.97 Hex. Meaning 00 00 00 xx Fixed length: 4 bytes Error code 29 4 Protocols 4.4 SIMATIC S5 Control 4.4.3 SIMATIC S5 Message Samples Acquire tare (AT) Send Message SV: Byte No. Hex. ASCII Meaning 1 2 3 4 5 6 7 8 9 10 00 00 41 44 01 01 00 01 FF FF 11 12 20 20 A D Command: output Type: data Target: DB = scale no. e.g. 1 Target: DW = command ID "AT" Number: Number: 1 DW Coordination flag (byte) Coordination flag (bit) 1. Data byte - Blank 2. Data byte - Blank Response message direct Byte No. Hex. Meaning 1 2 3 4 00 00 00 00 Fixed length: 4 bytes Error code (00 = No error) Response message delayed After the weighing unit has recognized no-motion or after the no-motion waiting time of 20 seconds has elapsed, DISOMAT® B sends following message: Byte no. Hex. ASCII Meaning 30 1 2 3 4 5 6 7 8 9 10 00 00 41 44 32 54 00 01 FF FF 11 12 30 23 A D Command: output Type: Data Target: actual DB adjustable in menu tree e.g. 50 Target: assign fixed DW Number: Number: 1 DW Coordination flag (byte) Coordination flag (bit) 0 # 1. Data byte - Status 0=OK, 1=did not take place 2. Data byte - Separator Data Communication, DKI 116 e, 23.7.97 4 Protocols 4.4 SIMATIC S5 Control 4.4.4 Sample of DISOMAT Message to S5 Feeding Stopped SEND Message: Byte-No. 1 2 3 4 5 6 7 8 9 10 Hex. ASCII Meaning 00 00 41 A Command: output 44 D Type: data 32 Target: actual DB adjustable in menu tree, e.g. 50 50 Target: assign fixed DW 00 Number: 01 Number: 1 DW FF Coordination flag (byte) FF Coordination flag (bit) 11 12 31 23 1 # Identification Feeding stopped Separator Response Message: Byte-No. Hex. Meaning 1 2 3 4 00 00 00 00 Fixed lenght: 4 bytes Error code (00 = No error) DISOMAT automatically sends this message to SIMATIC S5, if feeding has been started from SIMATIC S5 and data block and data word addresses have been entered in decimal form at DISOMAT menu item EDP Configuration. Message may have the following reasons: First HA command (Stop Feeding) from SIMATIC S5 AB command (Abort Feeding) from SIMATIC S5 First stop triggered via keyboard or input contact Error in feeding sequence Stopped feed operation can be restarted with command ’Start Feeding’ (GO: 24). Data Communication, DKI 116 e, 23.7.97 31 4 Protocols 4.5 4.5 Teleperm M Teleperm M Siemens 3964R in Teleperm M Mode This mode of operation is not possible with DISOMAT® B. Teleperm M uses the same protocol (and data header) as SIMATIC S5 (see Item 4.4). Under Teleperm M no character-oriented protocols are declared. This is why special messages are defined: Data messages for transmission of floating comma numbers in Teleperm M format. Bit-oriented messages transmitting information to and from DISOMAT in form of bit fields. 4.5.1 Protocol Declaratives Synchronization Message: Enquiry Data Message Header User Data 10 bytes (8-bit) Data Protection Ending <DLE><ETX> <BCC> All numbers are represented as floating point numbers in Teleperm M format. For communication with a single DISOMAT C, four message types have been defined: Status message Actual value message Job message Setpoint message All other messages without user data equally apply. For message construction, see Item 7.1 (page 71). For communication with a single DISONET Master, four message types have been defined: Start message Status message Actual value message Command message For message construction, see Item 8.2 (page 87). 32 Data Communication, DKI 116 e, 23.7.97 4 Protocols 4.6 4.6 J-Bus (Modbus) J-Bus (Modbus) The J-Bus, or Modbus introduced by Gould Modicon1, is a bus system primarily used in France. It is mainly used for control of peripherals through programmable logic controls (PLC). The two bus systems differ by their physical connections. While Modbus exclusively admits RS485 4-core interfaces, J-Bus is specified as RS485 2-core and, designed as point-to-point connection, also admits current interfaces and RS232. DISOMAT® C supports Modbus. DISOMAT® B supports J-Bus ans is capable of using the protocol on a point-to-point connection. In principle, the DISOMAT variants do use RTU framing. J-Bus and Modbus are real bus systems, i.e. all devices are connected to bus in parallel and a bus master controls the access to bus ("MasterSlave Principle"). Of the numerous functions the J-Bus protocol provides, suffice three to realize the required functionality: 1. Type 3: Read multiple words For data requests; corresponds to SIMATIC S5 ED messages Example: Request Weight 2. Type 6: Write one word For commands with no data; corresponds to SIMATIC S5 AD messages Examples: Tare or Start Feeding 3. Type 16: Write multiple words For commands with data; also corresponds to SIMATIC S5 AD messages Examples: Preset Setpoint, Key-in Tare For message construction, see Item 7.4. 1 Data Communication, DKI 116 e, 23.7.97 See Gould Modbus Protocol, Reference Guide, GOULD Inc., January 1985 33 4 Protocols 34 4.6 J-Bus (Modbus) Data Communication, DKI 116 e, 23.7.97 5 User Data Construction 5 User Data Construction WN#XX#...User Data....# WN#XX#: Message Header1 WN: Scale number, or target address (2-digit decimal number (ASCII-coded 00 ... 99) ) XX: Message code (2 letters (A..Z, ASCII-coded) ) # Separator within user data data : Data corresponding to message code All data are transmitted in ASCII code (e.g. Teleperm M, Items 7.1 and 7.2), unless otherwise instructed. Examples of user data2: Preset data to DISOMAT: Preassign discharge weighing with your parameters (EP) WN#EP#fwag#2#5#1#300#20#0.8#1.0#0# Parameter sequence is identical in message, dialog and manual of selected DISOMAT. Link inputs of function block ’Or1’ (EV) WN#EV#or_1#STIL#IN_1# First input is linked with function block ’No-Mot’ (No-Motion of Scale) (Output designation STIL). The second output is linked with function block ’Input1’ (Output designation IN_1). Set first EDP contact (EK) 1 2 Data Communication, DKI 116 e, 23.7.97 With 3964R For command formats, see Chapter 6. 35 5 User Data Construction WN#EK#1#0#0#0# A set EDP input contact is automatically reset immediately after reading by DISOMAT® B/C. Behaviour is the same as with function block Start. Direct linkage of an EDP input contact with an output contact thus does not make good sense because physically only a short pulse occurs at output. Indicate weight of load on scale in current dimension when calibrating span (AR): WN#AR#200.0# Here: If dimension "kg" is selected, calibrate span to 200 kg. Result Data From DISOMAT: Response message with NET weight, TARE weight and status (TS, 7 places in total for numeric values). WN#TS# 120.0# 40.0#c0# Response message with DISOMAT scale parameters in dimension of 0.1 seconds WR. WN#WR#20#15#0#10# Filter time: No-motion time: Zero tracking: Change-over delay: 2.0 seconds 1.5 seconds OFF 1 second Response message with values of all contacts and analog EDP outputs (TK). WN#TK#1#0#1#1#0#0#0#0#0#0#1#1#1#0# 1234.000# 36 20.000# Data Communication, DKI 116 e, 23.7.97 6 EDP Commands 6.1 EDP Commands Overview Table 6 EDP Commands 6.1 EDP Commands Overview Table This table apply to DISOMAT® C as of Version 4.0 DISOMAT® B as of Version 3.1 DISOMAT® T as of Version 2.0 DISONET® Master as of Version 4.1 Table of EDP Commands Used with DISOMAT B and C Command Code (ASCII message) Type with SIMATIC S5 Data Word DW w/ SIMATIC S5 DW Data length dec. hex. dec. Type with J-Bus Address with J-Bus Available in DISOMAT 6 6 16 6 3 * * 1 2 3 4 5 * * B/C/T B/C/T B/C/T B/C/T B/C/T B/C/T B/C/T 3 8 T 3 9 T 16 3 3 6 6 6 6 3 32 33 34 35 36 37 38 39 B/C B/C B/C B/C B/C B/C B/C B/C hex. Scale Command Group: Acquire tare Clear tare Key-in tare Set to zero Request weight and dg/dt Weight at no-motion Periodic weight request AT AC ET AZ TG TS SZ AD AD AD AD ED AD AD 1 2 3 4 5 6 7 1 2 3 4 5 6 7 Request GROSS weight TB ED 8 8 Request weight (16-bit, integer format) IG ED 9 9 ES AS GB BL GO HA AB DG AD ED ED AD AD AD AD ED 32 33 34 35 36 37 38 39 20 21 22 23 24 25 26 27 14 E 6 6 Feed Group: Preset setpoint Request setpoint Read balance Clear balance Start feeding Stop feeding Abort feeding Request feed status * = Not implemented Data length = Number of data words (2 bytes) in response with ED messages Data Communication, DKI 116 e, 23.7.97 5 9 5 9 9 9 37 6 EDP Commands 6.1 EDP Commands Overview Table Table of EDP Commands Used with DISOMAT B and C Command Code (ASCII message) Type with SIMATIC S5 Data Word DW w/ SIMATIC S5 DW Data length dec. hex. dec. hex. 4 4 Type with J-Bus Address with J-Bus Available in DISOMAT 3 16 64 68 T T 16 85 T Control Group, General: Read all contacts Set contacts RK PK ED AD 64 68 40 44 Set analog output PA AD 85 55 Read all contacts Set EDP contacts TK EK ED AD 64 65 40 41 25 19 3 16 64 65 B/C B/C Request error AF ED 9 D QU AD 42 42 43 9 13 Acknowledge error 66 66 67 3 3 6 66 66 67 B/C T B/C Read linkage Set linkage AV EV * AD * 69 45 * 16 * 69 B/C B/C Read function block param. Set function block param. AP EP * AD * 71 47 * 16 * 71 B/C B/C Delete linkage Store linkage CV SV AD AD 72 73 48 49 6 6 72 73 B/C B/C Start function blocks FS AD 74 4A 6 74 B (ab V5.0) Set code string Read code string SI GI AD ED 75 76 4B 4C 16 3 75 76 B/C B/C PLC job message (bits) SS AD 77 4D 16 77 B/C PLC read message (bits) SL ED 78 4E 3 78 B/C Set Fast Comparator SK AD 79 4F 16 79 B/C Read Fast Comparator GK * Disable keyboard Enable keyboard LK UK AD AD 81 82 Weight message for legal-for-trade PC PC * * 38 6 14 6 0E B/C 51 52 6 6 81 82 B/C B/C * * B/C Data Communication, DKI 116 e, 23.7.97 6 EDP Commands 6.1 EDP Commands Overview Table Table of EDP Commands Used with DISOMAT B and C Command Code (ASCII message) Type with SIMATIC S5 Data Word DW w/ SIMATIC S5 DW Data length dec. hex. dec. hex. 30 26 1E 1A Type with J-Bus Address with J-Bus Available in DISOMAT 3 128 B/C T Parameterization Group: Request device ID ID ED 128 128 80 80 Read print pattern Set print pattern DL DS * AD * 130 82 * 16 * 130 B B Set time EU AD 131 83 16 131 B Read l-f-t parameters ER ED 132 132 84 84 3 3 132 132 B/C T Set l-f-t parameters EE AD 133 85 16 133 B/C/T Read scale parameters WR ED 134 134 86 86 3 134 C/T B Set scale parameters EW AD 135 87 16 135 B/C/T Read special scale param. Set special scale param. MB MS ED AD 136 137 88 89 13 0D 3 16 136 137 B B Read MAX values Set MAX values LM SM ED AD 138 139 8A 8B 15 0F 3 16 138 139 B/C B/C Read START parameters Set START parameters LA SA ED AD 140 141 8C 8D 2 02 3 16 140 141 B/C B/C Read linearization param. Set linearization param. LL LI ED AD 142 143 8E 8F 12 0C 3 16 142 143 B B Read Fixed Tare values Set/select Fixed Tare values LF SF ED AD 144 145 90 91 50 32 3 16 144 145 B B Read analog output parameters Set analog output parameters RA MA T T RO MO T T Read output parameters Set output parameters Data Communication, DKI 116 e, 23.7.97 35 34 5 7 23 22 05 07 39 6 EDP Commands 6.1 EDP Commands Overview Table Table of EDP Commands Used with DISOMAT B and C Command Code (ASCII message) Type with SIMATIC S5 Data Word DW w/ SIMATIC S5 DW Data length dec. hex. dec. Type with J-Bus Address with J-Bus Available in DISOMAT hex. Printing Group: Enter string Print message EB DR AD AD 96 97 60 61 16 16 96 97 B B Dead load calibration Span calibration TO AR AD AD 160 161 A0 A1 6 16 160 161 B/C/T B/C/T Weight in 10-times resolution ZA ED 162 A2 14 0E 3 162 B/C/T Request calibration date DC ED 163 A3 26 1A 3 163 B Calibrate analog output YES # Calibration Group: In addition to the above messages, all initiated by EDP, there is a number of messages initiated by DISOMAT. Note: This does not apply to J-bus mode. In SIMATIC S5 mode, these messages are sent only if the address data block entered in the DISOMAT dialog is not equal to zero. Messages are then sent to data words in this address DB with fixed offset. Feeding complete Weight at no-motion Periodic weight transmission Feeding stopped Taring complete Zeroing complete Dead load calibration complete Span calibration complete Printing complete DO1 TS TG BR AT AZ TO AR DR AD AD AD AD AD AD AD AD AD 0 16 32 80 84 88 92 96 100 0 10 20 50 54 58 5C 60 64 B/C B/C/T B/C/T B/C B/C/T B/C/T B/C/T B/C/T B 1 occurs only if started via Tel.! Interface Group: Read EDP configuration Set EDP configuration LE SE T T Read interface parameters Set interface parameters IL IS # # T T Read DISONET setting Set DISONET LD SD # # T T Read Profibus setting Set Profibus LP SP # # T T Read Interbus setting Set Interbus LB SB # # T T Diagnosis Group: 40 Data Communication, DKI 116 e, 23.7.97 6 EDP Commands 6.1 EDP Commands Overview Table Table of EDP Commands Used with DISOMAT B and C Command Code (ASCII message) Type with SIMATIC S5 Data Word DW w/ SIMATIC S5 DW Data length dec. hex. dec. Type with J-Bus Address with J-Bus Available in DISOMAT hex. Measured value diagnosis DM # T Network counter NC # T Device test, short Device test, long LT KT ED ED Data Communication, DKI 116 e, 23.7.97 166 167 A6 A7 3 3 166 167 T T 41 6 EDP Commands 6.2 6.2 Table of Command Formats Table of Command Formats On the following pages you will find an overview of the command formats for the user data, divided into Scale Command Group Feed Group Control Group, General Parametrization Group Printing Group Calibration Group Interface Group Diagnosis Group DISOMAT Messages Group. For more information on the individual commands, see Item 6.3. 42 Data Communication, DKI 116 e, 23.7.97 AC ET AZ TG TS SZ TB IG Clear tare Key-in tare Set to zero Request weight Weight at no-motion Periodic weight request Request GROSS weight Request weight (16-bit, integer) Data Communication, DKI 116 e, 23.7.97 AT Code Acquire tare Scale Command Group: Command 6 EDP Commands WN#IG# WN#TB# w: Period in multiples of 0.1 seconds Permissible values: 0.5 or 99 (w=0 output cut off) WN#SZ#w# WN#TS# WN#TG# WN#AZ# WN#ET#tara# tare tare weight WN#AC# WN#AT# Transmission, or Request, Message Message processing Message processing Direct Gross (7 digits) Message processing Message processing Net (7 digits) e.g. -123,5 Tare (7 digits) e.g. 50,0 dW/dt (7 digits) Scale status (see Item 6.3) WN#IG#LowByteHighByte(Netto)LowByteHighByte(Tara)LowByteHighByte(dg/dt) Net, Tare, dW/dt as 16-bit integer, normalized to 10000 (full scale value), status brutto: WN#TB#brutto# WN#SZ#s# WN#TS#s# netto: tara: dg/dt: status: WN#TG#netto#tara#dg/dt#status# WN#AZ#s# WN#ET#s# WN#AC#s# WN#AT#s# Response Message Table of EDP Commands Used with DISOMAT B, C and T Command executed Command executed periodic: WN#TG#netto#tara#dg/dt#status# WN#TS#netto#tara#status# This message is sent after the weighing unit has recognized no-motion or after the waiting time of 20 sec. has elapsed. WN#AZ#s# WN#AT#s# Delayed 43 6.2 Table of Command Formats WN#BL# WN#GO# GB BL GO HA AB DG Read balance Clear balance Start feeding Stop feeding1 Abort feeding Request feed status (7 digits) Data Communication, DKI 116 e, 23.7.97 (9 digits) Direct Message processing stat: Feed status 0 / 1 / 2 =^ no / active / stopped act: Actual value set: Setpoint WN#DG#stat#ist#soll# WN#AB#s# WN#HA#s# WN#GO#s# WN#BL#s# WN#GB#g#w# g: Balance total (11 digits, right-flush with 2 after-comma places) w: Dump number (4 digits) WN#AS#g# g: Setpoint WN#ES#s# Response Message Table of EDP Commands Used with DISOMAT B, C and T Two times HA has the same effect as AB, i.e. entails abort of feeding operation WN#DG# WN#AB# WN#HA# WN#GB# WN#AS# AS Request setpoint WN#ES#g# g: Setpoint Transmission, or Request, Message ES Code Enter setpoint Feed Group: Command 6 EDP Commands WN#BR# Command executed 1st response: WN#BR# 2nd response: WN#BR# or WN#DO# Delayed Attempting stop Feeding stopped Feeding complete 44 6.2 Table of Command Formats WN#EK#x1#x2#x3#x4# TK EK AF Read all contacts Set EDP contacts Request error Data Communication, DKI 116 e, 23.7.97 WN#TK# PA Set analog output WN#AF# x1..x4: new value (0/1) for contact 1..4 (see Item 6.3, page 63) Direct Position of input contacts 1-4 Position of output contacts 1-6 Position of virtual EDP contacts 1-4 Analog EDP outputs (Float 10.3) F-Text: Error number and text as in dialog WN#AF#F-Text# WN#EK#s# (contact set: x=1, contact not set: x=0) x1..x4: x5..x10: x11..x14: a1,a2: WN#TK#x1#x2#x3#x4#x5#x6#x7#x8#x9#x10#x11#x12#x13#x14#a1#a2# WN#PA# WN#PK#s# Kx: Value, contact x is to be set to Kx = ’1’: HIGH, Kx = ’0’: LOW, All else: Contact remains unchanged. Contacts can be set via EDP only if, in configuration, contact source has been set to "EDP". WN#RK#K1#K2#K3#K4# Kx: Position of contact x (x = 1,2,3,4) Kx = ’1’: HIGH, Kx = ’0’: LOW Response Message Table of EDP Commands Used with DISOMAT B, C and T WN#PA#aaaa# aaaa : Analog output value, 0 - 10000 0 <==> Minimum current ( 0 or 4 mA) 10000 <==> Maximum current (20 mA) WN#PK#K1#K2#K3#K4# PK Set contacts WN#RK# Transmission, or Request, Message RK Code Read all contacts Control Group, General: Command 6 EDP Commands Delayed 45 6.2 Table of Command Formats WN#FS# AP EP CV SV FS SI Read function block param. Set function block param. Delete linkage Store linkage Start function blocks Set code string Data Communication, DKI 116 e, 23.7.97 WN#SV# EV Set linkage Function block code (4 digits, see Item 6.4) Function block code (4 digits, see Item 6.4) Output identification of the function block to be linked in order of inputs 1..n WN#SI#t# t: WN#CV# p1..pn: b: Code string, max. 10 digits Function block code (4 digits, see Item 6.4) Parameter WN#EP#b#p1#...#pn# b: WN#AP#b# a1..an: b: Direct Function block code Output identification of the linked function blocks in order of inputs 1..n of function block b. WN#SI#s# WN#FS#s# WN#SV#s# WN#CV#s# WN#EP#s# b: p1..pn: Function block code Parameter WN#AP#b#p1#..#pn# WN#EV#s# b: a1..an: WN#AV#b#a1#..#an# WN#QU#s# Only errors of the classes Message, Warning und Alarm can be acknowledged by key operation, errors of class Error must be acknowledged via dialog (password). Response Message Table of EDP Commands Used with DISOMAT B, C and T 4-digit function block identification (see Item 6.4, page 66) WN#EV#b#a1#..#an# b: WN#AV#b# AV Read linkage WN#QU# Transmission, or Request, Message QU Code Acknowledge error Control Group, General: Command 6 EDP Commands Delayed 46 6.2 Table of Command Formats SS SL SK GK LK UK PLC job message (bits) PLC read message (bits) Set Fast Comparator Read Fast Comparator Disable keyboard for 1 minute Enable keyboard Data Communication, DKI 116 e, 23.7.97 GI Code Read code string Control Group, General: Command 6 EDP Commands WN#UK# WN#LK# For parameters, see SK Comparator number 1..4 activate: 0/1 =^ No/Yes Switch-on value Switch-off value WN#GK#n# n: e: ein: aus: WN#SK#n#e#ein#aus# XX=2 Job bytes (for details, see Item 6.3, page 63) WN#SS#XX# WN#GI# Transmission, or Request, Message t: Code string max. 10 digits Direct WN#UK#s WN#LK#s WN#GK#n#e#ein#aus# For parameters, see SK WN#SK#s# b1: Byte 1 = Scale status b2: Byte 2 = EDP and input contacts b3: Byte 3 = Output contacts (For meaning, see Item 6.3, page 62) netto: Net (7 digits) brutto: Gross (7 digits) dg/dt: dW/dt (7 digits) WN#SL#b1#b2#b3#netto#brutto#dg/dt# WN#SS#s# WN#GI#t# Response Message Table of EDP Commands Used with DISOMAT B, C and T WN#SL# Further response messages on request: WN#AT#s#, WN#AZ#s#, WN#BR#s# Delayed 47 6.2 Table of Command Formats PC Code Data Communication, DKI 116 e, 23.7.97 Weight message for legal-fortrade PC Control Group, General: Command 6 EDP Commands kennung: 8 of any ASCII characters for clear message identification WN#PC#kennung# Transmission, or Request, Message Direct kennung: g1,g2: status: w1: w2: w3: typ: w.b: F-Text: 8 coded characters (copied from original message) Net, Tare Scale status Full scale value in kg Number of increments Dimension of scale 0 / 1 / 2 / 3 =^ kg / g / t / lb Scale type 0 / 1 / 2 =^ single range / multi-division / multi-range Scale number’.’Range Error number and text WN#PC#kennung#g1#g2#status#w1#w2#w3#typ#w.b#F-Text# Response Message Table of EDP Commands Used with DISOMAT B, C and T Delayed 48 6.2 Table of Command Formats DL DS EU ER EE Set print pattern Set time Read l-f-t parameters 1 Read print pattern Number of print pattern 1/2/3 (For parameter, see Item 6.3, page 64.) WN#EE#w1#w2#w3#w4#w5#w6#w7#w8#w9#w10# w11#w12#w13# WN#ER# Day.Month.Year#Hour:Minute:Second WN#EU#TT.MM.JJ#hh:mm:ss# For parameters, see DL WN#DS#nr#muster# nr: WN#DL#nr# WN#ID# Transmission, or Request, Message Number of print pattern 1/2/3 No. 4 EDP format Format string of print pattern x = B or C WN#EE#s# (For parameters, see Item 6.3, page 64) WN#ER#w1#w2#w3#w4#w5#w6#w7#w8#w9#w10#w11#w12#w13# WN#EU#s# WN#DS#s# muster: nr: Direct Text "DISOMAT x Carl Schenck AG" Version number of software Series number of device WN#DL#nr#muster# t: vn: sn: WN#ID#t vn sn# Response Message Table of EDP Commands Used with DISOMAT B, C and T Data Communication, DKI 116 e, 23.7.97 With DISOMAT® B this variant is possible only if calibration switch is set to calibration mode. With DISOMAT® T calibration plug-in jumper has to be properly set. With DISOMAT® C calibration contact requires to be set and the calibration password to be entered. Command EE may exclusively be used with non-legal-for-trade scales. If an existing verification sticker is damaged, scale requires to be re-verified. Set l-f-t parameters ID Code Request device ID Parametrization Group: Command 6 EDP Commands Delayed 49 6.2 Table of Command Formats WN#MS#e1#e2#e3#e4# WN#LM# WN#SM#dg#bl#sch# For parameters, see LM MS LM SM LA Set special scale par. Read MAX values Set MAX values Read START parameters Data Communication, DKI 116 e, 23.7.97 WN#MB# MB Read special scale par. WN#LA# e3: e4: e2: e1: Scale type 0/1/2=Multiple range / Single range / Multidivision Full scale value of small range in kg without after-comma places Scale interval of small range F electr. w1..w4 see WR WN#EW#w1#w2#w3#w4# EW Set scale parameters WN#WR# Transmission, or Request, Message WR Code Direct sp: ko: Language 0/1/2/3/4 =^ English /German/ Italian/ French/ Spanish Start characteristics of contacts 0/1 =^ High/Low WN#LA#sp#ko# WN#SM#s# dg: Max. dW/dt (7 digits) bl: Max. balance (11 digits, right-flush, incl. 2 after-comma places) sch: Max. dumps (4 digits) WN#LM#dg#bl#sch# WN#MS#s# For e1..e4, see MS MB#e1#e2#e3#e4# WN#EW#s# w1: Filter time in 10th seconds w2: No-motion time in 10th seconds w3: Autom. zero tracking 0/1 =^ on/off only with DISOMAT B: w4: Change-over delay time in 10th seconds WN#WR#w1#w2#w3#w4# Response Message Table of EDP Commands Used with DISOMAT B, C and T Read scale parameters Parametrization Group: Command 6 EDP Commands Delayed 50 6.2 Table of Command Formats LL LI LF SF RA MA Read linearization param. Set linearization param. Read fixed tare value Set + select fixed tare value Read analog output parameters: Set analog output parameters: Data Communication, DKI 116 e, 23.7.97 SA Code Set START parameters Parametrization Group: Command 6 EDP Commands Language 0/1/2/3/4 =^ English /German/ Italian/ French/ Spanish Start characteristics of contacts 0/1 =^ off/on WN#MA#anummer#qu#t#min#max# For parameter, see RA WN#RA#anummer# anummer: Analog output number (=1 with DISOMAT® T) WN#SF#w1#...#w9# w1..w9: Fixed tare values WN#LF# Lin.werte: w1 / w2 / w3 =^ 25%value / 50%value / 75%value WN#LI#w1#w2#w3# WN#LL# ko: sp: WN#SA#sp#ko# Transmission, or Request, Message Direct WN#MA#anummer#s WN#RA#anummer#qu#t#min#max# anummer: Number of analog output (=1 with DISOMAT® T) qu: Source of analog output 0: Output LOW, 1: Net, 2: Gross, 3: dW/dt, 4: From EDP t: Type, 0: 0 - 20mA; else: 4 - 20 mA min, max: Value for minimum/maximum current in kg or kg/s WN#SF#s# WN#LF#w1#...#w9# w1..w9: Fixed tare values WN#LI#s# WN#LL#w1#w2#w3# Lin.values: w1 / w2 / w3 =^ 25%value / 50%value / 75%value WN#SA#s# Response Message Table of EDP Commands Used with DISOMAT B, C and T Delayed 51 6.2 Table of Command Formats MO Set output parameters Data Communication, DKI 116 e, 23.7.97 RO Code Read output parameters Parametrization Group: Command 6 EDP Commands WN#MO#knummer#qu#t#schwell#hyst# WN#RO#knummer#s Transmission, or Request, Message Direct WN#MO#0# WN#RO#knummer#qu#t#schwell#hyst# knummer: Number of output contact 1,2,3,4 qu: Source of output 0: Output LOW, 1: Net, 2: Gross, 3: dW/dt, 4: No-Motion 5: Tared, 6: From EDP, 7: Fault t: Type 0: MAX contact; else: MIN contact schwell: Threshold in kg or kg/s hyst: Hysteresis in kg or kg/s Response Message Table of EDP Commands Used with DISOMAT B, C and T Delayed 52 6.2 Table of Command Formats 6 EDP Commands 6.2 Table of Command Formats Table of EDP Commands Used with DISOMAT B, C and T Command Printing Group: Code Transmission, or Request, Message Response Message Direct Delayed Only possible with DISOMAT® B Enter string EB WN#EB#text# text=max. 30 text digits WN#EB#s# Print message DR WN#DR#n#text# n=Number of print pattern text=string (max. 30 digits) WN#DR#s# s=1=no no-motion, send again later! After printing: WN#DR#n#x#status#string# n=Number of print pattern x=0 No print error x=1 Error occured during printing status=Scale status string=Formated string For example see Operating manual chapter 13.6.5 EDP Format Weight displays like Disomat display. Net without comma or tons display = 14 digits e.g. <2032kg> Net e.g. <12,34t> Net Net in kg comma = 15 digits e.g. <123,5kg> Net Grosso/Tare without comma or tons display = 13 digits e.g. <123kg> B Gross/Tare in kg comma 14 = digits e.g. <1234,5kg> B Data Communication, DKI 116 e, 23.7.97 53 DC Request calibration date WN#DC# WN#ZA# g: Weight on scale in actual units WN#AR#g# WN#TO# Transmission, or Request, Message Message processing Message processing Direct Net Tare dW/dt Scale status Calibration parameter date Scale parameter data Dead load calibration date Span calibration date Format of dat1..4: TTMMJJhhmmss 2 digits each for Day Month Year Hour Minute Second dat1: dat2: dat3: dat4: WN#DC#dat1#dat2#dat3#dat4# netto: tara: dg/dt: status: WN#ZA#netto#tara#dg/dt#status# WN#AR#s# WN#TO#s# Response Message Table of EDP Commands Used with DISOMAT B, C and T Data Communication, DKI 116 e, 23.7.97 With DISOMAT® B this variant is possible only if calibration switch is set to calibration mode. With DISOMAT® T calibration plug-in jumper has to be properly set. With DISOMAT® C calibration contact requires to be set and the calibration password to be entered. Command EE may exclusively be used with non-legal-for-trade scales. If an existing verification sticker is damaged, scale requires to be re-verified. ZA AR TO Code Weight in 10-times resolution Span calibration 1 Dead load calibration 1 Calibration Group: Command 6 EDP Commands WN#AR#s# Command executed WN#TO#s# Command executed Delayed 54 6.2 Table of Command Formats JA Code Data Communication, DKI 116 e, 23.7.97 Calibrate analog output Calibration Group: Command 6 EDP Commands WN#JA#was#wert# was: Next action: 1: Set current to minimum 2: Minimum current is "wert" mA 3: Set current to maximum 4: Maximum current is "wert" mA 5: Calibrate now 6: Restore default values Transmission, or Request, Message WN#JA#s# Response Message Direct Table of EDP Commands Used with DISOMAT B, C and T Delayed 55 6.2 Table of Command Formats SE IL IS Set EDP configuration Read interface parameters Set interface parameters Data Communication, DKI 116 e, 23.7.97 LE Code Read EDP configuration Interface Group Command 6 EDP Commands WN#IS#n#bd#pa#ha#st# WN#IL#n# WN#SE#wn#pp#ss#db#dz#vs# wn, pp, ss, db, dz, vs: See at LE WN#LE# Transmission, or Request, Message Direct WN#IS#s# WN#IL#n#bd#pa#ha#st# bd: Baud rate, 96 = 9600, 48 = 4800, 24 = 2400, 12 = 1200, 6 = 600, 3 = 300 pa: Parity, 8N = 8-bit no, 8E = 8-bit even, 7E = 7-bit even ha: Handshake (ignored) st: Stop bits (1 or 2) WN#SE# WN#LE#wn#pp#ss#db#dz#vs# wn: Scale number pp: Protocol 0: 3964R, 1: S5, 2: Teleperm, 3: DDP8785, 10: J-Bus, 11: Allen Bradley, 20: DTA, 21: DLZ, 22: Siebert ss: Interface: 0: Off 1: Local (on DISOMAT® T) 2: Via DISONET® Master db: Data block for S5 dz: Decimal digit: 0: comma, 1: point vs: Coded: Ignored Response Message Table of EDP Commands Used with DISOMAT B, C and T Delayed 56 6.2 Table of Command Formats SD LP SP LB SB Configure DISONET Read Profibus setting Configure Profibus Read Interbus configuration Configure Interbus Data Communication, DKI 116 e, 23.7.97 LD Code Read DISONET setting Interface Group Command 6 EDP Commands WN#SB#sl# Request message: WN#LB# WN#SP#sl#bd# For description, see LP message WN#LP# WN#SD#sl#pf#bd#pa#zyk#le# For description, see LD message WN#LD# Transmission, or Request, Message Direct WN#SB# For description, see LB message WN#LB#sl# sl: Station number (1-126) WN#SP# WN#LP#sl#bd# sl: Station number (1-126) bd: Baud rate: 0: 9600 baud, 1: 19200 baud, 2: 93.75 kbaud, 3: 187.5 kbaud, 4: 500 kbaud Response mesage: WN#SD# WN#LD#sl#pf#bd#pa#zyk#le# sl: Slave number (1-16) pf: Absolute path in network (3 digits) bd: Baud rate: 0: 768 kbaud, 1: 384 kbaud, 2: 192 kbaud, 3: 96 kbaud pa: Type of process image: 0: No process image 1: For DISONET® Master or DISOMAT® D with FE2/4 2: For FE5 zyk: Cycle time for sending of process image 0: As often as possible >0: Cycle time in 100msec le: LE number to which process image and all other messages are to be sent; relevant with new network only. Response Message Table of EDP Commands Used with DISOMAT B, C and T Delayed 57 6.2 Table of Command Formats 6 EDP Commands 6.2 Table of Command Formats Table of EDP Commands Used With DISOMAT B, C and T Command Code Transmission, or Request, Message Response Message Direct Measured value diagnosis DM WN#DM# WN#DM#z1#z2#z3#z4#z5#z6#z7# z1: Offset z2: Autocal z3: Sense voltage z4: Check number z5: Zero setting value z6: Raw measured value z7: Initial calibration value Network counter NC WN#NC# WN#NC#rd#wr#er# rd: Read error wr: Write error er: Error counter Device test, long LT WN#LT# WN#LT##z1#z2#z3#z4#z5#z6#z7# z1: Offset (normalized, tolerance range<=> ±100) z2: Autocal " z3: Sense voltage " z4: Check number " z5: Zero setting value " z6: Network error rate in ‰ z7: Error number Device test, short KT WN#KT# WN#KT#n# n: Total of values from LT message Delayed Diagnosis Group Data Communication, DKI 116 e, 23.7.97 58 Code Transmission, or Request, Message BR Feeding stopped Data Communication, DKI 116 e, 23.7.97 DO Feeding completed Actual value Tolerance Optimized main contact WN#BR# Response Message Direct Table of EDP Commands Used with DISOMAT B, C and T This message is sent only if feeding was started via message (GO)! g1: g2: g3: WN#DO#g1#g2#g3# Group of messages initiated by DISOMAT: DISOMAT itself transmits a message. Command 6 EDP Commands Delayed 59 6.2 Table of Command Formats Data Communication, DKI 116 e, 23.7.97 6 EDP Commands 60 6.2 Table of Command Formats 6 EDP Commands 6.3 6.3 Explanations of Commands Explanations of Commands WN Two-digit scale number e.g. 01 s Code number of EDP command status Code number unequal 0 means faulty command execution. Code number status Status/Error 0 OK 1 No no-motion 2 Out of zeroing range 3 Parameter not OK 4 Command not OK 5 Tare too small 6 Span too small 7 Cable breakage 8 Mechanical error 9 Parameter error 10 Initial calibration error 11 Invalid values 12 Check number error 13 Calibration switch, calibration contact, or calibration plug-in jumper in wrong position 14 Increment value error 15 Data invariable -1 Other errors Scale status in hexadecimal representation. Bit No Meaning 0 Underrange 1 Overrange (weight > full scale value) 2 Tare computed 3 Exact zero 4 Operation with 10-times resolution of weight value 5 Weight invalid 6 Tare acquired 7 No-motion recognized Example: Status "c0" is interpreted as hexadecimal number 0xc0 and converted into binary number 1100 0000; Value: 11000000 Bit: 76543210 Note: Data Communication, DKI 116 e, 23.7.97 Bit 6 and 7 are acquired, i.e tare is acquired and no motion is recognized. The hexadecimal digits a...f are always output in lower case letters. 61 6 EDP Commands SL 6.3 Explanations of Commands used for PLC read message Byte 1 Explanation Bit No. 2 Output of virtual (EDP) outputs of the respective DISOMAT. Preassigned are: 3 0 Underrange 1 Overrange 2 Tare computed 3 Exact zero 4 Operation with resolution 5 Weight invalid 6 Tare acquired 7 No-motion 8 Contact 1 9 Contact 2 10 Contact 31 11 Contact 41 12 EDP 1 13 EDP 2 14 EDP 3 15 EDP 4 16 Contact 1 17 Contact 2 18 Contact 3 19 Contact 4 20 Contact 51 21 Contact 61 22 Stand-by 23 Stand-by Scale status Output of physical input contacts of the respective DISOMAT. Output of physical output contacts of the respective DISOMAT. Meaning Sequence in message: bytes: 1 2 3 Bits: 76543210 15...8 23...16 0 with DISOMAT® C 62 Data Communication, DKI 116 e, 23.7.97 6 EDP Commands SS 6.3 Explanations of Commands applied for job messages Message type: Data block: Data word: Bit output Scale number 4d (hex) Message structure: 16 bits, each encoding a job for the respective scale. The bit in a message must always be reste prior to a new order. For meaning of bits, see below: Reference: Bit No. 0 Taring 1 Clear tare 2 Set to zero 3 Start feeding 4 Stop feeding 5 Abort feeding 6 Clear balance 7 Acknowledge error 8 - 15 EK Meaning Stand-by Acquire EDP contacts WN#EK#x1#x2#x3#x4# WN#EK#s# x1-x4: values, to which the EDP contacts shall be set (permissible are 0 and 1) Response message sample: WN#EK#1#0#0#0# Immediately after having read a set EDP input contact DISOMAT will automatically reset it. Therefore direct connection of the EDP input contacts to an output contact is useless, as physically only a short pulse will occur at the output. Data Communication, DKI 116 e, 23.7.97 63 6 EDP Commands EE 6.3 Explanations of Commands Input of L-F-T Parameters WN#EE#W1#W2#W3#W4#W5#W6#W7#W8#W9#W10#W11#W12#W13# ER L-F-T Parameter Enquiry WN#ER# WN#ER#W1#W2#W3#W4#W5#W6#W7#W8#W9#W10#W11#W12#W13# Code Legal-For-Trade Parameters W1: Scale units: 0 = kg, 1 = g, 2 = t W2: Full scale value in kg W3: For DISOMAT® C: Number of scale increments For DISOMAT® B/T: Increment value of scale W4: No-motion difference 0 = 4d, 1 = 2d, 2 = 1d, 3 = 0d W5: Zeroing range 0 = 20%, 1 = 10%, 2 = 4%, 3 = 2%, 4 = 0% of full scale value W6: Overrange 0 = 110%, 1 = 102%, 2 = 101%, 3 = 100% of full scale value, 4 = 9d W7: Mechanical factor W8: Electrical factor W9: L/C rated capacity in kg W10: L/C number W11: L/C characteristic in µV/V W12: Dead load in unit of respective scale W13: Calibrated 0/1 = ^ Yes/No1 ® (for DISOMAT C as of version 3.0, for DISOMAT® B as of version 3.2: 0/1/2 = ^ Yes, conform to EEC/ no / Austria ) Example (for DISOMAT® C): WN#ER#0#1000#2000#2#0#1#1,00000#1,00000#2200#1#2.85#0,0#0# Irrelevant with DISOMAT® T (non-legal-for-trade) 64 Data Communication, DKI 116 e, 23.7.97 6 EDP Commands 6.3 Explanations of Commands Explanations of EDP Errors The DISOMAT® B or C software distinguishes various errors in data communication flashing on DISOMAT display as A32: EDP error n (n = error No.). Error No. Error Data Communication, DKI 116 e, 23.7.97 1 Timeout in local EDP Task 2 No connection between local EDP Task and Interface Task 3 Error during request or response 4 No dynamic storage area available 5 Error during periodic transmission or other Timeout in local EDP Task 65 6 EDP Commands 6.4 6.4 Function Blocks Function Blocks The table below shows all function blocks of DISOMAT® B and DISOMAT® C. Following commands require identification of the function blocks and their outputs: EV and AV for linking the function blocks (EV = Acquire function block, AV = Read function block) EP and AP for parameterization of the function blocks (EP = Acquire function block parameter, AP = Read function block parameter). For changing the function block configuration, observe the following sequence of commands to be executed: 1. EV + EP Commands for input of linkages and parameters 2. SV Save new linkage data in EEPROM 3. FS Restart function block linkage (only for DISOMAT® B as of Software Version 5.0) Note: 66 With the first command changing the actual function block configuration (EV or EP), the function block processing will be stopped. Data Communication, DKI 116 e, 23.7.97 6 EDP Commands 6.4 Function Blocks Code Function block Name Output AnaOut anou AnaOut B/C Output1 out1 Output1 B/C Output2 out2 Output2 B/C Output3 out3 Output3 B/C Output4 out4 Output4 B/C Output5 out5 Output5 B Output6 out6 Output6 B C-Discharge aust C-Dischg C-Fill AFUE AAUS C Bin.0 anul Bin.0 ANUL B/C R-Feed sww_ RDribble R-Disch R-Active SFEI SENT SAKT B String fbei String Balance summ Balance ClearBal bilz ClearBal B/C DrawBal bila DrawBal B/C Gross brut Gross BRUT B/C Bin.1 bein Bin.1 BEIN B/C Bin.0 bnul Bin.0 BNUL B/C dW/dt dgdt dW/dt DGDT B/C Print1 dru1 Print1 DRU1 B Print2 dru2 Print2 DRU2 B Print3 dru3 Print3 DRU3 B I/O Out1 eao1 I/O Out1 B/C I/O Out2 eao2 I/O Out2 B/C Input1 in_1 Input1 IN_1 B/C Input2 in_2 Input2 IN_2 B/C Input3 in_3 Input3 IN_3 B Input4 in_4 Input4 IN_4 B EDP Out1 edo1 EDP Out1 B/C EDP Out2 edo2 EDP Out2 B/C EDP Out3 edo3 EDP Out3 B/C EDP Out4 edo4 EDP Out4 B/C EDP In1 edi1 EDP In1 EDI1 B/C EDP In2 edi2 EDP In2 EDI2 B/C Data Communication, DKI 116 e, 23.7.97 Code Output available in DISOMAT Name Function block B SUMM B/C 67 6 EDP Commands 6.4 Function Blocks Name Function block Code Function block Name Output Code Output available in DISOMAT EDP In3 edi3 EDP In3 EDI3 B/C EDP In4 edi4 EDP In4 EDI4 B/C D-Feed ewag D-Full DDribble D-Fill D-Resid D-Active EGRO EFEI EFUE ERES EAKT B/C F-Feed fwag F-Full F-Dribble F-Disch F-Resid F-Active FGRO FFEI FENT FRES FAKT B/C Fixed Tare ftar Fixed Tare B Man Tare fhan Man Tare B Comp1 kom1 Comp1 KOM1 B/C Comp2 kom2 Comp2 KOM2 B/C Comp3 kom3 Comp3 KOM3 B/C Comp4 kom4 Comp4 KOM4 B/C Multipl. mult Multipl. MULT B/C Net nett Net NETT B/C Not1 not1 Not1 NOT1 B/C Not2 not2 Not2 NOT2 B/C Not3 not3 Not3 NOT3 B/C Not4 not4 Not4 NOT4 B/C Not5 not5 Not5 NOT5 B Not6 not6 Not6 NOT6 B Set to 0 null Set to 0 Or1 or_1 Or1 OR_1 B/C Or2 or_2 Or2 OR_2 B/C Or3 or_3 Or3 OR_3 B/C Or4 or_4 Or4 OR_4 B/C Or5 or_5 Or5 OR_5 B Or6 or_6 Or6 OR_6 B PID pidr PID PIDR Acquire Error quit Acquire Error 68 B/C C B Data Communication, DKI 116 e, 23.7.97 6 EDP Commands 6.4 Function Blocks Code Function block Name Output Fast Comp1 Commands SK and GK. Fast Comp1 B/C Fast Comp2 B/C Fast Comp3 B/C Fast Comp4 See table of command formats (Item 6.2, page 47) Fast Comp4 B/C Dump schu Dump Setpoint soll Setpoint Memory spei Hold Sp-Out HOLD SPAU Memory1 spe1 Hold1 Sp-Out1 HOL1 SPA1 B Memory2 spe2 Hold2 Sp-Out2 HOL2 SPA2 B Start star Start STAR C Stop stop Stop STOP C StartStp star Start Stop STAR STOP B No-Motion stil No-Motion STIL B/C Error stoe Error STOE B/C Subtract subo Subtract SUBO B/C Cycle1 tak1 Cycle1 TAK1 B/C Cycle2 tak2 Cycle2 TAK2 B/C Tare tara Tare TARA B/C ClearTr tarl ClearTr B/C Taring tari Taring B/C Tared tart Tared TART B/C Key F1 fu_1 Key F1 FU_1 B Key F2 fu_2 Key F2 FU_2 B Key F3 fu_3 Key F3 FU_3 B Key F4 fu_4 Key F4 FU_4 B TestZero nute TestZero Timer time Fast Comp2 Fast Comp3 ! Error in V3.1 ! Timer parameters not parameterizable via APCommand. Enter time at menu item "Edit Function Block’. Code Output available in DISOMAT Name Function block SCHU B/C B / (C) C B TIM1 TIM2 TIM3 B And1 and1 And1 AND1 B/C And2 and2 And2 AND2 B/C And3 and3 And3 AND3 B/C Data Communication, DKI 116 e, 23.7.97 69 6 EDP Commands 6.4 Function Blocks Name Function block Code Function block Name Output Code Output available in DISOMAT And4 and4 And4 AND4 B/C And5 and5 And5 AND5 B And6 and6 And6 AND6 B Delay1 vg_1 Delay1 VG_1 B/C Delay2 vg_2 Delay2 VG_2 B/C Delay3 vg_3 Delay3 VG_3 B/C Delay4 vg_4 Delay4 VG_4 B/C S-Dischg wahl S-Dischg S-Fill WENT WFUE B/C Counter zaeh CterAct CterPos ZAKT ZSTA Counter1 zae1 CterAct1 CterPos1 ZAK1 ZST1 B Counter2 zae2 CterAct2 CterAct2 ZAK2 ZST2 B Counter3 zae3 CterAct3 CterAct3 ZAK3 ZST3 B 70 C Data Communication, DKI 116 e, 23.7.97 7.1 Teleperm M Protocol With One DISOMAT® C 7 Protocol-Specific Features 7 7.1 Protocol Specific Features Teleperm M Protocol With One DISOMAT® C Between Teleperm M-PLC and DISOMAT® C the following messages are provided: Status Message Actual Value Message Job Message Setpoint Message Data Communication, DKI 116 e, 23.7.97 71 7.1 Teleperm M Protocol With One DISOMAT® C 7 Protocol-Specific Features Status Message On request DISOMAT® Message Type: Data Block: Data Word: Message Structure: C transmits all status information available. Bit-Request (ED) Scale Number 5d For the scale 32 Bit with the following meaning: Byte Explanation 1 Scale status Bit-No. 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 ... 31 Output of the physical input contacts of DISOMAT® C / T 2 Output of the virtual (EDP) outputs of DISOMAT® C. 3 Output of the physical output contacts of the respective DISOMAT. 4 Stand-by Meaning Underrange Overrange Tare computed Exact zero Resolved operation Weight invalid Tare acquired No-motion Contact 1 Contact 2 Contact 31 Contact 41 EDP 12 EDP 22 EDP 32 EDP 42 Contact 1 Contact 2 Contact 3 Contact 4 Contact 51,2 Contact 61,2 Stand-by Stand-by Sequence in message: Bytes: 1 2 3 4 Bits: 76543210 15..8 23..16 31..24 0 for DISOMAT® C 0 of DISOMAT® T 72 Data Communication, DKI 116 e, 23.7.97 7.1 Teleperm M Protocol With One DISOMAT® C 7 Protocol-Specific Features Actual Value Message On request DISOMAT® C transmits all actual values available. Message type: Data block: Data word: Number Request (ED) Scale Number 5e Message structure: For scale - 4 floating point numbers in Teleperm M format with the following meaning: Number 1 : Number 2 and number 3 : Net of scale in kg (fixed). Values of the DISOMAT® C analog EDP outputs. Via function block linking these outputs can be assigned e.g. to Gross, dW/dt, Balance, ... Value range of these outputs is -1...+1. During ouput this range will be standardized to full scale value, i.e. the output values are between -full scale value and +full scale value. Thus, GROSS output will be in kg. If Max_dW/dt and Max_Balance are appropriately selected, value can be output in useful units. Number 4: Error number on scale (without error class specification). For meaning of the individual error numbers see DISOMAT® C Operating and Commissioning Manuals. For sample computation, Item 8.2. Data Communication, DKI 116 e, 23.7.97 73 7.1 Teleperm M Protocol With One DISOMAT® C 7 Protocol-Specific Features Job Message Teleperm M transmits non-parametric jobs to DISOMAT® C. Message type: Data Block: Data Word: Bit Output (AD) Scale number 4d Message structure: 16 Bit, each coding a job for the respective scale. The job is initiated by setting the bit. Meaning of the individual bits: Bit No. Meaning 0 Taring 1 Clear tare 2 Set to zero 3 Start feeding 4 Stop feeding 5 Abort feeding 6 Clear balance 7 Acknowledge error 8 ... 15 Stand-by Setpoint Message Teleperm M transmits setpoint to DISOMAT® C. 74 Message type: Data Block: Data Word: Number Output (AD) Scale Number 1f Message Structure: Setpoint in kg for entry into DISOMAT® C setpoint memory. Data Communication, DKI 116 e, 23.7.97 7.1 Teleperm M Protocol With One DISOMAT® C 7 Protocol-Specific Features Table of EDP Commands Teleperm M with one DISOMAT® C Command Type Status message ED Actual value message ED Job message AD Command message AD Data word DW Data length dec. hex. dec. hex 93 5D 2 02 available in DISOMAT C 94 5E 8 08 C 92 4D C 31 1F C Table of EDP Command Formats from Teleperm M to one DISOMAT® C Command Code Request message Response message Direct Status message 5D (10 byte data header) (4 byte data header) a a=4Byte status information Actual value message 5E (10 byte data header) (4 byte data header) z1z2z3z4 z1z2z3z4 = 4 floating point numbers Job message 4D (10 byte data header) a a= Bit sequence (4 byte data header) Command message 1F (10 byte data header) a a= Setpoint (4 byte data header) Data Communication, DKI 116 e, 23.7.97 Delayed 75 7.2 Teleperm M Protocol With One DISOMAT® T 7 Protocol-Specific Features 7.2 Teleperm M Protocol With One DISOMAT® T Between Teleperm M PLC DISOMAT® T the following messages are exchanged: Status message Actual value message Table of EDP Commands - Teleperm M --> Single DISOMAT® T Command Type Data Word DW Data Length dec. hex. dec. Available in DISOMAT hex Status message ES 93 5D T Actual value message ED 94 5E T Table of EDP Command Formats - Teleperm M --> Single DISOMAT® T Command Code Request Message Response Message Direct Delayed Status message 5D (10-byte data header) (4-byte data header) a a = 3-byte status information Actual value message 5E (10-byte data header) (4-byte data header) z1z2z3z4 z1z2z3z4 = 4 floating point numbers 76 Data Communication, DKI 116 e, 23.7.97 7 Protocol-Specific Features 7.3 7.3 Instructions for Successful Connection Instructions for Successful Interfacing Error When starting coupling with Teleperm M, error will occur immediately. DISONET Master transmits <NAK> or error message. Cause / Remedy No routing entry for initialization message. The addressed Slave does not exist or has failed No entry in the routing table Wrong scale numbers DISOMAT transmits response messages on Teleperm M command. Data block in Slave is not zero. Response to SIEMENS 3964R for SIMATIC S5 is output. No periodic output Error on interface. Periodic output must be reinitialized. Wrong switching values of comparators. Wrong values transmitted. The values must be transmitted in % of full scale value. Changing over from fill feed to discharge feed (command code 145 and 146) of flexible command message does not work. No function block configuration. The change-over command is executed only in the input range (Start/Stop). Complete configuration with all necessary function blocks is required. Feed process aborts after Stop. Stop command message has been transmitted twice. (2x Stop=abort) Total does not correctly arrive at Teleperm M. Value is converted into % of full scale value and must be reconverted by Teleperm M. Data Communication, DKI 116 e, 23.7.97 77 7 Protocol-Specific Features 7.4 7.4 J-Bus/Modbus-Procedure J-Bus/Modbus Protocol General Information on J-Bus (Modbus) In the RTU version realized for DISOMAT all messages have the following construction: Slave Address (1 byte) Function Code (1 byte) < 127 data Block check (2 bytes) DISOMAT accepts only messages with Slave address corresponding to the scale number entered via dialog (menu item EDP configuration). The data construction depends on the function code used (for detailed description of function codes, see page 79ff). The block check will be computed as Standard CRC16. End of message will be recognized after expiry of 25 msec without receiving any characters. As a rule, the J-Bus (Modbus) specifies the time of 3.5 characters, i.e. 25 msec at 1200 baud. At higher speeds, DISOMAT delay time is too long, however, without any adverse effects on protocol. Note: Speeds < 1200 baud are not permitted. The J-Bus (Modbus) operates according to a strict Master-Slave Protocol, i.e. a Slave can only respond to a message from Master. Active transmission is not allowed. According to the J-Bus-Protocol (Modbus-Protocol), a response is provided for each message from Master. Response message is constructed as under: Slave Address (1 byte) Function Code (1 byte) Data Block Check (2 bytes) If job is duly processed, function code is identical to that in the message from Master. In case of error, the 8th bit will be additionally set and data contain an error code. Data construction depends on function code used. 78 Data Communication, DKI 116 e, 23.7.97 7 Protocol-Specific Features 7.4 J-Bus/Modbus-Procedure Detailed Description of Function Code Function Code 3, Reading of Multiple Words Request message construction: Address Function Code = 3 Start Address High Byte (ignored in DISOMAT) Start Address Low Byte ( = message code in DISOMAT) Number of words to be read High Byte (ignored) Number of words to be read Low Byte (ignored) CRC16 Response message after successful transmission Address 3 (echo of function code) Length of output data in bytes Data CRC16 Response message after faulty transmission Address 83 (hex) = Echo of function code (3) + 8th Bit set Error code CRC16 Note: Reading of data subrecords specifying an address > message code is impossible. Example: Reading of Gross, Net and Status of address 50. Reading of address 64 status alone is impossible! Data Communication, DKI 116 e, 23.7.97 79 7 Protocol-Specific Features 7.4 J-Bus/Modbus-Procedure Function Code 6, Writing of One Word Request Message Construction: Address Function Code = 6 Address High Byte (ignored in DISOMAT) Address Low Byte ( = Message code in DISOMAT) Value to be written High Byte Value to be written Low Byte CRC16 Response message after successful transmission Address 6 (echo of function code) Address High Byte (ignored in DISOMAT) as echo Address Low Byte ( = message code in DISOMAT) as echo Value to be written High Byte as echo Value to be written Low Byte as echo CRC16 Response message after faulty transmission Address 86 (hex) = Echo of function code (6) + 8th bit set Error code CRC16 80 Data Communication, DKI 116 e, 23.7.97 7 Protocol-Specific Features 7.4 J-Bus/Modbus-Procedure Function Code 16, Writing of Multiple Words Request Message Construction Address Function Code = 16 Start Address High Byte (ignored in DISOMAT) Start Address Low Byte ( = message code in DISOMAT) Number of words to be written High Byte (ignored) Number of words to be written Low Byte (ignored) Number of byte to be written Values to be written CRC16 Response Message in case of success Address 16 (echo of function code) Start Address High Byte as echo Start Address Low Byte ( = message code in DISOMAT) as echo Number of words to be written High Byte as echo Number of words to be written Low Byte as echo CRC16 Response Message in case of error Address 90 (hex) = Echo of function code (16) + 8th Bit set Error Code CRC16 Error Codes may be: 1: 2: 3: 4: Data Communication, DKI 116 e, 23.7.97 Invalid function code ( not 3, 6 or 16) Invalid address = message code unknown to DISOMAT Invalid data Device breakdown = local communication software (EDP-Task) does not respond or error when processing the read command 81 7 Protocol-Specific Features 7.4 J-Bus/Modbus-Procedure Special Features of the J-Bus/Modbus The J-Bus Protocol is a true Master-Slave Protocol, i.e. data enquiry is executed only from Master to Slave. No Slave can transmit data without request from Master. As a consequence, delayed reponse message do not arrive, i.e. all EDP functions implying a delayed reponse message are not applicable or to be limited extent only (delayed response on success/failure is missing). These are: EDP Functions Not Applicable for J-Bus/Modbus Correction / Solution Acquire tare Look for tared bit in scale status. Zeroing Look for weight near zero. Weight enquiry at no-motion Determine weight without nomotion and look for no-motion bit. Periodic weight enquiry Read weight periodically. Message Feed stopped Read feed status periodically. Actual value message after completion of feed process On completion of feed process store weight value in a memory linked with a analog EDP output (connection of function blocks), look in feed status for feed end and read then analog output (see definition of command TK "Read all contacts") The data will be transmitted in ASCII Code, i.e. the ASCII messages will be used, however, without #XX# command code, thus ensuring their universal application for all the various machine-dependent data formats during J-Bus transmission (Modbus transmission). Note: 82 Transmission of 4-byte integer values application. as special Data Communication, DKI 116 e, 23.7.97 8 Special Features of DISONET Master 8 Special Features of DISONET Master DISONET Master is able to execute the following EDP protocols: DDP 8 672 Standard Protocol 3964R SIMATIC S5 Teleperm M (see table at Item 3.1, page 6) Available are all functions provided by one DISOMAT in these modes of operation, though due to the routing of messages via DISONET the response time will be prolonged depending on the number of slaves. Max. number of slaves is 8, mixed operation with DISOMAT® B, C, D and T as slaves is possible. If it is useful, DISONET Master itself can proceed a subset of EDP commands concerning e.g. Error enquiry and acknowledgement Device identification Note: Data Communication, DKI 116 e, 23.7.97 Special features of DISONET Master with SIMATIC S5 Protocol: The address of DISONET Master in the 5th byte of the message head shall not be 0, as SIMATIC S5 does not accept input of 0. Remedy: Assign to the DISONET Master an address which is unequal 0 and does not coincide with a slave number of the connected DISOMAT. Enter this address in the routing table of the DISONET Master (see Manual DKI 117) and use it in the message head of SIMATIC S5. 83 8 Special Features of DISONET Master 8.1 8.1 Additional Commands for DISONET Master Additional Commands for DISONET Master Table of Special EDP Commands for DISONET Master Command Code (ASCII message) Type Data word DW for Teleperm M Data word DW for SIMATIC S5 Data length Data length dec. hex. dec. hex. dec. hex. dec. Available in hex. Data Concentrator Function Group : Original message = Initialize periodic transmission IZ AD 90 5A DISOMAT status output n ST ED 93 5D 13 0D DISOMAT actual value output n IW ED 94 5E 64 4D DISOMAT actual value output n I0 resp. I4 ED ED * * DISOMAT flexible command message 1 FL AD 92 Request weight and status in cycles (Teleperm format) IN AD 90 98 62 16 10 DISONET Master 13 0D * DISONET Master DISONET Master 48 128 30 80 5C 97 61 5A * 3E 3E 62 62 DISONET Master DISONET Master * DISONET Master DISOMAT® T Apart from above messages initiated by the EDP partners there is a number of messages which will be sent on DISOMAT initiative. This is not applied to J Bus Mode. In SIMATIC S5 Mode these messages will be sent only on condition that the address data block entered via dialog is not zero. The messages will be transmitted to this address data block with fixed offset of data words. * Periodic status output ST AD as initialized 16 Periodic actual value output IW AD as initialized * Periodic actual value output I0 resp.I4 AD * 48 128 * = Not implemented Data length = Number of data words (2 bytes) in response with ED messages 10 DISONET Master DISONET Master 30 80 DISONET Master Not applicable 84 Data Communication, DKI 116 e, 23.7.97 Code Request Message ST I0 resp.I4 FL DISOMAT status message n DISOMAT actual value message n DISOMAT flexible command message 1 Data Communication, DKI 116 e, 09.05.94 IZ Original message = Initialize periodic transmission Character encoded: Master Address (as a rule 00, for SIMATIC S5 unequal 00) MA#FL#WN#kenn1#p1#..pn#kenn2#p1#..pn#.......X# MA = Master Address (as a rule 00, for SIMATIC S5 unequal 00) WN=Scale number of the DISOMAT addressed kenn 1...kenni=Code (ASCII-coded number, table on page 95) p1..pn = Parameter for code X = ’0’ end code MA#I0# bzw. MA#I4# MA = Master Address (as a rule 00, for SIMATIC S5 unequal 00) MA#ST# MA MA#FL#s# s=0: ok If not: Consecutive number of wrong command in message MA#I0#f1f2f3i1#...4times.# for scale 1..4 resp. MA#I4#f1f2f3i1#...4times.# for scale 5..8 f1f2f3i1= 3 x Float (9.2) and 1 x Integer (3 digits) f1 = Net F2 = Analog output 1 f3 = Analog output 2 i1 = Error number MA#ST#123..123..45# 123 = 3 Byte Status information for each DISOMAT 45 = 2 Byte Status information DISONET Master MA#IZ#s# Direct Response Message Table of EDP Command Formats in particular for DISONET Master MA#IZ#zeit#x1#[ x2# ][ x3# ] optional extension MA Master Address (as a rule 00, for SIMATIC S5 unequal 00) zeit: Indication in units of 0.1 seconds. Minimum 5 = 0,5 seconds (0 = cut-off) x1,x2,x3: Command code of DISONET Master e.g. ST,I0,I4 Data Concentrator Functions (DISONET Master) Group: Distinction between character-encoded messages and messages in Teleperm M-Format Command 8 Special Features of DISONET Master Messages as initialized (e.g. ST, I0, I4). If 2 or 3 messages are initialized, the variable ’time’ indicates the transmission interval for the individual messages Delayed 85 8.1 Additional Commands for DISONET Master 5D 5E 5C 00 IN DISOMAT status message n DISOMAT actual value message n DISOMAT flexible command message 1 Teleperm initialization message Request weight and status in cycles (Teleperm M format) Data Communication, DKI 116 e, 09.05.94 5A Code Original message = Initialize cyclic transmission Teleperm M Format : Command 8 Special Features of DISONET Master WN#IN#s DB: e8 DW: 00 without data Xwnkenn1p1..pnkenn2p1..pn.......V wn=Scale number kenn1...kennn = Code p1..pn=Parameter for code V=’0’ end code For codes, see table at Items 8.3 (10 byte message head) (10 byte message head) (10 byte message head) z1z2z3z4z5 Request Message WN#IN#z1z2z3z4z5 z1:Destination- Data block for actual value message z2:Destination- Data word for actual value message z3:Destination- Data block for status message z4:Destination- Data word for status message z5: Cycle time in 100msec (6-byte response) 4 bytes ZERO, 2 bytes indefinite ( 4-byte response) (10-byte message header) z1z2z3i1...z1z2z3i1# z1z2z3i1= 3 x float 10.3 and 1 x integer for each scale (10-byte message header) 123..123..45 123 = 3-byte status information for each DISOMAT 45 = 2-byte status information DISONET Master (4 Byte response) Response Message Table of EDP Command Formats in particular for DISONET Master 86 8.1 Additional Commands for DISONET Master 8.2 Teleperm M Protocol with DISONET®-Master 8 Special Features of DISONET Master 8.2 Teleperm M Protocol with DISONET® Master Between Teleperm M PLC and DISONET® Master the following message exchange is provided: Start message Status message Actual value message Command message Upon restart, Teleperm M additionally transmits a special Initialization message requiring the following DISONET® Master settings: Routing address: Network address: Scale number: Message type: Data Communication, DKI 116 e, 23.7.97 232 0 99 ES 87 8 Special Features of DISONET Master 8.2 Teleperm M Protocol with DISONET®-Master Original Message from Teleperm M to DISONET® Master By means of the original message from Teleperm M to DISONET® Master the periodic data transmission from DISONET® Master to Teleperm M is parameterized, started or stopped. Message type: Data block: Data word: Message construction: Number output (AD) 0 5a (hex) 5 floating point numbers in Teleperm M format with the following meaning: Number 1: Data block for transmission of status message to Teleperm M. Number 2: Data word for transmission of status message to Teleperm M. Number 3: Data block for transmission of actual value message to Teleperm M. Number 4: Data word for transmission of actual value message to Teleperm M. Number 5: Period of status and actual value message output. Indication in units of 100 msec. The indication is optional. If there is no indication, system assumes: period 10 = 1 second. The shortest possible period is 5 = 0.5 seconds. Shorter periods will be set to 5. Status and actual value messages are output in turn at intervals of one period. With a message with ’Number 1 = 0’ or ’Number 3 = 0’ the output of one of the two messages is suppressed. With ’Number 5 = 0’ the periodic output of DISONET®-Master is completed. 88 Data Communication, DKI 116 e, 23.7.97 8.2 Teleperm M Protocol with DISONET®-Master 8 Special Features of DISONET Master Status Message from DISONET®-Master to Teleperm M Via the status message from DISONET®-Master to Teleperm M all available status informations (26 Byte) will be transmitted. Message type: Bit-Output (AD) Data block and Data word: Transmitted with start message. Message construction: meaning: Byte 1 24 bytes for each scale with the following Explanation Scale status Output of the physical input contacts of the respective DISOMAT. 2 Output of the virtual (EDP)-outputs of the respective DISOMAT. 3 Output of the physical output contacts of the respective DISOMAT. 4 ... 24 Bit No. Meaning 0 Underrange 1 Overrange 2 Tare computed 3 Exact zero 4 Resolved operation 5 Weight invalid 6 Tare acquired 7 No-motion 8 Contact 1 9 Contact 2 10 Contact 31 11 Contact 41 12 EDP 1 13 EDP 2 14 EDP 31 15 EDP 41 16 Contact 1 17 Contact 2 18 Contact 3 19 Contact 4 20 Contact 51 21 Contact 61 22 Stand-by 23 Stand-by Bytes of scales 2... 8 0 for DISOMAT® C Data Communication, DKI 116 e, 23.7.97 89 8.2 Teleperm M Protocol with DISONET®-Master 8 Special Features of DISONET Master In addition 2 bytes with connection and READY informations are transmitted. Byte 25 26 Explanation Connection information READY information Bit No Meaning 0 Connection to scale 1 OK 1 Connection to scale 2 OK 2 Connection to scale 3 OK 3 Connection to scale 4 OK 4 Connection to scale 5 OK 5 Connection to scale 6 OK 6 Connection to scale 7 OK 7 Connection to scale 8 OK 8 Ready for operation; no error on DISONET®-Master 9 Stand-by 10 Stand-by 11 Stand-by 12 Stand-by 13 Stand-by 14 Stand-by 15 Stand-by Sequence in message: 90 Bytes: 1 2 3 ... 25 26 Bits: 76543210 15..8 23..16 ... 76543210 15..8 Data Communication, DKI 116 e, 23.7.97 8.2 Teleperm M Protocol with DISONET®-Master 8 Special Features of DISONET Master Actual Value Message from DISOMAT to Teleperm M The actual value message from DISOMAT to Teleperm M transmits all actual values available. Message type: Data block and Data word: Number Output (AD) will be transmitted via start message Message structure: For each connected scale 4 floating point numbers in Teleperm M format with the following meaning: Number 1 : Net weight of load on scale in kg (fixed) Number 2 and number 3 : Values of the analog EDP outputs of the respective DISOMAT. Via function block linkage these outputs can be assigned to Gross, dW/dt, Balance,... Value range of these outputs is -1...+1. During output this range will be standardized to the full scale value, i.e. the output values are between -full scale value and +full scale value. Thus, GROSS output will be in kg. If Max_dW/dt and Max_Balance are selected accordingly, values can also be output in useful units. Number 4: Error number on scale (without indication of Error Class). For meaning of the individual error numbers, see DISOMAT® B, C or T Operating or Commissioning Manuals. Data Communication, DKI 116 e, 23.7.97 91 8.2 Teleperm M Protocol with DISONET®-Master 8 Special Features of DISONET Master Examples for computation of number 2, or 3: The actual value of the parameter linked with the EDP output shall be transmitted to EDP for further processing. The transmitted numerical value at output NumberOutput is related to the full scale value, as in most cases weight values are required. Computation formula (numerical value equation): NumberOutput Actual Value Max. Value Full Scale Value In case of weight value transmission the max. value equals the full scale value, i.e. NumberOutput indicates the weight value direct. With a GROSS weight of 250.1 kg, at the EDP output the numerical value 250.1 will occur on condition that the GROSS weight is linked with the EDP output. This numerical value can be processed immediately. If no weight values are linked with the EDP output (e.g. Balance or dW/dt) there are two possibilities: Either suitable presetting of the max. value in the DISOMAT or recomputation of the numerical value NumberOutput to the required actual value via EDP according to the following formula: NumberActual Value NumberOutput Max. Value Full Scale Value Example: Full scale value = 3000 kg Max dW/dt = 50 kg/s dW/dt = 7.5 kg/s NumberOutput 7.5 50 3000 450 This numerical value must be recomputed via EDP to obtain the actual dW/dt value. NumberActual Value 92 450 3000 50 7.5 Data Communication, DKI 116 e, 23.7.97 8.2 Teleperm M Protocol with DISONET®-Master 8 Special Features of DISONET Master Flexible Command Message from Teleperm M to DISOMAT The flexible command message from Teleperm M to DISOMAT transmits variable command sequences to the DISOMAT. Message type: Data block: Data word: Number output (AD) 0 5c (hex) Message structure: Floating point numbers in Teleperm M format The message length is variable. The message starts with the scale number followed by a sequence of commands for this scale. Number 1: Scale number Number 2: Command code. Number 3 - number n: Parameters for this command. The number of parameters for each command and their meanings will be defined with each code. The message ends with the end code (floating point number 0). For flexible command message, see Table at Item 8.3, page 95. Data Communication, DKI 116 e, 23.7.97 93 8 Special Features of DISONET Master 8.3 8.3 Flexible Command Message Flexible Command Message For communication of DISONET Master with central data processing system (PC or PLC) a flexible message type has been defined.(#FL# for ASCII, or 0x92 for SIMATIC S5, see table below). It is characterized in that several command codes with their parameters can be transmitted via one single message. Format: MA#FL#WN#kenn1#p1#..pn#kenn2#p1#..pn#.......X# MA WN kenn1..kennn p1..pn X = = = = = DISONET Master address Scale number of the addressed DISOMAT Code (ASCII-coded number) Parameters for code ’0’-end code Example:Setpoint entry, parametrization of the function block D-Feed and start signal in one message: MA#FL#01#32#125.00#143#2#5#1#300#20#0.8#1.0#0#36#0# The most decisive advantage of this message is the time saving, as with other message types a number of individual messages is required to transmit the data to the respective DISOMAT. Not all defined commands are useful for such a message. Therefore we have made a selection specified in a list of FL command codes (see table below). For faults, the following protocol has been defined: If there is an error in the execution of specific commands (see foot note), the consecutive number of this command in message command will be transmitted to EDP and the subsequent message commands are no longer executed. The users's EDP must consider this for system control. DISONET Master cannot make any corrections. Parametrization commands 140-144 are followed by function block meaning (command ´EP´) A WN#FS# command= Start function blocks must then be sent . 94 Data Communication, DKI 116 e, 23.7.97 8 Special Features of DISONET Master 8.3 Flexible Command Message Table of FL Command Codes Command Code Number of Parameter s Acquire tare1 Parameter Description 1 0 1 2 0 1 3 1 Set to 0 4 0 Enter setpoint1 32 1 Start feeding 36 0 37 0 Abort feeding 38 0 Acquire error 67 0 Brief parameterization of fill feed 140 3 Pre-act contact in kg (difference to MC) Main contact in kg (difference to setpoint) Tolerance in kg Brief parameterization of discharge 141 3 Pre-act contact in kg (difference to MC) Main contact in kg (difference to setpoint) Tolerance in kg Complete parametrization of fill feed 142 9 PreCon MainCon Toler. Max.FW Discharge Optim No-MotTime DelayTime DischTime Taring Complete parametrization of discharge feed 143 7 PreCon MainCon Toler. Max.FW Discharge Optim No-MotTime DelayTime Parametrize comparator1 144 4 Comparator number Comparator type Threshold On (value in %) Threshold Off (value in %) Change over to fill feed: Effective with next start until 145 0 Must not be transmitted while feeding is in progress Clear tare Enter tare 1 Stop feeding1 1 feed Tare value in kg Setpoint in kg aborted1 Errors in execution of this command render all subsequent commands of the same FL message ineffective. Data Communication, DKI 116 e, 23.7.97 95 8 Special Features of DISONET Master 8.3 Flexible Command Message Command Code Number of Parameter s Parameter Description Change over to discharge feed: Effective with next start until aborted 146 0 Must not be transmitted while feeding is in progress 1 96 Data Communication, DKI 116 e, 23.7.97 9 Limitations 9 Limitations In spite of the enormous capability of the remote control EDP interfaces, some settings of DISOMAT® B or DISOMAT® C can be parametrized only in the dialog mode. This applies to the following DISOMAT interface settings: Parameter definitions for the serial interfaces SS1 and SS2 DISONET network settings EDP configuration Printer configuration Analog output setting BCD output parametrization Secondary display parametrization As a rule, the DISOMAT interfaces cannot be set via EDP. This might lead to parametrization errors which the user EDP itself cannot detect nor reset. Furthermore: Display test Display contrast setting Print repeat Start of parameter printing Selection of a fixed tare value These functions are useful only in combination with the device itself. Therefore, they are not implemented as EDP commands. Data Communication, DKI 116 e, 23.7.97 97 9 Limitations 98 Data Communication, DKI 116 e, 23.7.97 List of Keywords List of Keywords <DLE> . . . . . . . . . . . . . . . . . . . . . . . <DLE> Doubling . . . . . . . . . . . . . . . . 3964R . . . . . . . . . . . . . . . . . . . . . . . Acknowledgement . . . . . . . . . . . . . . AD Message . . . . . . . . . . . . . . . . . . BCC . . . . . . . . . . . . . . . . . . . . . . . . Block Check Character . . . . . . . . . . . Code number . . . . . . . . . . . . . . . . . . Commands Calibration Group . . . . . . . . . . . . . Control Group, General . . . . . . . . . Data Concentrator Function Group . Data Concentrator Functions Group DISOMAT Message Group . . . . . . Explanations . . . . . . . . . . . . . . . . Feed Group . . . . . . . . . . . . . . . . . Parameterization Group . . . . . . . . . Printing Group . . . . . . . . . . . . . . . Scale Command Group . . . . . . . . . Table of Command Formats . . . . . Table of EDP Commands . . . . . . . Control Character . . . . . . . . . . . . . . . Data Message . . . . . . . . . . . . . . . . . Data protection . . . . . . . . . . . . . . . . . DISONET Master Additional Commands . . . . . . . . . . DISONET-Master . . . . . . . . . . . . . . . Special EDP Command Formats . . Special EDP Commands . . . . . . . . ED Message . . . . . . . . . . . . . . . . . . EDP Commands . . . . . . . . . . . . . . . . EDP Error . . . . . . . . . . . . . . . . . . . . Enquiry . . . . . . . . . . . . . . . . . . . . . . Error Messages . . . . . . . . . . . . . . . . FL Command Codes Table . . . . . . . . . . . . . . . . . . . . . . Flexible Command Message . . . . . . . Function Blocks . . . . . . . . . . . . . . . . Immediate Response . . . . . . . . . . . . Interface . . . . . . . . . . . . . . . . . . . . . Interface Parameters . . . . . . . . . . . . J-Bus . . . . . . . . . . . . . . . . . . . . . . . . J-Bus Protocol . . . . . . . . . . . . . . . . . Messages . . . . . . . . . . . . . . . . . . . . Modbus . . . . . . . . . . . . . . . . . . . . . . Modbus Protocol . . . . . . . . . . . . . . . Parity Bit . . . . . . . . . . . . . . . . . . . . . Poll Protocol . . . . . . . . . . . . . . . . . . . Profibus . . . . . . . . . . . . . . . . . . . . . . Protocol Overview . . . . . . . . . . . . . . Protocols . . . . . . . . . . . . . . . . . . . . . Safety Hints For The User . . . . . . . . . . . . . . . . General Risks . . . . . . . . . . . . . . . . Data Communication, DKI 116 e, 23.7.97 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19, 24 . . . . 19, 24 . . . . . 6, 83 ........ 5 . . . . . . . 24 . . . . . . . 10 5, 10, 16, 19 . . . . . . . 61 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40, 54 . . . 38 . . . 84 84, 85 . . . 59 . . . 61 . . . 37 . . . 39 . . . 40 . . . 37 . . . 42 . . . 37 .... 5 .... 5 .... 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 85, 86, 93, 94 . . . . . . . . 66 ......... 5 ......... 7 ......... 7 . . . 6, 33, 78 . . . . . . . . 78 ......... 5 . . . . . . 6, 78 . . . . . . . . 78 . . . . . . . . 10 ......... 6 ......... 6 ......... 6 . . . . . . . 5, 9 . . . . . . . . . . . . . . . . . . 84 83 85 84 24 37 65 . 5 65 Residual Risks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Safety-Minded Operation . . . . . . . . . . . . . . . . . . . . . . 3 Use As Originally Intended . . . . . . . . . . . . . . . . . . . . 3 Scale number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 Scale Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 SCHENCK Poll Protocol . . . . . . . . . . . . . . . . . . . . . . . 15 Protocol Declaratives . . . . . . . . . . . . . . . . . . . . . . . . 15 Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 SCHENCK Standard Protocol . . . . . . . . . . . . . . . . . . 6, 9 Protocol Declaratives . . . . . . . . . . . . . . . . . . . . . . . . . 9 Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Siemens Protocol 3964R . . . . . . . . . . . . . . . . . . . . . . 18 Data Request Sequence . . . . . . . . . . . . . . . . . . . . . 20 Protocol Declaratives . . . . . . . . . . . . . . . . . . . . . . . . 18 SIMATIC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 SIMATIC S5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6, 83 Message Samples . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Protocol Declaratives . . . . . . . . . . . . . . . . . . . . . . . . 22 Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 SIMATIC S5 Control . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Standard Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 fo EDP command . . . . . . . . . . . . . . . . . . . . . . . . . . 61 Synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . 5, 16 Table Interface Protocols . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Teleperm M . . . . . . . . . . . . . . . . 6, 32, 71, 76, 83, 86, 87 DISOMAT T Command Formats . . . . . . . . . . . . . . . 76 DISOMAT T EDP Commands . . . . . . . . . . . . . . . . . 76 EDP Command Formats DISOMAT C . . . . . . . . . . . 75 EDP Commands DISOMAT C . . . . . . . . . . . . . . . . . 75 Instructions for Successful Interfacing . . . . . . . . . . . . 77 With DISONET Master . . . . . . . . . . . . . . . . . . . . . . 87 With One DISOMAT C . . . . . . . . . . . . . . . . . . . . . . 71 With One DISOMAT T . . . . . . . . . . . . . . . . . . . . . . . 76 User Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 User Data Construction Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Message Header . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Scale Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 .............. 4 .............. 3 99 List of Keywords 100 Data Communication, DKI 116 e, 23.7.97