Home
AS-i Master with RS232C, RS485 or RS422
Contents
1. c 23 4 4 Protected Operating Mode ae ke 23 4 4 1 Switching to Protected Operating Mode nennen mnn 23 4 4 2 Configuration Errors in Protected Operating Mode sssss nemen 24 4 5 Assigning an AS i Address in Configuration Mode sse 24 4 5 1 Assigning a Slave Address ui ardet bna er emt toe b d ded bed cb eic 24 4 5 2 Erasing te Slave Address coo e e EI BE EHE 24 4 6 Programming the Address in Case of Configuration Errors sseeeeeeeusssesss 25 4 6 1 Automatic Address Programimifigrssaissoa ae 25 4 6 2 Manual Address Programming sea pina Cr ovra don Gk rt dete NOE edat n Rei 25 4 7 Changing the Address of Bus Capable Masters ssene 25 4 S EOIR VEIT LO e tos ees bo ee ee de neuve om aaa ae 26 5 Operation via the Serial Interface esee nnne 27 5 1Config ring the Interface nass etae etg ct Iq cd ul en tiber divite RE edat 27 5 2 Message SIIUCIUFe uee ie ee eek 27 6 Advanced Diagnostics for AS i Masters eese 29 6 1 List of Corrupted AS i Slaves LCS ssesssssseeeeeneeeeeeeneennee nennen 29 6 2 Error Counter Counter of corrupted data telegrams sssseeeeees 29 Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 www bihl wiedemann de eMail mail bihl wiedemann de Mannheim 10 02 99
2. total failure of the equipment or any other connected equipment Attention 0 This symbol gives the user important hints Note Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 6 Mannheim 10 02 99 www bihl wiedemann de eMail mail bihl wiedemann de Bihl AS i Master Safety Wiedemann Automatisierungstechnik 2 Safety 2 1 Intended Use The protection of operating personnel and the system against possible danger is not guaranteed if the control interface unit is not operated in accordance with its intended use Wenns The device may only be operated by appropriately qualified personnel in accordance with this operating manual 2 2 General Safety Information Safety and correct functioning of the device cannot be guaranteed if any operation other than that described in this operation manual is performed Wenns The connecting of the equipment and any maintenance work to be carried out with voltage applied to the equipment must only be performed by appropriately qualified electrotechnical personnel In the case that a failure cannot be repaired the device must be taken out of operation and kept from inadvertently put back into operation Repair work is to be carried out by the manufacturer only Additions or modifications to the equipment are not allowed and void the warranty 0 The operator is responsible for the observance of local safety standards Not
3. After powering on all segments of the number displays and all LEDs light up for approx one second self test Afterwards the LEDs display the condition of their respective flags The LCD displays the condition of the master according to the AS i Master Specification 40 Offline Phase N The AS i Master initializes there is no data communication on the AS I If the Attention AS I circuit is insufficiently powered U ASI does not light up the master stays in the offline phase 41 Detection Phase Start of the start up phase where the system looks for slaves located on the AS I The master stays in the recognition phase until it finds at least one slave 42 Activation Phase Condition at the end of the start up operation where the parameters are transmitted to all connected and recognized slaves This enables access to the AS I slaves data connections 43 Start of Normal Operation In normal operation the AS I master can exchange data with all active slaves It transmits management messages and looks for and activates newly connected slaves During normal operation the system maintains the maximum cycle time of 5 milliseconds Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 22 Mannheim 10 02 99 www bihl wiedemann de eMail mail bihl wiedemann de Bihl AS i Master Operating the Master Wiedemann Automatisierungstechnik 4 3 Configuration Mode In the con
4. F10 Exit AS i Monitor Home End PgUp PgDn Change the screen page the error display screen is the last page Editor Mode In the editor mode you cannot only display all process data and conditions but also change them Just move the cursor to the information you want to change and overwrite it You can move the cursor only to the fields that can actually be changed Any valid entries are executed immediately Except for the two functions Store Actual Parameters and Store Actual Configuration that are executed with function keys all control level functions of the current AS i Master Specification can be modified Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 www bihl wiedemann de eMail mail bihl wiedemann de Mannheim 10 02 99 35 f Bi hl AS i Master Accessories for Putting AS i into Operation and Test Tools Wiedemann Automatisierungstechnik Changing Hexadecimal Information Since they have a value range between zero and 15 input and output data slave parameters and configuration data are displayed in hexadecimal notation In order to change these values move the cursor on editor mode to the respective position and enter the new value as a single digit hexadecimal value Any entries that cannot be interpreted as hexadecimal values are ignored Changing Binary Information The three slave lists LDS LAS and LPS and the execution level flags in
5. 92 i i 93 Error while changing slave address New address could only be stored volatile in the slave 4 94 Error while changing slave address in protected operating mode Slave has wrong configuration information see chapter 4 6 Error while changing slave address in protected operating mode The configuration error is caused by one slave too many instead of by a missing slave Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 www bihl wiedemann de eMail mail bihl wiedemann de Mannheim 10 02 99 53 Bihl AS i Master Appendix B First Commissioning of AS i d Wiedemann Automatisierungstechnik 10 Appendix B First Commissioning of AS i easily and without the need for external devices The addressing of the components connected to the AS i network can be performed directly on the AS i Master It is of course more comfortable to do the addressing with a hand held programming device or a PC In this chapter an example is given of how to put an AS i network into operation quickly and Note However it is possible to configure even complex networks using only the AS i Master What to do How to go about it See to it that the AS i Master is properly Using AS i Master with power supply A supplied with power connect the AS i power supply unit to the terminals AS i and AS i of the master connect the ground terminal Using AS i Master with power sup
6. These terminals are connected internally with point b2 of jumper J 24V Master power supply positive terminal 18 31 6 V DC OV Master power supply negative terminal GND Ground terminal J J Jumpers for selecting the power supply of AS i jumpers closed The AS i Master is powered out of AS i circuit 1 Master power supply and AS i network are then decoupled with coils jumpers open With the jumpers open or missing the AS i Master must be powered by a separate 24 V DC power supply Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 www bihl wiedemann de eMail mail bihl wiedemann de Mannheim 10 02 99 13 Bihl AS i Master Connectors and Displays Wiedemann Automatisierungstechnik Power supply out of AS i circuit 1 AS i Master AS i 1 AS i 2 100m AS i cable 31 AS i Slaves max 10 A PELV according to EN 60950 Protective extra low voltage 100m AS i cable 31 AS i Slaves max 10 A PELV according to EN 60950 Protective extra low voltage Operation with separate 24 V DC power supply AS i Master AS i 1 AS i 2 18 31 6 V DC power 150 mA supply PELV according to EN 60950 Protective extra low voltage 100m AS i cable 31 AS i Slaves max 10A PELV according to EN 60950 Protective extra low voltage 100m AS i cable 31 AS i Slaves max 10A PELV according to EN 60950 Protective extra
7. Windows Software AS i Control Tools The Windows software AS i Control Tools enables you to configure the AS i circuit in a very comfortable manner 1 For that purpose plug in the device to the D SUB connector and connect the device with a fully covered cable to the serial interface of your PC RS232C RS485 RS422 2 Start the AS i Control Tools 3 Call the command Master New E s i Control Tools File Program Control SERGE View Window Help Cee E Eommancatan Identity AS i Configuration AS Dreqnasis ASa Address Assistant Tecra SGT EGIT GT Gavesanfiguraugne v D Offline Recent taster 4 Choose the appropriate protocol RS232C RS485 RS422 Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 www bihl wiedemann de eMail mail bihl wiedemann de Mannheim 10 02 99 31 Bi hl AS i Master Accessories for Putting AS i into Operation and Test Tools Wiedemann Automatisierungstechnik 5 Do the appropriate settings e g serial interface COM 2 station address auto AS i circuit 1 Protocol Settings x Protocol Standard x Serial port COH 2 M Cancel Bus address 6 Call the command Master AS i configuration The AS i configuration editor will be started All detected and projected AS i slaves are displayed in this window Bil s i Configuration COM 2 Addr 3 Sl
8. 3392723 Fax 49 621 3392239 34 Mannheim 10 02 99 www bihl wiedemann de eMail mail bihl wiedemann de f Bi hl AS i Master Accessories for Putting AS i into Operation and Test Tools Wiedemann Automatisierungstechnik Status Messages If necessary status messages with the following meanings are displayed in the bottom left corner of the screen Communication with the master is active Same as the ser active LED on the master The master re reads all AS i data Normally only the data that can be modified by changes in the AS i circuit are updated The master internal data such as the configuration are read automatically only at the start and in longer intervals p One of the two AS i functions Store Actual Parameters or Store Actual Configuration is currently active This display was added since these functions can be carried also in the monitor mode with the function keys r5 and r6 err An error occurred during the last communication You can display a detailed error description on the error screen Function Keys The AS i Monitor is controlled via function keys in both the monitor and the editor modes F1 Help F3 Toggles between monitor and editor modes F5 Executes AS i function Store Actual Parameters F6 Executes AS i function Store Actual Configuration F9 Updates all AS i data including the master internal data from the master This is necessary when you change the master for example
9. 99 www bihl wiedemann de eMail mail bihl wiedemann de Bihl AS i Master Declaration of Conformity df Wiedemann Automatisierungstechnik Declaration of Conformity according to EN 45014 1989 Bihl Wiedemann GmbH Mannheim hereby declares under its sole responsibility that the products mentioned below are according to the listed harmonized standards or normative documents and where necessary a competent body has been released Specification AS i Master AS i Control with RS232C RS485 oder RS422 Artikel Nr 1030 1031 1032 1033 1034 1035 1042 1043 1044 1045 1046 1047 1105 1135 1136 1137 1138 1139 1140 1147 1148 1149 1150 1151 1152 1105 Applied harmonized Standards EN 50081 2 EN 50082 2 Applied national standards or normative documents AS i Complete Specification Pr fungsordnung f r AS i Master Manufacturer Bihl Wiedemann GmbH Date 29 01 99 Bernhard Wiedemann Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 www bihl wiedemann de eMail mail bihl wiedemann de Mannheim 10 02 99 5 Bihl AS i Master The Used Symbols Wiedemann Automatisierungstechnik 1 The Used Symbols This symbol warns the user of possible danger Failure to heed this warning can lead to personal injury or death and or damage to equipment Warning N This symbol warns the user of a possible failure Failure to heed this warning can lead to
10. The responding AS i Master is featured with an emc test mode Byte 4 D d The responding AS i Master is featured with advanced diagnostics Byte 5 c c The responding AS i Master is featured the function off line by configuratiion error Byte 6 2 The responding AS i Master manages one or two 2 AS i circuits Byte 7 not used Byte 8 D d The data_exchange_active host interface flag is set erased Byte 9 O o The off line host interface flag is set erased Byte 10 A a The auto_address_enable host interface flag is set erased Byte 11 13 not used Byte 14 w w The serial watchdog was activated deactivated Byte 15 T t The operation of the AS i Master via the front panel buttons is enabled disabled Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 www bihl wiedemann de eMail mail bihl wiedemann de Mannheim 10 02 99 47 AS i Master AS i Control Flags Start Stop Code Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Status Byte Bihl Including the AS i Masters in Own Programs Wiedemann start_flag reset bit ignore config errors auto start counter map Automatisierungstechnik if bit O is set the controller program is executed as soon as the AS i Master s status permits This flag is stored non volatile the controller program is read from the EEPROM prior to the start In addition the user
11. Wiedemann Automatisierungstechnik Connect another slave with address 0 to the Connect the slave to the AS i line The AS i line and allocate the address 2 to it addressing is the same as for the previous slave The addresses of all slaves detected are now displayed sequentially Change to the protected operating mode and Leave the configuration mode by pressing store the AS i configuration the mode button for at least five seconds until the prj mode LED goes out The configuration of the master is now finished If the AS i Master is a gateway the hierarchically higher fieldbus system can be put into operation now Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 www bihl wiedemann de eMail mail bihl wiedemann de Mannheim 10 02 99 55 Bihl AS i Master Notes Wiedemann Automatisierungstechnik Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 56 Mannheim 10 02 99 www bihl wiedemann de eMail mail bihl wiedemann de Bihl AS i Master Notes Wiedemann Automatisierungstechnik Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 www bihl wiedemann de eMail mail bihl wiedemann de Mannheim 10 02 99 57 Bihl AS i Master Notes Wiedemann Automatisierungstechnik Bihl Wiedemann GmbH K fertaler Stra e 1
12. low voltage Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 14 Mannheim 10 02 99 www bihl wiedemann de eMail mail bihl wiedemann de Bihl AS i Master Connectors and Displays f Wiedemann Automatisierungstechnik Connection variations for the AS i circuits here only displayed for one AS i circuit AS i Master AS i Master Warning PELV according to EN 60950 Protective extra low voltage AS i i Slave 7 AS i i Slave AS i i Slave AS i max 10 A power PELV according to EN 60950 3 5 4 supply Protective extra low voltage _ Ee In the wiring schemes above the current through the AS i Master must not exceed 5 A 3 1 5 Double Master in IP20 with Power Supply N AS i Master AS 1 M s jinem Tan Nu a1 a224V0V b2b1 GND J J The terminals have the following functions AS i Actuator Sensor Interface 1 or 2 positive terminal These terminals are connected internally with point a2 of jumper J AS i Actuator Sensor Interface 1 or 2 negative terminal These terminals are connected internally with point b2 of jumper J 24V Master power supply positive terminal 18 31 6 V DC OV Master power supply negative terminal GND Ground terminal J J Jumpers for selecting the power supply of AS i jumpers closed The AS i circuits are powered by the master power
13. supply Master power supply and AS i network are then decoupled with coils jumpers open With the jumpers open or missing the AS i Master must be powered by a separate AS i power supply The AS i power supply can be either connected to the jumper terminals or to the AS i line in the field Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 www bihl wiedemann de eMail mail bihl wiedemann de Mannheim 10 02 99 15 Bihl AS i Master Connectors and Displays df Wiedemann Automatisierungstechnik Operation without AS i power supply When the jumpers are closed the AS i networks are powered by the master s power supply For test purposes it is possible to use a conventional 24 V DC power supply to supply the AS i network You get optimum results with a 30 V DC voltage source This variant requires only one power supply for 2 AS i circuits Note AS i Master AS u 1 u power Be E lim AE O IA Em ala224V0V id GND U Masten max 5 6 A power 29 5 31 6 V DC supply PELV according to EN 60950 Protective extra low voltage J 100m AS i cable 31 AS i Slaves x AS i Slave gt AS i Slave In the wiring schemes above the current through the AS i Master must not exceed 2 8 A each AS i circuit 100m AS i cable 31 AS i Slaves Attention Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim P
14. the AS i Master are displayed in binary notation A set bit is represented by an x and the erased bits are represented as a period After you move the cursor to the proper position press the spacebar to toggle the values Changing the Slave Addresses A slave address can be overwritten by entering a two digit decimal number Invalid keystrokes are ignored but both digits must be entered one after the other 7 2 3 Tokenizer Loader ASI_CTRL The ASI_CTRL program serves to read the controller program from a source text file and convert it to a code that can be read by AS i Control This process is called tokenizing The generated code is not written to a new file but can if desired be stored directly in the AS i Control s EEPROM Simultaneously the AS i configuration contained in the Setup section of the source text file is entered into the AS i Control configuration data downloading The loaded controller program can optionally be activated in the AS i Control During the downloading the following AS i host functions are executed e Slaves listed in the Setup sections are entered into the list of projected slaves LPS e The parameters in the Setup sections default Frex are sent to all slaves in the LPS e These parameters are entered into the AS i Control permanent parameters list e O codes and configuration IDs for these slaves are entered into the AS i Control permanent configuration list The contr
15. the higher value byte of the return value If more than one error occurred the sum of the individual error codes is returned O 1nex time out 02nex Overrun error 0 4ne parity error 08ne framing error 10pe error occurred during the response s first character FFhex internal buffer overrun int ASI is command char command This function is used to check for a valid message type Return value lnx command is a valid message type One command is an invalid message type int ASI get message len char command ASI DATA message int ASI get answer len char command ASI DATA message With these functions you can determine the number of user data bytes in a send or response message Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 www bihl wiedemann de eMail mail bihl wiedemann de Mannheim 10 02 99 51 Bihl AS i Master Including the AS i Masters in Own Programs d Wiedemann Automatisierungstechnik For message types that permit a variable message length the actual length is determined by the data actually transmitted in message Or answer If message Or answer are unknown NULL can be transmitted Both functions then return the maximum number of data bytes Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 52 Mannheim 10 02 99 www bihl wiedemann de eMail mail bihl wiedemann de Bihl AS
16. versions number 8 bi version information Bytes 8 oder 17 bytes b 1 master name part 1 17 Bytes b 2 master name part 2 17 Bytes b 3 master version 17 Bytes b 4 installied software and host interface flags 17 Bytes activate deactivate b 0 deaktiviert watchdog 1 status watchdog for serial b z 0 watchdog timeout communication 10ms read watchdog status for b 2 0 watchdog not aktive serial communication b4z 0 max watchdogtime 10ms If the Watchdog has been activated AS i will go in Offline Phase By sending this message again AS i leaves the Offline Phase Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 42 Mannheim 10 02 99 www bihl wiedemann de eMail mail bihl wiedemann de Bihl AS i Master Including the AS i Masters in Own Programs df Wiedemann Automatisierungstechnik lock unlock front panel b 2 0 front panel operation b status 10ms operation enabled b 1 front panel operation disabled error message 75g _only sent by the master b erorcode Additional Commands for RS232C Masters bi host message data b master message data activate master TEnex bi bz address of the bi status 20ms master to be activated Additional Commands for RS485 und RS422 Masters activate master TEnex bi bz address of the bi status 20ms change master address 82hex bi old master address bi statu
17. 3 Bihl AS i Master Table of contents Wiedemann Automatisierungstechnik 6 3 Off line Phase on Configuration Errors arena 29 7 Accessories for Putting AS i into Operation and Test Tools 31 7 1 Windows Software AS i Control Tools eesssssseeeneneemnneennennnnnne 31 7 2 DOS Sollware Me Pm 34 7 2 1 Frame Programm AS SHELL ana ccc Meneame tit Pol bl addi 34 7 2 2 AS i Monitor Program ASI MON sie een 34 7 2 3 Tokenizer Loader ASIE GIRL viesi enoii et isn shi 36 7 24 Visualizer ASI VIS zz e mte oes een 38 8 Including the AS i Masters in Own Programs eene 39 8 1 Telegrams of the Serial Communication eeeeeseseeeeeeeeeeeeeneennn 39 8 1 1 Message Str ctufe um ses Ede 39 8 1 2 Message Descn poris couette cuc attestato yet Seid 41 8 1 3 Representation of Information in the User Data Bytes enerne 45 82 PO IDI IMG S ge 49 8 21 NEW Data Types che sur aus mone cae Ba Be ale He ne a re a ee ea an 49 8 2 2 Gl bal Stalie Varlables un nn Erik 50 8 2 3 FUNCIONS aaa ke 50 9 Appendix A Seven Segment Display uuuesssnnnnnnnnnnnnannnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn nn 53 10 Appendix B First Commissioning of AS i eee 54 Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 4 Mannheim 10 02
18. 3 Fax 49 621 3392239 www bihl wiedemann de eMail mail bihl wiedemann de Mannheim 10 02 99 25 Bihl AS i Master Operating the Master Wiedemann Automatisierungstechnik The address of the capable AS i Master with RS485 and AS i Master with RS422 may be changed via the serial interface also 4 8 Error Messages The system displays error codes for error messages that do not point to faulty assignments on the AS i circuit The code numbers are larger than 50 and are therefore outside the slave Attention address range These codes are described in the chapter 9 Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 26 Mannheim 10 02 99 www bihl wiedemann de eMail mail bihl wiedemann de 5 1 5 2 Bihl AS i Master Operation via the Serial Interface Wiedemann Automatisierungstechnik Operation via the Serial Interface Configuring the Interface When transferring data via the AS i Master s serial interface the parameters must be set as follows Start bits 1 Data bits 8 Stop bits 1 Parity none The pin assignment for the sub D connector is described in chapter 3 2 For the transmission speed you can select 1200 2400 4800 9600 19200 28800 38400 or 57600 baud If it has not received a valid host message since the last startup the master automatically adapts to the host When selecting the baud rate the master starts with the transmission
19. 64 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 58 Mannheim 10 02 99 www bihl wiedemann de eMail mail bihl wiedemann de
20. Bihl Wiedemann Automatisierungstechnik AS i Master with RS232C RS485 or RS422 User Manual Bihl AS i Master Table of Contents Wiedemann Automatisierungstechnik Table of Contents 1 TheUsedSsymbolst a a ee ken ee 6 PBS 0 ee ee ee ee el et ee Eee ae ee ee edel 7 MEO eek 7 22 General Safety Information einen 7 3 Connectors and Displays see ee a eee 8 3 1 Power Supply Concepts and AS i Connection Techniques ccceseeeeeeeessteetteeeeeeeees 9 3 1 1 single Masters in P5 icit b nte abe 9 3 1 2 Single Masters in IP20 with power supply A een ent 9 3 1 3 Single Masters in IP20 with power supply N nennen 10 3 1 4 Double Master in IP20 with Power Supply A nennen nenn 13 3 1 5 Double Master in IP20 with Power Supply N 15 3 2 Ihe Sstial InIgITacBS corio Pte ana ea 19 3 2 1 AS i Master with RP GC Eb RH pod velie d Eb Up od MT cert D Ro p Hte 19 222 AS Master WIth RS4B S ine erst Waid pes teeta teal al clase apie anette cti n anni en eeepc et 19 3 2 3 AS i Master with RSA22 i une een 20 3 3 Display and Operating Elements un ee 20 3 3 1 LEDSofthe Single Maste nen ae 20 3 3 2 LEDs of the Double Masters cn le 21 4 Operating the Masler ee nnmnnn nnmnnn ee 22 4 1 Peculiarities with Double Masters eeneeeeennnnnen nennen 22 4 2 Master Start Up eie eS ss eet tn Sl de lec cea dean etras a td had eig E RENE 22 43 Config ration Mode ciare eae aan
21. E Hr Fun OV b2b1 GND Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 18 Mannheim 10 02 99 www bihl wiedemann de eMail mail bihl wiedemann de Bihl AS i Master Connectors and Displays df Wiedemann Automatisierungstechnik 3 2 The Serial Interfaces The serial interface has been designed as a 9 pin sub D type socket that is located on the right side of the front plate 3 2 1 AS i Master with RS232C GND TxD RxD RS232C The AS i Master with RS232C sends on pin 2 of the sub D connector RxD signal and receives on pin 3 TxD signal Pin 5 of the sub D connector carries the signal ground The collar of the connector and therefore the shield of the connector cable are connected galvanic with the ground terminal of the master During the data transmission the AS i Master with RS232C acts as a DCE Data Carrier Equipment When connected to a DTE Data Terminal Equipment device such as a PC the connecting cable should be wired straight through without any crossed wires 3 2 2 AS i Master with RS485 gt UU lt N AS i Master with RS485 sends and receives on pins 3 and 8 of the sub D socket The RS485 signal A is assigned to pin 3 and signal B to pin 8 To prevent compensation currents the shield of the connecting cable is connected with the ground terminal of the master over a condensator The shield should be grounded galva
22. a hand held addressing device address assigning of the AS i slaves is also possible using the push buttons How it works is described as follows Assigning a Slave Address assigning an available address to a slave with address zero In configuration mode the addresses of all detected slaves are displayed one after the other To display the next higher available operating address press the set button shortly Each time you press the set button the next available address is displayed Chose the displayed address as your target address by pressing the button for more than five seconds The address display blinks The master is ready for programming pressing the set button again addresses the connected slave with address zero to the target blinking address Any errors will be displayed by their error codes according to chapter 4 3 Otherwise the detected slaves are displayed again as described in chapter 4 3 4 5 2 Erasing the Slave Address assigning address zero to a detected slave In configuration mode the addresses of all recognized slaves are displayed one after the other By pressing and releasing the set button the master displays the next available address If you press the button for more than five seconds while the address of a detected slave is displayed this slave is will get the address zero and the display shows 00 When you release the button the display continues to display the detected slaves Bihl W
23. and slaves is disabled the flag is transmitted inverted Off line if bit 1 is set the master is put in offline mode Bit2 Auto Address Enable if bit 2 is set automatic programming is disabled the flag is transmitted inverted Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 46 Mannheim 10 02 99 www bihl wiedemann de eMail mail bihl wiedemann de Bihl AS i Master Including the AS i Masters in Own Programs d Wiedemann Automatisierungstechnik Installed Software Host Interface Flags message 7D x If message 7D hex read master version is sent with a 4 in the host message s data byte the AS i Master responds with a 17 bytes long character string 16 letters null terminated The letters have the following explanations Byte 0 C c D d The responding AS i Master is an AS i Control The capital c means that a controller program is currently being executed A lower case c means that either the start flag has not been set or that the AS i Master s status does not permit the execution If D d instead of c c is displayed it is the newer software version of AS i Control Il Byte 1 B b The responding master has a bus capable RS485 or RS422 interface The 7Enex activate master and 82 change master address messages can be processed Byte 2 F The responding AS i Master is featured with an AS i error counter Byte 3 E e
24. ast one detected slave is not projected or for at least one projected and detected slave the actual configuration data does not match the nominal configuration data U AS i The AS i circuit is sufficiently powered AS i ACTIVE Normal operation active Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 20 Mannheim 10 02 99 www bihl wiedemann de eMail mail bihl wiedemann de AS i Master prg enable prj mode 7 Bihl Connectors and Displays Wiedemann Automatisierungstechnik PRG ENABLE Automatic address programming enabled Exactly one slave is missing in protected operating mode The slave can be replaced by another slave of the same type with address zero The master addresses the new slave to the faulty address and thus eliminates the configuration error PRJ MODE The AS i Master is in configuration mode 3 3 2 LEDs of the Double Masters AS i 1 AS i 2 ser active config err power U AS i prg enable prj mode Switching of the Displays and push buttons between the two AS i circuits If this LED lights up all displays and button operations are related to AS i circuit 2 otherwise AS i circuit 1 Serial interface communication is active via the serial interface By AS i Control this LED signs the process of a controlling program additionally Configuration error At least one configured slave is missing or at least one detect
25. atisierungstechnik Connection samples for the AS i power supply AS i Master AS i Master Warning z o power PELV according to AS i SI Supply EN 60950 Protective extra low voltage amp AS i Slave A AS i Slave ASi max 10A power PELV according to EN 60950 l EEE supply J Protective extra low voltage 6 AS Slave N In the wiring schemes above the current through the AS i Master must not exceed 5 A Attention 3 1 3 Single Masters in IP20 with power supply N At the bottom of the unit there are 10 terminals for the power supply and the AS i network The jumper settings J J decide whether AS i is powered by a separate AS i power supply or by the power supply that also provides the AS i Masters AS i Master AS i power The terminals have the following functions AS i Actuator Sensor Interface positive terminal This terminal is connected internally with the center contact of jumper J AS i Actuator Sensor Interface negative terminal This terminal is connected internally with the center contact of jumper J 24V Master power supply positive terminal 18 31 6 V DC OV Master power supply negative terminal GND Ground terminal J J Jumpers for selecting the power supply of AS i int pwr position closed AS i is powered by the master power supply Master power supply and AS i network are then decoupled with coils Bihl Wiedeman
26. aves Address Type Address Type Help 0 16 AS i slave 1 in 3 out 1 AS i slave 3 in 1 out 17 2 AS i slave 4 in 1 out 18 3 d Remote 1 0 4 in 4 out 13 4 AS i slave 4 in 2 out 20 5 d Remote I O 2 in 7 2 out 21 6 d User defined 4 in 7 4 out 22 7 23 8 p slave missing gt 24 9 25 26 r Master 27 Bus address 3 28 29 30 Configuration error 31 AS i slave 1 in 4 out Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 32 Mannheim 10 02 99 www bihl wiedemann de eMail mail bihl wiedemann de Bi hl AS i Master Accessories for Putting AS i into Operation and Test Tools Wiedemann Automatisierungstechnik 7 Click on a slave entry to open the dialogbox slave configuration Slave configuration x Selected Slave 2 Change address to Help Less Store n Inputs VO V1 M2 Outputs 3 Current parameters VO 1 M2 v3 Power up parameters VO V1 2 W3 Projected 2x2 input module M Device Type This dialog box is for changing a slave address setting AS i parameters or AS i configuration data Additionally you can test inputs and outputs A very easy approach to configure the AS i circuit is connecting each AS i slave to the line and setting the AS i slave address one after the other After that press the button Store configuration to adopt the detected AS i circuit to the AS i Master as projected da
27. ce you have to specify m d or d download This switch determines whether ASI CTRL should only check the source text file for correct syntax d or also store it in the AS i Controls EEPROM d u Or u upload This switch determines whether ASI CTRL should read the controller program in ASI CTRL and write it to the source text file u s s Or sO start control program Determines whether the controller program loaded with d should be activated s stopped s or whether the start flag condition should remain unchanged s0 When a controller program is deactivated with s AS i Control acts like a normal serial AS i Master from Bihl Wiedemann even during normal operation in the protected operating mode v or v produce verbose output v causes a very detailed screen output that displays the individual steps during the token generation and the download to AS i Control Independent of v and v the text file ASI_CTRL LOG is generated each time ASI CTRL is called This file contains these detailed messages ot or o overwrite source file makes sense only in combination with u When the name of an existing source text file is indicated during the upload it is normally overwritten after an additional confirmation by the user This process can be suppressed with o hor display help Displays help text with the various settings and the default settings stored with
28. e Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 www bihl wiedemann de eMail mail bihl wiedemann de Mannheim 10 02 99 7 Bihl AS i Master Connectors and Displays df Wiedemann Automatisierungstechnik 3 Connectors and Displays Device in IP20 On the front panel of the AS i Masters with RS232C RS485 und RS422 in IP20 are terminals to connect the power supply and the AS i circuit a 9 pin SUB D connector as interface connector RS323 RS485 RS422 7 LEDs a two digit seven segment display 2 push buttons to configure the gateway Device in IP65 gt di d gt Ae y eh 4 The devices in IP65 have the terminals for the serial interface cage clamp terminals and the push buttons under the top of the housing to prevent liquids from entering The AS interface is connected with the electromechanical interface with penetration technique developed for AS i at the bottom of the housing Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 8 Mannheim 10 02 99 www bihl wiedemann de eMail mail bihl wiedemann de Bihl AS i Master Connectors and Displays df Wiedemann Automatisierungstechnik 3 1 Power Supply Concepts and AS i Connection Techniques available with two different power supply concepts master power supply A and master The AS i Masters s as well as all the AS i
29. e type but normally of different length or it responds with an error message command byte 75nex 1 byte usable data Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 www bihl wiedemann de eMail mail bihl wiedemann de Mannheim 10 02 99 39 Bihl AS i Master Including the AS i Masters in Own Programs Wiedemann Automatisierungstechnik Example For a change of the operating address from 7 to 26 the messages would look like this Host message command byte k 6E hex user data length n 02 hex user data byte b old slave address 07 hex user data byte b new slave address 1A nex checksum s 6E 02 07 1A 91hex Master message master responds with O K command byte k GE hex user data length n O1 hex user data byte b Status O K 01 hex checksum s 6E 01 01 70hex maximum reaction time of the master 30 ms pees host master pepo Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 40 Mannheim 10 02 99 www bihl wiedemann de eMail mail bihl wiedemann de Bihl AS i Master Including the AS i Masters in Own Programs df Wiedemann Automatisierungstechnik 8 1 2 Message Descriptions In tables of the following pages are listed for each communication message the command byte k the content of the data byte b for host and master massage and the
30. ed slave is not projected or for at least one projected and detected slave the actual configuration data does not match the nominal configuration data The master s power supply is sufficient The AS i circuit is sufficiently powered Automatic address programming enabled Exactly one slave is missing in protected operating mode The slave can be replaced by another slave of the same type with address zero The master addresses the new slave to the faulty address and thus eliminates the configuration error The AS i Master is in configuration mode Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 www bihl wiedemann de eMail mail bihl wiedemann de Mannheim 10 02 99 21 Bihl AS i Master Operating the Master Wiedemann Automatisierungstechnik 4 Operating the Master 4 1 Peculiarities with Double Masters In protected mode the displays of the double masters are switched over from AS i circuit 1 to AS i circuit 2 in a measure of 2 seconds iis In configuration mode all detected AS i slaves are displayed at first before the display switches to the other AS i circuit The operation of the push buttons is always related to the currently displayed AS i circuit LED AS i 1 AS i 2 After a push button was pressed the display stays with the respective AS i circuit until the operation is finished or the operator has not interfered for 10 seconds 4 2 Master Start Up
31. eded by the main program is stored in ststic variables In most cases these are status informations for the most recent transmissions All of these variables execept AST RETRY are set by the driver and should only be read by the main program ASI error last error status the last teturn value different of zero of ASI com ASI error tel Content of the last error massage ASI message kind AS i function of the last sent message of the PC ASI message len itslength ASI message chk its checksum ASI answer kind of the last response of the master ASI Answer len its length ASI Answer chk its checksum 8 2 3 Functions int ASI init int port int baud This function must be called prior to the first communication since it initializes the driver and the serial interface For the port parameter the constants com1 through com4 are defined in the asi ser h header file The valid baud rates are 1200 2400 4800 9600 19200 28800 38400 and 57600 bits per second The master automatically recognizes the baud rate set on the PC The serial interface is set for 8 data bits no parity and one start and stop bit each After the first successful communication with the master the system tries to run the serial interface interrupt driven which increases the reliability with low computing requirements and high baud rates for example at 9600 baud in the Windows DOS emulator If this is not possible the interface modu
32. erface you Note can set them with the keys and the display In the protected operating mode wrong assignments are displayed as errors see chapter 4 4 By pressing the set button you can display all faulty assignments one after the other By pressing the button for more than five seconds you can select the currently displayed address as a potential target address and the display starts to blink If the faulty slave was previously replaced by a slave with address zero the new slave can now be programmed for the blinking address by pressing the set key again As a requirement the new slave s configuration data must match the configuration data for the blinking address After the address has been successfully set the next faulty assignment is displayed or the display erased Otherwise the system displays an error code see appendix 4 7 Changing the Address of Bus Capable Masters You change the Address of the bus capable AS i Master with RS485 and AS i Master with RS422 by pressing buttons set and mode for more than five seconds at the same time The actual bus address is shown then on the LCD display Each time You press the set key this address is incremented If the desired address is displayed pressing mode for more than five seconds makes the master to accept the new address and and store it non volatile in its EEPROM Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 339272
33. figuration mode all recognized slaves are activated even when the desired and actual configurations do not match Attention Dressing the mode button for at least five seconds switches the master to configuration mode While in configuration mode the yellow prj mode LED lights up The system then displays one after the other all detected slaves entered in the LDS List of Detected Slaves at a speed of two per second If the display is empty no slaves were detached on the AS i circuit In the configuration mode all recognized slaves are activated except of slave zero The AS i Master is in normal operation There is data exchange between the AS i Master and all AS i slaves detected by the master regardless of whether the detected AS i slaves were projected before When delivered the AS i PROFIBUS Gateway is in configuration mode Attention 4 4 Protected Operating Mode In contrast with the configuration mode in the protected mode there is only data exchange between the AS i Master and the projected AS i slaves Note 4 4 1 Switching to Protected Operating Mode You leave the configuration mode by pressing the mode button Pressing the button shortly Exits the configuration mode without projecting the current AS i configuration Pressing the button for more than five seconds Exits the configuration mode and projects the actual AS i configuration Simultaneously the actual AS i configuration is stored as nomi
34. gateways of the Bihl Wiedemann GmbH are power supply N Note 3 1 1 Single Masters in IP65 Every AS i Masters and all the AS i Gateways in IP65 come with power supply A An AS i power supply has to be used which also supplies the AS i Masters with power and can be connected to the AS i cable like all the other AS i components at any place The AS i Masters is connected to AS i using the penetration technique of the electromechanical interface which is common with AS i slaves as well AS i Master AS i power supply AS i power 3 1 2 Single Masters in IP20 with power supply A They can be powered completely out of the AS i line the power consumption is about 200 mA from AS i An additional 24 V voltage source is not necessary The AS i Master merely requires the connection to the AS i line When the AS i power supply is switched on the master starts to operate The AS i Masters with master power supply A do not need a voltage supply of their own Note AS i master AS i power be tae Se GND The terminals have the following functions AS i Actuator Sensor Interface positive terminal AS i Actuator Sensor Interface negative terminal GND Ground terminal Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 www bihl wiedemann de eMail mail bihl wiedemann de Mannheim 10 02 99 9 Bihl AS i Master Connectors and Displays df Wiedemann Autom
35. hone 49 621 3392723 Fax 49 621 3392239 16 Mannheim 10 02 99 www bihl wiedemann de eMail mail bihl wiedemann de Bihl AS i Master Connectors and Displays df Wiedemann Automatisierungstechnik Operation with AS i power supply If the jumpers are open both AS i circuits are power by one common AS i power supply while the AS i Master itself is powered by an additional 24 V DC power supply AS i Master AS a 1 ais bed power em limum OOO hath ae ae O ala224V0V b2b1 GND g power 29 5 31 6 V DC Supply PELV according to EN 60950 Protective extra low voltage Masten 18 31 6 V DC power 150 mA ar supply PELV according to EN 60950 Protective extra low voltage 100m AS i cabl 31_AS i Slaves 100m AS i cable 31 AS i Slaves In the wiring schemes above the current through the AS i Master must not exceed 2 8 A each AS i circuit Attention Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 www bihl wiedemann de eMail mail bihl wiedemann de Mannheim 10 02 99 17 Bihl AS i Master Connectors and Displays df Wiedemann Automatisierungstechnik each AS i circuit because the additional decoupling coils would burden the AS i line and Do not try to provide the AS i double master with power supply N with one AS i power supply cause erroneous AS i telegrams Warning AS i Master TE LUISE So nu NG
36. i Master Appendix A Seven Segment Display Wiedemann Automatisierungstechnik Appendix A Seven Segment Display In the basic configuration mode the display shown one after the other the addresses of all detected slaves at a rate of two per second A blank display means that the LDS is empty i e no slaves were recognized In the basic protected operating mode the display is either blank or displays the address of a faulty assignment see chapter 4 4 2 During manual address programming the slave address display has a different meaning of course see chapter 4 5 1 and 4 5 2 All displayed numbers that are larger than 31 and can therefore not be interpreted as slave addresses are status or error messages of the master They have the following meanings 16 panra Oo the interrupt bit of PIC processor remains set the PIC processor does not respond slave with address zero detected The system attempted to exit the configuration mode with a slave zero General error while changing a slave address 82 Front panel operation blocked Until the next power up the only way of accessing the master is via the serial interface Display test while starting up the AS i Master Error while changing a slave address in protected operating mode No slave with address 0 present 91 Error while changing slave address Target address is already occupied see chapter 4 6 Error while changing slave address New address could not be set
37. iedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 24 Mannheim 10 02 99 www bihl wiedemann de eMail mail bihl wiedemann de Bihl AS i Master Operating the Master Wiedemann Automatisierungstechnik 4 6 Programming the Address in Case of Configuration Errors 4 6 1 Automatic Address Programming One of the AS i s great advantages is the automatic address programming When a slave fails it can be replaced by one of the same type with address zero The master will detect Note the replacement and automatically program the new slave with the address of the faulty one For automatic programming to work some requirements must be fulfilled 1 The AS i Master must be in the protected operating mode 2 The auto_prog release flag must be set 3 Only one of the configured slaves may not be recognized When these requirements are fulfilled the AS i Master s prg enable LED lights up and a slave with address zero will be automatically assigned the operating address of the missing slave N If the two slaves have different configuration data i e are not of the same type as far as AS i is concerned the automatic address programming is not carried out Attention 4 6 2 Manual Address Programming If several slaves fail they cannot be replaced automatically by the AS i Master You must set their addresses manually If you don t want to set their addresses via the serial int
38. ith advanced diagnostics has an error counter for each AS i slave which is increased every time there is a corrupted AS i telegram This makes it possible to judge the quality of the AS i network even if only a few corrupted telegrams occurred and the AS i slave did not cause any configuration errors The counter values can be read via the host interface and will be deleted with every read access The counter value is limited to 254 255 means counter overflow The error counter is included in the command Master AS i Diagnostics of AS i Control Tools version 3 0 Off line Phase on Configuration Errors The AS i Masters with advanced diagnostics offer the possibility to put themselves into the Off line Phase when a configuration error on the AS Interface occurs In this way the security of the application can be ensured The reaction to a configuration error is very fast and the host can be relieved from this task If there are any problems on the AS i network the AS Interface can be switched to a secure state Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 www bihl wiedemann de eMail mail bihl wiedemann de Mannheim 10 02 99 29 Bihl AS i Master Advanced Diagnostics for AS i Masters df Wiedemann Automatisierungstechnik There are two different ways to parameterize the AS i Master for this feature e Every configuration error during normal operation in protected mode
39. le is accessed by the other driver routines via polling Return value O Onex Ok 03nex AS i Master does not respond 04nex Cannot understand the master s response possibly caused by differing baud rates 81hex COM port number invalid 82hex COM port not found 8 3hex Insufficient DOS memory Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 50 Mannheim 10 02 99 www bihl wiedemann de eMail mail bihl wiedemann de Bihl AS i Master Including the AS i Masters in Own Programs d Wiedemann Automatisierungstechnik 8 4hex Serial interface module cannot run at this baud rate int ASI com char command ASI DATA message ASI DATA answer This is the general function for the communication with the master A message of the command type is sent to the master The user data are transferred in message and the user data of the response are stored in answer The return value s low bytes hexadecimal have the following meanings 0 Onex error free communication Olne ASI init had not yet been called 02ne invalid AS i command in command 03ne Master responded with a wrong message 04nex Master s response message had invalid length 0 5hex the response message had a wrong checksum 0 6hex the low level communication function reports an error 10hex error message received In case of an interface error the error code of the low level communication function is returned in
40. maximum reaction time tma of the master The recommendable communication messages are printed bold Commands according to the AS i Master Specification message b host message data b master message data read input data 0 7 bibe input data write output data 70nex b b1 output data b status write configured parameters 61hex b slave address b status 30ms b parameters read configured parameters b slave address b parameters write actual parameters 63nex bi slave address bi counter read 20ms b parameters parameters inverted in case of error read actual parameters 64nex b slave address b parameters store actual parameters 65e b status write configuration data 66hex bi slave address bi status 30ms b2 configuration data read configuration data b4 configuration data store actual configuration 68 b status read actual configuration b4 configuration data write list of projected slaves b4 status read list of projected slaves 6B b ba LPS read list of activated slaves 6Chx b b4 LAS read list of detected slaves 6Dnx b b4 LDS ae on read execution control flags b execution control flags set operating mode Shex 6 0 protected operating b4 status 100ms mode b 1 configuration mode write host interface flags b host interface flag b status change slave s operating 6Enex b old slave address b statu
41. memory flag bytes is erased Necessary after each download not returned as AS i Control flag if bit 2 is erased the controller program is stopped as soon as an AS i configuration error occurs This flag is stored non volatile if bit 3 is set AS i Control waits for a push on the set button before it restarts the controller programm This flag is stored non volatile if bit 4 is set the counter registers of the 15 counters can be accessed by M 96 0 to M 125 3 This flag is stored non volatile The master returns the status byte if there would otherwise be no user data Normally it takes on only one of the two following values 00 error while executing a host request 01 noerror while executing a host request When changing a slave address detailed error messages are returned 02 03 04 05 06 07 slave whose address should be changed does not exist slave with operating address 0 present address for which the slave should be programmed is already occupied slave could not be programmed to address 0 slave could not be set for new operating address new operating address could not be stored in slave s EEPROM Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 48 Mannheim 10 02 99 www bihl wiedemann de eMail mail bihl wiedemann de Bihl AS i Master Including the AS i Masters in Own Programs d Wiedemann Automatisierung
42. n GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 10 Mannheim 10 02 99 www bihl wiedemann de eMail mail bihl wiedemann de Bihl AS i Master Connectors and Displays df Wiedemann Automatisierungstechnik ext pwr position open With the jumper open or missing the AS i network must be powered by a separate AS i power supply The AS i power supply can be connected to the jumper or to the AS i cable in the field Operation without AS i power supply When the jumpers are in position int pwr the AS i network is powered by the master s power supply For test purposes it is possible to use a conventional 24 V DC power supply to supply the AS i network You get optimum results with a 30 V DC voltage source For the following wiring scheme the current through the AS i Master must not exceed X 2 8 A Attention AS i Master Warning T max 2 8 A H ASi Slave J295 31 6 V DC PELV according to EN 60950 Protective extra low voltage This connection technique serves also for providing more than one AS i Masters out of one master power supply because each AS i circuit is decoupled with its own in the AS i Master integrated coils AS i Master 1 AS i Master 2 AS i Master N Warning max N x 2 8 A 29 5 31 6 V DC PELV according to EN 60950 Protective extra low voltage A AS i Slave x AS i Slave Bihl Wiedemann GmbH K fertale
43. nal configuration in the EEPROM If the system detects an AS i slave with address zero on the AS i it can not leave the 0 configuration mode In the protected operating mode only AS i slaves that are projected in the LPS List of Projected Slaves and whose actual configurations match the nominal configurations will be activated Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 www bihl wiedemann de eMail mail bihl wiedemann de Mannheim 10 02 99 23 Bihl AS i Master Operating the Master Wiedemann Automatisierungstechnik 4 4 2 Configuration Errors in Protected Operating Mode 4 5 4 5 1 As long as there is no configuration error the numeric display is turned off during the protected operating mode Otherwise the lowest address with a faulty assignment is displayed A faulty assignment occurs when a slave has been recognized or configured it has been entered on the LDS or on the LPS but cannot be activated Pressing the set button displays the next higher faulty address Assigning an AS i Address in Configuration Mode AS i can be put into operation in a very comfortable manner by using the Windows software AS i Control Tools see chapter 7 1 addressing directly or with the AS i address assistant For DOS users we have the DOS software AS i SHELL Furthermore you can use a hand held addressing device If you don t have neither a PC nor
44. nic at an other place Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 www bihl wiedemann de eMail mail bihl wiedemann de Mannheim 10 02 99 19 AS i Master 7 Bihl Connectors and Displays Wiedemann Automatisierungstechnik 3 2 3 AS i Master with RS422 gt WU lt N AS i Master with RS422 receives on pins 3 and 8 A and B and sends on pins 4 and 9 Y and Z on the sub D socket Also here the shield of the conntecting cable is grounded only capazitiv 3 3 Display and Operating Elements On the front panel of the serial AS i Master are seven light emitting diodes a two digit display atwo push buttons With the devices in IP65 the push buttons are situated inside of the housing to avoid liquids from entering The top of the housing has to be screwed off to operate these push buttons 3 3 1 LEDs of the Single Masters In brackets you see the terms for the devices in IP65 power ser active config err U ASI ASI active PWR The master s power supply is sufficient BUSAKTIV LED on Serial interface communication active via the serial interface LED off Serial interface communication not active via the serial interface LED flashing Serial interface communication active via the serial interface the control program is active CONF ERR Configuration error At least one configured slave is missing or at le
45. oller program is stored in the AS i Control s EEPROM Before such a program can be started it must be reset read from the EEPROM Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 36 Mannheim 10 02 99 www bihl wiedemann de eMail mail bihl wiedemann de i Bi hl AS i Master Accessories for Putting AS i into Operation and Test Tools Wiedemann Automatisierungstechnik In addition to the source text file name the following parameters can be added when calling the ASI CTRL program p number select serial port Selects the serial PC interface port that is to be used for the communication with AS i Control number can be 1 through 4 for coM1 through COM4 Example asi ctrl demo asi p1 converts the source text file demo asi and uses COM1 to communicate with AS i Control b number select baud rate Selects the serial transmission rate in bits per second The valid baud rates are 1200 2400 4800 9600 19200 38400 and 57600 bits per second Example asi ctrl demo asi b19200 converts the source text file demo asi and transmits to AS i Control at a speed of 19200 baud This setting can be stored as a default value with w m lt number gt select master bus address The AS i Masters with RS485 and RS422 interface are bus capable m selects the bus address of the master to work with If you use the non bus capable AS i Master with RS232C interfa
46. onds to a host message with a message of the same type but normally of different length or it responds with an error message Command byte 75nex 1 byte usable data There can be some delay between host and slave messages since the master only responds after it has carried out the request it received with the message The maximum processing times for the individual message types are shown in Appendix A After the last character of the response message the AS i Master is ready to receive again Example Addresses 1 through 6 and address 22 should be occupied in the list of projected slaves The master is not in configuration mode so it must not accept this request and answers with not 0 K host message k 6Anex n OAnex by 01111110bin 7Enex b 00000000 bin OOrex bs 01000000 pin 40hex b4 00000000 bin OOnex S 6A 04 7E 00 40 00 12Che gt S 2Chex master message k 6Ahex n O1hex b not o k OOhex S 6A 01 00 6Bhex brbareoopgobe host next telegram master See chapter 8 1 for values of command byte contents of data bytes for host and master message and maximum processing times Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 28 Mannheim 10 02 99 www bihl wiedemann de eMail mail bihl wiedemann de 6 6 1 Note Note 6 2 Note 6 3 Bihl AS i Master Advanced Diagnostics for AS i Masters Wiedemann A
47. p text with the various settings and the default settings stored with w Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 38 Mannheim 10 02 99 www bihl wiedemann de eMail mail bihl wiedemann de 8 1 Bihl AS i Master Including the AS i Masters in Own Programs Wiedemann Automatisierungstechnik Including the AS i Masters in Own Programs The AS i Master can be directly responded by own programs with the help of the serial telegrams There are three methods to do this 1 Direct responding to the AS i Master from own programs with the help of the serial telegrams described in the following chapter 8 2 2 Using of the delivered PC drivers under MS DOS see chapter 8 2 3 If the environment is Windows Using DLLs or the Windows NT driver of Bihl Wiedemann However we recommend to use the first method Telegrams of the Serial Communication Message Structure The messages have the following structure IRIS IRTT LIST Command byte k Message ID character User data length n Number of user data bytes zero to 17 User data bytes b If user data length n OOhex this field is not used Checksum s The lowest eight bits of the sum of all previously sent bytes are transmitted as the checksum The checksum can also be calculated with the formula s x n b mos2s6 i l The AS i Master responds to a host message with a message of the sam
48. ply N connect the 24 V DC standard power supply with the terminals 24V and OV of the master connect the ground terminal Turn on the power supply After the self test the LEDs power config err U ASI and prj mode are on The LCD shows 40 the AS i Master is in the off line phase Shortly after that a 41 will be displayed the AS i Master stays in the detection phase Switch the device to the projecting mode if Press the mode button for approx five the yellow LED does not light up seconds The yellow LED prj mode lights up The device is now in projecting mode Add a slave with the address 0 to the AS i Connect the slave s terminals with the line terminals AS i of the master The green LED ASI active lights up The LCD shows 0 This means the AS i Master has detected the slave Change the slave address to address 1 Select address 1 by pressing the set button shortly if necessary repeatedly When a 1 appears on the display press the set button for approx five seconds until the display blinks Press again shortly the set button to assign the new address to the slave The AS i Master detects the slave with address 1 and displays 1 Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 54 Mannheim 10 02 99 www bihl wiedemann de eMail mail bihl wiedemann de Bihl AS i Master Appendix B First Commissioning of AS i
49. previous called programs The last menu item is to specify the command line to call the text editor This makes it possible for every user to use the editor he is the most familiar with Selecting the menu item edit makes ASISHELL to pass this line to the operating system after it replaced by the name of the source file and 1 by the line number where ASI CTRL found an error 7 2 2 AS i Monitor Program ASI MON The AS i Monitor is a simple screen oriented MS DOS program for monitoring displaying monitor mode and editing editor mode of all process data and conditions of the serial AS i Masters via a serial PC interface With the AS i Monitor the PC becomes an AS i host system Starting the Program In its default setting the AS i Monitor uses the PC s COM serial port If you want to use an other serial port you must add the a appropriate parameter to the command line For example the command ASI MON 3 runs the program using COMG The Screen Design In order to display the large amount of data orderly two screen pages are used On both pages the current AS i flag conditions are displayed at the top The lower halves of both screens contain the slave related AS i data Two footer lines display the function key assignments and status information An additional screen page is available for logging any errors that might occur Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621
50. r Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 www bihl wiedemann de eMail mail bihl wiedemann de Mannheim 10 02 99 11 Bihl AS i Master Connectors and Displays df Wiedemann Automatisierungstechnik Operation with AS i power supply In the jumper position ext pwr the AS i network needs an additional AS i power supply AS i Master Warning master powers upply 150 mA AS i PELV according to EN 60950 powers Protective extra low voltage upply max 10A PELV according to EN 60950 Protective extra low voltage Do not try to provide the AS i Master with power supply N out of the AS i power supply of the AS i circuit backwards because the additional decoupling coils would burden the AS i line and cause erroneous AS i telegrams Warning Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 12 Mannheim 10 02 99 www bihl wiedemann de eMail mail bihl wiedemann de AS i Master Connectors and Displays 3 1 4 Double Master in IP20 with Power Supply A AS i Master AS i 1 RS i2 zem a224V0Vb2 GND J J The terminals have the following functions Bihl T Wiedemann Automatisierungstechnik AS i Actuator Sensor Interface 1 or 2 positive terminal These terminals are connected internally with point a2 of jumper J AS i Actuator Sensor Interface 1 or 2 negative terminal
51. releases the Off line Phase e For each slave address can be chosen whether a configuration error on this address will release the Off line Phase or not This information is stored in the List of Off line Slaves LOS The user himself can decide how the system reacts to a configuration error on the AS interface The AS i Master can release the Off line Phase in critical situations i e only with certain slave addresses while in less critical situations if one of the other AS i slaves have a configuration error only the error message configuration error is sent to the host but AS i is still running The parameterization of Off line Phase on Configuration Error is also supported by the AS i Control Tools version 3 0 Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 30 Mannheim 10 02 99 www bihl wiedemann de eMail mail bihl wiedemann de 7 1 Bihl AS i Master Accessories for Putting AS i into Operation and Test Tools Wiedemann Automatisierungstechnik Accessories for Putting AS i into Operation and Test Tools Putting AS i into operation can be done very comfortably with the Windows software AS i Control Tools The DOS software ASISHELL is also delivered with the AS i Master Both software packages communicate with the AS i Master via a serial cable Furthermore the AS i Master can be controlled with own programs with the serial telegrams decribed in chapter 8
52. ress bi status 10ms b amount of bytes to be transmitted max 16 b3 user memory for Advanced Control i host message data b master message data advanced diagnostics 88hex bi selection n 0 bj b15 slave 1 31 n 1 b4 bis slave 0 15 n 2 b bi5 slave 16 31 write list of off line slaves bi b4 slaves 0 31 bi error status LOS off line by configuration error read list of off line slaves 8Anex b b4 slaves 0 31 10ms LOS off line by configuration error Commands for Backward Compatibility with Older Master Versions host message data bi master message data enable disable automatic T9nex 0 disable b status 30ms programming e 1 enable Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 44 Mannheim 10 02 99 www bihl wiedemann de eMail mail bihl wiedemann de Bihl AS i Master Including the AS i Masters in Own Programs df Wiedemann Automatisierungstechnik 8 1 3 Representation of Information in the User Data Bytes Input and Output Data For each slave a four digit binary number can be entered as input and output data Input and output data can therefore range between 0 and 15 For serial transmission the data for two slaves are combined in a single byte With message q read input data the master therefore sends 32 2 16 bytes of user data The entries for low slave addresses are transmitted fir
53. s 30ms Additional Commands for AS i Double Masters b host message data b master message data Exchange all process b bis output data AS i bi ec flags AS i circuit 1 data circuit 1 b b 7 input data AS i write ODI read ec flags b b3 output data AS i circuit 1 IDI circuit 2 bis ec flags AS i circuit 2 b o b34 input data AS i circuit 2 This message makes no difference which of the AS i circuits has been activated Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 www bihl wiedemann de eMail mail bihl wiedemann de Mannheim 10 02 99 43 Bihl AS i Master Including the AS i Masters in Own Programs Wiedemann Automatisierungstechnik Additional Commands for AS i Control bi host message data b master message data write 16 controller program 7Fpex b4 bz start address b satus 200ms bytes download b2 Dis 16 bytes of the controller program read 16 controller program bi bz start adress bytes upload e program read AS i Control status 835a bi bz FFF Fhex bi AS i Control flags bz O0hex bs b4 current cycle time bs bg maximum cycle time start stop controller 80hex b start stop code b status 20ms program reset controller program Be pe 3000ms read user memory flags 84hex b start address user memory 10ms b amount of bytes to be transmitted max 16 write user memory flags b start add
54. s 30ms address b2 new slave address AS i command call 6Fhex bi slave address b response from slave 30ms b information part of the b status master request Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 www bihl wiedemann de eMail mail bihl wiedemann de Mannheim 10 02 99 41 Bihl AS i Master Including the AS i Masters in Own Programs f Wiedemann Automatisierungstechnik Additional Commands not in AS i acia nn message k b hostmessage data exchange all input and b bis output data nr execution ln output data flags bz T input data write selected output data b 1st slaveadresse 1 status 10ms b amount of slaves b3 Dis output data read selected output data 78hex bi 1st slave address b execution control flags 10ms ae amount of slaves we 617 input data read output data bie output data write parameter field 8Chex are slave address 1 status 10ms bz actual parameters read configured data of all b number of the AS i circuit b status 10ms AS i circuits b slave address b configured parameter bs configured data configure all AS i circuits Request 1 start b4 D2 FFhex b3 b4 OOhex Request 2 data b number of the AS i circuit b2 slave address bs parameter of the slave b4 configured data of the slave Request 3 commit b4 D2 FFhex bs Pe O1hex 1 Status read master version bi 0
55. speed that it used during the last communication with the host before it was turned off As soon as a valid message is received the baud rate remains fixed until the next startup Message Structure The AS i Master and the PC or PLC communicate with each other by exchanging messages The host PC or PLC in this case functions as a master and the AS i Master as a slave i e the AS i Master does not initiate any data communication but only responds to the host s messages The messages are structured as follows aan Dede Command byte k The first byte of each message is the command byte that determines the AS i function and therefore the message type User data length n Indicates the number of user data bytes Depending on the messages type this number is between zero and 17 User data bytes b If no user data are to be transmitted with the message usable data length n 0054 this field is not used Checksum s The lowest eight bits of the sum of all previously sent bytes are transmitted as the checksum The checksum can also be calculated with the formula s n b moa2s6 i l Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 www bihl wiedemann de eMail mail bihl wiedemann de Mannheim 10 02 99 27 Bihl AS i Master Operation via the Serial Interface df Wiedemann Automatisierungstechnik The AS i Master resp
56. st Byte 0 bits 0 through 3 lower nibble thus contains the input data of the slave with operating address zero the upper nibble of the user data byte 15 contains the data of slave 31 Slave Lists The AS i Slave lists LPS LDS LAS LCS and LOS are built up as follows Dice In ee ee UNDC pu EBEN Pee a eee Eee save 1 2 83 4 5 6 7 8 9 10 11 12 13 14 15 pt amp 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 Meaning of the Lists LPS List of Projected Slaves LDS List of Detected Slaves LAS List of Activated Slaves LCS List of Corrupted Slaves List of those slaves that have caused a short time configuration error LOS List of Off line Slaves List of those slaves with that in case of configuration error the AS i Master shall switch to the Off line phase Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 www bihl wiedemann de eMail mail bihl wiedemann de Mannheim 10 02 99 45 Bihl AS i Master Including the AS i Masters in Own Programs df Wiedemann Automatisierungstechnik Execution Control Flags The execution control flags are transmitted in the diagnosis telegram if the gateway is operated in the professional mode When set the individual bits have the following meaning Host Interface Flags The set of the host interface flags has follwing effects Bit 0 Data Exchange Active if bit O is set the data communication between master
57. stechnik Error Codes in the error message Bit 0 checksum error Bit 1 time out Bit 2 unknown command Bit 3 illogical message length Bit 4 illogical number of user data bytes Bit 5 watchdog timer expired Bit 6 command execution error By setting several bits more than one error can be reported 8 2 PC Drivers AS i Master and PC communicate together through exchange of communication messages This communication can token on with the delivered driver routines The including of the driver in own programs demonstrate the simply example routines demo c and demo2 c on the delivered disk 8 2 1 New Data Types The only new introduced data type is AST DATA ASI DATA is a field with elements of the unsigned char that is used to accept the user data You can access the individual elements of this data field with the customary C subscripts data 3 for example is the third element in the AST DATA data field You can also pass your own data structures to the communication routines Using ASI DATA however ensures a sufficient data field size Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 www bihl wiedemann de eMail mail bihl wiedemann de Mannheim 10 02 99 49 Bihl AS i Master Including the AS i Masters in Own Programs d Wiedemann Automatisierungstechnik 8 2 2 Global Static Variables Some information that is normally not ne
58. ta Moreover you can use the AS i Address Assistant This tool changes automatically the address of an AS i slave to the desired address after plugging the slave to the AS i line The desired AS i configuration can be created off line before and stored to a file When you build up the plant you only have to plug the AS i slaves to the AS i line one after the other Further descriptions to all features of the software can be obtained from the integrated help Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 www bihl wiedemann de eMail mail bihl wiedemann de Mannheim 10 02 99 33 7 2 7 2 1 Bihl AS i Master Accessories for Putting AS i into Operation and Test Tools Wiedemann Automatisierungstechnik DOS Software Frame Program ASISHELL ASISHELL is an simple frame program to start the executables of the software package without knowledge of their command line parameters In the upper part of the menu items like the PC serial interface port or the name of the source code file for AS i Control can be specified A second set of menu items is to process the controlling program by calling an text editor or ASI CTRL ASI VIS ASI MON or ASI ID can be executed by selecting one of the three menu items below A fourth block holds items to control the execution of ASISHELL leaving ASISHELL calling the DOS command line interpreter and showing the output of
59. utomatisierungstechnik Advanced Diagnostics for AS i Masters The advanced AS i diagnostics serves to locate occasionally occurring errors and to judge the quality of data transmission on AS i without additional diagnostics tools The AS i Control Tools Bihl Wiedemann s software for the comfortable commissioning of the AS Interface and the programming of AS i Control will include the operation of the Advanced Diagnostics from version 3 0 on List of Corrupted AS i Slaves LCS To locate occasionally occurring short time configuration errors the AS i Masters with advanced diagnostics manage beside the list of projected slaves LPS the list of detected slaves LDS and the list of activated slaves LAS a forth list the list of corrupted slaves LCS This list contains entries of all AS i slaves which were responsible for at least one configuration error since powering up the AS i Master or reading the list Short time AS i power failures are represented in the LCS at the position of AS i slave with address 0 With every read access the LCS will be deleted The last short time configuration error can also be displayed on the AS i Master Pressing the set button of the AS i Master shows the AS i slave which was responsible for the last short time configuration error If a short time AS i power failure occured the display shows 39 after pressing the set button Error Counter Counter of corrupted data telegrams The AS i Master w
60. w Bihl Wiedemann GmbH K fertaler Stra e 164 D 68167 Mannheim Phone 49 621 3392723 Fax 49 621 3392239 www bihl wiedemann de eMail mail bihl wiedemann de Mannheim 10 02 99 37 f Bi hl AS i Master Accessories for Putting AS i into Operation and Test Tools Wiedemann Automatisierungstechnik w write ini file Stores the settings made with p b d u s o and v as default values in the fileasi ctrl ini 7 2 4 Visualizer ASI VIS The ASI VIS program displays the AS i circuit s input and output data and the AS i Control s user memory while a controller program is running The command parameters have the following functions p lt number gt select serial port Selects the serial PC interface port that is to be used for the communication with AS i Control number can be 1 through 4 for com1 through com4 Example asi vis p1 uses COMI b number select baud rate Selects the serial transmission rate in bits per second The valid baud rates are 1200 2400 4800 9600 19200 38400 and 57600 bits per second Example asi vis b19200 transmits to AS i Control at a speed of 19200 baud m number select master bus address The AS i Masters with RS485 and RS422 interface are bus capable m selects the bus address of the master to work with If you use the non bus capable AS i Master with RS232C interface you have to specify m hor display help Displays hel
Download Pdf Manuals
Related Search
Related Contents
DIPLÔME D`ÉTUDES EN LANGUE FRANÇAISE DELF A2 Model SL-180 Parts and Operations Manual Ultra Gauge User Manual - UltraGauge OBDII Scan tool FLEXILASTIC 4001 APPRÊT ACRYLIQUE AU LATEX iconBIT FTB13000DUO Copyright © All rights reserved.
Failed to retrieve file