Home

onlinecomponents.com

image

Contents

1. IBS PC CB COP I T IBS PC CB I T IBS PC CB RTX486 I T 5036B421 Figure 5 12 The SysFail signal in the MPM 5 6 Application Program Downloading to the COP only for IBS PC CB COP I T The development environment IBS PC COP SWT TDOS PRO Order No 27 52 12 3 is available for a convenient handling of the coprocessor board during program development By means of this development environment the following operations can be implemented in a convenient way Application program downloading Evaluation of an IBS controller board status report IBS controller board reset Flash EPROM programming Terminal function for the IBS controller board IBS PC COP SWT comes complete with the manual for this development environment and the adapter cable for extending the serial interface of the COP see Section 3 PHCENIX ii CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Section 6 INTERBUS S specific Programming This section shows on the basis of a bus configuration example the programming of typical InterBus S functionalities such as physical addressing and logical addressing group definition and disabling reenabling groups 6 InterBus S specific Programming 2 2 oe eee we we ee 6 3 6 1 Identification of the Connected IBS Devices 6 3 6 1 1 Physical Counting Mode for Bus Segments and IBS Devices 6 3 6 1 2 Bus Configuration Example 6 4 6 1 3 InterB
2. 39 14 wee PHOENIX CONTACT InterBus S Table of Contents THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS 3 4 6 2 Coprocessor Board Reset System 14 3 4 6 3 Coprocessor Board Watchdog 3 14 3 4 7 Coprocessor Board Real time Clock 3 15 3 4 8 Coprocessor Board Power Supply 3 15 3 4 8 1 Battery Back up 16 4 Installation and First Startup 4 3 4 1 Address Setting ee ee 4 3 4 1 1 Base Address in the I O Area of the PC VO Address 4 3 4 1 2 Board Number Board No oe 4 4 4 2 setting the Boot Configuration 4 6 4 2 1 IBS Control i 4 6 4 2 2 InterBus S Startup Behavior IBS Autostart le 4 7 4 2 3 Automatic Program Start from EPROM EPROM Start 4 8 4 2 4 Setting the Boot Disk o 4 8 4 25 RFSERVER Boot Behavior Wait for RFSERVER 4 10 4 2 6 DPCON Boot Behavior Wait for DPCON 4 11 4 2 7 Data Transmission Between COP and Development Environment4 12 4 3 Jumper Settings 4 13 4 3 1 Power Supply Selection PR 4 13 4 3 2 Separation from the Host PC Hardware Reset PC HW RESET 4 14 4 3 3 Reset Button Disabling Enable Disable RESET Button 4 14 4 4 Connection of the Battery Pack os ee 4 15 4 5 Installation of the Controller Board in the PC 4 15 4 5 1 Serial Interface of the Coprocessor Board 4 16 4 6 Installation of the Device Driver 4 16 4 6 1 Device Driver under MS DOS 4 18 4 6 1 1 Installation Assistance for DOS 4 19 4 6 2 Device Dri
3. 5036A902 Figure 8 2 Pulse diagram for process data linkage General function of the RESET instructions The bus output bit is reset following the evaluation of the bus input bit edge sec tion 2 of the diagram above The instruction determines the evaluation of the bus input bit The bus output bit is set via the setting of the host output bit sec tions 1 and 3 in the diagram above As long as the bus output bit has not been reset by the evaluation of the bus input bit the bus output bit is determined only by the host output bit Sections 1 and 3 in the diagram above Table 8 2 Process data linkage instructions 0000hex Clear All Processing Deletes all instructions stored before 8 32 Instructions 0005hex Reset Out In01 Responds to positive edge 0 1 0006hex Reset Out In10 Responds to negative edge 1 0 8 32 0007hex Reset2_Out_In01 Responds to positive edge 0 gt 1 8 33 0008hex Respons to negative edge 1 0 8 34 0009hex Responds to positive edge 0 gt 1 8 35 000Ahex Responds to negative edge 1 0 8 36 5036C PHCENIX 8 29 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Commands for the IBS Master Board Task 8 30 Bit Bit Process data linkage can only be carried out in the address area of the binary input and outputs The cycle time of the data traffic on the bus may increase by up to 40 us per instruction The instructions are transferred to the controller bo
4. ERROR Remote Bus Error HAHA Defect remote bus or installation remote bus Error location Bus Segment No HHH Defect cable in remote bus or installation remote bus Power supply of a bus terminal not OK Bus terminal defect OK SU36A825 Figure 4 16 An error message in the monitor program Refer to Section 10 for information on meaning cause and remedy with the fol lowing error messages The menu item BS nfo calls the Info window which provides an overview of the InterBus S state and any error messages PHOENIX 4 27 CONTACT l nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Installation and First Startup 165 INFO MASTER STATE FAIL BSA ERROR ERROR ERROR ERROR 5036A82 Figure 4 17 The monitor program Info window CON ERR Controller error RB Error Remote bus error Local Bus Error Local bus error LB ERR Module Error Module error MOD ERR 4 9 2 Issuing Commands with PCCBMONI Commands The menu item Commands IBS allows to manually issue IBS commands requests and to receive messages confirmations incl parameters You may also issue PCP commands and receive the corresponding messages PCP commands are used for example for parameterizing intelligent IBS devices such as IBS V 24 or frequency inverters The menu item BS Commands will only be supported from PCCPMONI Version 0 70 onwards The mask consists of two windows The left window is used for e
5. cessor board rotated by 180 compared with the drawing in Figure 3 2 L WOON UU UE 5036C508 Figure 3 2 Pin arrangement in the COP connector shell Table 3 3 Adapter cable assignment Data Carrier Detect input Data Set Ready input Received Data input Request To Send output Clear To Send input CTS Data Terminal Ready output DTR Ring Indicator input ORO Signal Ground GND o fw e T a DKT AA EY Development cable The connection of the serial interface subminiature D connector of the COP386 and of the PC on which the development environment IBS PC COP SWT TDOS PRO is running is effected with a development cable zero modem cable as shown below 5036C PHGNIX 3 CONTACT l nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Technical Description of the Coprocessor Boards dan Development cable PC board holder soiderino p en Pin side side side 2 AD RXD 2 2 RXD 9 TXD TXD 3 3 TXD 5 GND GND 5 5 GND RTS RTS 7 7 RTS 8 CTS CTS 8 8 CTS SUB D 9 pos SUB D 9 pole SUB D 9 pole male female sockets 5036C302 Figure 3 3 Development cable for the COP386 The development cable is supplied with the development environment TDOS PRO IBS PC CB COP SWT Order No 27 52 12 3 3 4 Cop
6. 0065hex E ORAR RI REO O RE In 0 Code Message code here 80FFhex Parameter count Number of subsequent words here 2 Parameter number The parameter number identifies the faulty parameter Error number The error number number specifies the type of the error 1 Odd number of parameters parameter number 1 2 Unknown bus segment address 3 The specified module number does not exist 4 The specified module is currently not accessible as its segment has been disabled 5 The required ID cycles could not be executed suc cessfully Only error number 5 is used in the response to the Quit_Module_Error_All_Request 0065hex command PHOENIX 9 21 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Messages of the IBS Master Board Meaning Consequence syntax Word 1 Word 2 Word 3 Word 4 Word n 2 Bit Key 9 22 Bus_Error_Information_Indication80C4 First comes the general format of the message The format depends on the error type parameter which is described in detail below This message follows the Bus_System_Error_Indication 0038hex error message lt provides detailed information on the bus system s error state The bus is in the STOP state and the outputs have been set to 0 Code Message code here 80C4hex Parameter count Number of subsequent words Error type EEO1 EE02 EEO3 EEO4 EEO5 or EE06 Depending on the error type the other parameters classify the
7. 8 27 8 28 8 38 8 1 8 2 PHCENIX CONTACT onlinecomponents com THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Commands for the IBS Master Board 8 Commands for the IBS Master Board Table 8 1 Commands for the IBS master board CA 7 0028 Configure Bus Request fe 0047 hex Enable All Messages Request 0048hex Disable All Messages Request 0049ra Receive Group Numbers Request e ee PHOENIX 8 3 CONTACT nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Commands for the IBS Master Board Table 8 1 Commands for the IBS master board 005Chex Send_All_Module_Error_Request 005Dhex Receive Processing Instructions Request 005Ehex Send Physical Configuration Request 86 005Fhex Send Log Address Error Request 0060 hex Define Groups Error Characteristics Request 0064hex Quit_Module_Error_Request 0065 e Quit Module Error All Request 0069hex Receive Localbus Code Map Request 010Dhex Send Actual Configuration Request 01145hex Read_Event_Counter_Request 8 4 PHGNIX 5036C CONTACT Task Prerequisite syntax Key Positive acknowledgment Negative acknowledgment 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE G R awww ww Format of a Command Description 8 1 Format of a Command Description This section describes the commands for the IBS master board The commands are given on a word basis
8. RUN Number of PCP Modules Number of PD Words OUT Data Controlled ODULE DATA Bus Segment No 6 PCP Length 0 Too Bus Type Local bus PCP fddress KR Module Ho gt 11 PD Length Z Words Module Ident 142d SEh PD IN Address 9 Module Type DI Standard PD OUT Address Module Name IBS 24 DI 32 Module Channel B IN DATA ABRBRRBABABABABA HHHH 1 BAAR Exit lt X Next Word Previous Word start Bus stop Bus 5036A824 Figure 4 15 Monitor mask of the monitor program Now press to start InterBus S data transmission The Bus State display in the BUS DATA changes from STOP red to RUN green If there is no error you can select all connected InterBus S modules and check or change their I O states Key Start of the data transmission on InterBus S assignment Stop of the data transmission on InterBus S MN Next process data word J Previous process data word Page Up Jump to the next bus segment Page Down Jump to the previous bus segment Home Jump to the physically first InterBus S module End Jump to the physically last InterBus S module ESC Return to the start mask bus cycles are not terminated ALT X Monitor program termination bus cycles are automatically stopped The upper window shows the general system data on the left Number of connected bus segments Number of connected modules IBS devices Number of connected PCP modules IB
9. 1 Group number Number of the group to be disabled 00hex to FFhex corresponds to 0 to 255gec When a system part is disabled the supply voltage for the module electronics logic voltage must be retained for the IBS devices with bus terminal module functionality included in this system part to ensure that the operation of the remaining bus configuration can continue Buffer in the programming language C EEE A Switch Group Off Request to switch off a group E KKK KKK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KKK USIGN16 grp_off 0x0021 Command Code 0x0001 Parameter Count 0x0003 switch off group number 1 Buffer in the programming language Pascal Switch Group Off Request to switch off a group EE E E E E E EKEER REKEN EREEER EEKE ERRE I const Grp orf arrayl is 3 of word S0021 Command Code SOOO1 Parameter Count 0003 switch off group number 1 6 32 PHGNIX 5036C CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS EEE S awww ww Enabling Groups On 6 4 3 Enabling Groups On The Switch Group On Request 0020hex command is used to re enable switch on a group which had been disabled switched off before Word 1 Word 2 Word 3 Bit Figure 6 19 the Switch_Group_On_Request command format Key Code Command code here 0020hex Parameter count Number of subsequent words here 1 Group number Number of the g
10. Command code here 0058hex Parameter count Number of subsequent words here number of de vices Length code The length code describes the address space require ments of the IBS device in the host ID code Identification code short ID code of the IBS device IS Use in addition the command Receive Local Bus Code Map Request if your bus configuration contains installation remote bus devices 6 14 PHGNIX 5036C CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS EEE S awww ww Checking the Bus Configuration Buffer in the programming language C KK KK KK KK KK KK KK I KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KKK Check Physical Configuration Request as a list for the bus configuration KKK KKK KK KKK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK USIGN16 chk_phy_cnf Data field of the unsigned integer type 0x0058 Command Code 0x000D Parameter Count 0x0008 IBS ST 24 BK T OxO1BE IB ST 24 DI 16 4 0x047D IB ST 24 AO 4 SF OxO1BD IB ST 24 DO 16 3 0x047B IBS PT 100 0x0107 IBS IP DIO 1 24 0x000C IBS IP CBK 1 24 0x810A IBS IP CDI 1 24 0x8109 IBS IP CDO 1 24 Ox810A IBS IP CDI 1 24 Ox010B IBS 24 BK I O T 0x028E IBS 24 DL 32 0x0447 IBS AI 3 Buffer in the programming language Pascal ERE E E E A E a a a a a Check_Physical_Configuration_Request s as a list for the bus configurar n a co
11. Defective local bus cable or module Consequences The data cycle is disabled unless the errors occurred only in the groups for which it was previously defined with the Define_Groups_Error_Characteristic_Requestcommand 0060 that the rest of the bus may be operated without them syntax Word 1 Word 2 Word 3 Word 4 Word 5 Word 6 1st group number revaiele MOLS Groups Woda A Word 8 PPOs Number of RBs 1st remote bus number Parameter block Remote bus xth remote bus number xth error number ei Shay Number of local buses 1st local bus number Parameter block Local bus Word n Word n 1 xth local bus number Word n 2 Bit 9 26 PHONIX 5036C CONTACT Key 5036C Code Parameter count Error type FF01 Number of groups 1st group number xth group number FF02 Number of RBs 1st rem bus number 1st error number xth rem bus number xth error number FFOS Number of local buses 1st local bus number 1st error number xth local bus number xth error number THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEMOS ewww ww Error Handling Messages Message code here 80C4 Number of subsequent words Here EE03 Beginning of the parameter block indicating the faulty groups Number of faulty groups Number of the 1st faulty group Number of the last faulty group Beginning of the parameter block indicating the faulty re mote bus segments Number of
12. Flash EPROM 2 Power supply Serial interface Interface chip PHCENIX CONTACT RTXDOS 78 74 x 113 03 mm 486 SXLC 40 double clock 8 KByte Cache 40 MHz internal 20 MHz external Chips amp Technologies 82C836 2 Mbyte DRAM 128 kbyte CMOS RAM battery backed up 256 kbytes 256 kbytes 5 V 15 typ 380 mA COM1 with FIFO 9 pos ST16C550JW 44 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Appendix B Document Index B Document Appendix 2 2 ee ew ew a ee ee B 3 B 1 Figures 4 4 ANJ B 3 B 2 Tables ee B6 B 3 Index o B 9 5036C PHGNIX B 1 CONTACT B 2 PHCENIX CONTACT onlinecomponents com THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS EEE S awww ww Document Appendix B Document Appendix B 1 Figures Section 1 Figure 1 1 Modular design of the controller board 1 8 Section 2 Figure 2 1 Layout of the IBS PC CB I T controller boards 2 4 Figure 2 2 Elements on the PC board holder 2 6 Figure 2 3 Diagn interface and diagn cable for the connectionofaPC 2 10 Figure 2 4 Remote bus interface and example of a remote bus cable 2 11 Figure 2 5 Workmanlike connection of a remote bus connector subminiature D 9 a ee ee ee ee ee 2 12 Section 3 Figure 3 1 Coprocessor board block diagram
13. Messages of the IBS Master Board Meaning syntax Word 1 Word 2 Word 3 Word 4 Bit Key 9 12 THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Send_Logical_Address_Error_Confirmation80F5 This message is the positive acknowledgment of the command Send Log Address Error Request 005Fhex and communicates the last logi cal addressing error If no error was found the list parameter number and error number parameter values are 0 Code Parameter count List Parameter number Error number Message code here 80F5hex Number of subsequent words The ist parameter identifies the faulty list 0 2 No error found Logical IN address list Receive_Logical_IN_Address_Map_Request com mand 003Ahex Logical OUT address list Receive_Logical_OUT_Address_Map_Request 003Bhex command ID list Check Physical Configuration Request 0058hex command Logical Bus Code Map Receive Localbus Code Map Request command 0069hex The parameter number parameter refers to the faulty pa rameter in this list lf the error number is 1 parameter number specifies the number of the first missing parameter in the list of logical addresses lf the error number is 2 parameter number refers to the number of the first parameter specified too many in the list of the logical addresses Otherwise the number of the faulty entry will be spe cified The error number identifies the type of the error 0 2
14. No error detected Too many entries in the list that was sent with the faulty command Too many entries in the list sent with the faulty com mand An invalid bus segment number was assigned 0 to 255 dec Corresponds to 00hex to FFhex are permissi ble Multiple assignment of a bus segment number PHOENIX ii CONTACT Meaning syntax 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS EEE S awww ww Addressing Messages Invalid host address area The address area of two IBS devices overlap An odd address was assigned for an IBS device with more than 8 bits of process data Assign an even address 9 An invalid length code was used 10 A sent ID code is not identical with the IBS device in the system 12 The specified address is invalid 14 An invalid remote bus level was specified Firmware 3 x allows only remote bus levels O and 1 15 The wrong remote bus level was specified for an IBS device Specify the remote bus level 0 for main line IBS devices and remote bus level 1 for IBS devices in the remote bus branch 16 No command execution possible as the bus is in the Run state In this case the istand parameter number parameter values are 0 17 An invalid data consistency was specified CON O1 Quit Receive Localbus Code Map Confirmation0105hex The Receive Localbus Code Map Request 0069hex command was execut ed successfully The message consists only of one word the message code 0105hex No
15. Operation Messages Error Handling Messages User Interface Messages System Monitoring Messages Process Data Linkage Messages Event Processing Messages Technical Data of the Controller Boards Figures Tables Index PHCENIX CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS 8 3 8 5 8 6 8 13 8 16 8 19 8 26 Quel 8 28 8 38 9 3 9 5 9 6 9 11 9 14 9 15 9 31 9 32 9 33 9 34 A 3 A 3 B 3 B 3 B 6 B 9 5036C 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Section 1 Introduction and Overview This section provides a short introduction into controller board parameterization and programming a short overview of the documentation available for InterBus S Introduction and Overview 2 2 ee 1 3 1 1 Quick Start Under DOS Low 183 1 2 Programming Fundamentals 1 4 1 3 Documentation a K R 1 6 1 4 Modular Design of the Controller Board 1 8 PHCENIX 1 1 CONTACT 1 2 PHCENIX CONTACT onlinecomponents com THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Introduction and Overview 1 Introduction and Overview The IBS PC CB l T controller boards are used to connect InterBus S to IBM compatible PCs The documentation is to provide information on all functionali ties and applicati
16. SV E RQ29 O C T S SV SMEMRL IT T BAY y SS IO or al A SNEEN a a BED B22 CAE BE 0 B25 Key Input SV Supply voltage TS Tristate O Output T TTL level PU Pullup KQ B Bidirectional C CMOS level PD Pulldown KQ M For measuring only OC Open collector UN Nominal voltage V Dii PHOENIX 2 9 CONTACT InterBus S Technical Description of the Motherboard THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS 2 3 2 Connection Between Motherboard and the Daughterboards Two 58 position female connectors for the master board and two for the coprocessor board provide the connection between the motherboard and these two daughterboards Both interfaces are assigned in the same way the address data and control lines of the Multi Port Memory MPM and slot specific MPM signals In addition the signals of any I O interfaces are supplied to the connectors of both interfaces They are divided into the I O signals which are at system potential and the electrically isolated IBS signals 2 3 2 1 Interfaces of the IBS Master Board The IBS master board has two interfaces the signals of which are supplied via the 58 position female connectors to the motherboard connectors described below Diagnostic interface serial An IBM compatible PC with the software IBS SYS SWT or IBS CMD SWT can be connected as a diagnostic device via the diagnostic interface RS 232 level The diag
17. Strain a relief SUB D 9 pos SUB D 9 pos SUB D 9 pos female male female 5036C204 Figure 2 4 Remote bus interface and example of a remote bus cable cable type D9 D9 The bridge between pin 5 and pin 9 indicates to the outgoing remote bus interface of an IBS device that the outgoing remote bus cable has been connected au PHOENIX 2 11 CONTACT l nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Technical Description of the Motherboard Table 2 4 Remote bus interface pin assignment Reserved I For detailed information on the cable specification all IBS cable types and the installation of your IBS system please refer to the installation manual IBS SYS INST UM E Order No 27 54 80 4 20 mm 0 79 in _12 mm 0 47 in gt ra POO AID SX KKXX I UK KK XXX ISO PS x 69 PELE XXX _ _3 mm 0 12 in fe N x BE KOS KX Cn SOAK PPL XXXXXX x X XXXXI o A OS a OOOO OOO OOO 7 n H J 7 H wo AAN 4 DS Xx x LX KR x y i o Ke 5036D201 Figure 2 5 Workmanlike connection of a remote bus connector subminiature D 9 Connect the connector as follows 1 Cut off 20 mm 0 79 in of the cable sheath and 12 mm 0 47 in of the shield braid 2 Strip off 3 mm 0 12 in of the wire ends and
18. have the following meanings 00hex O5hex 06hex A firmware error was found on the controller board Please consult Phoenix Contact 07hex An invalid command or PCP command was sent Check the application program and remove undefined commands 08hex A command is to be followed by parameters but another command follows Check the command sequences in the application program If necessary add parameters or correct the command calls 09hex The number of parameters in the assignment lists is zero Check the number of parameters in the definition lists 0Ahex A non defined command was sent Check the application program and remove undefined commands Please consult Phoenix Contact should the error occur repeatedly 0Bhex A firmware error was found on the controller board Please consult Phoenix Contact 0Chex A message or the acknowledgment of a command Is pending on the controller board and is not fetched in time Call the function DDI MXI RcvMessage cyclically in the application program If you do not wish messages you can issue the command Disable all Messages Request 0048hex PHOENIX ROTOS CONTACT Meaning Cause Remedy Meaning Remedy Meaning Remedy Meaning Remedy Meaning Consequences Remedy Meaning Remedy Meaning Remedy Meaning Cause 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Meanings of Controller Board E
19. here 0025hex Number of subsequent words here 1 Enter here the logical bus segment number 0 to 255dec Corresponds to 00hex to FFhex of the bus terminal module whose alarm output you want to reset Quit_Reset_BK_Alarm_Logical_Confirmation 00CCheyx BK Alarm Failed Confirmation O05A Meaning Invalid local bus address or too many parameters Set BK Alarm Physical Request002618x The command sets the alarm output of a BK module There must be an alarm output on the accessed BK module If the accessed module has no alarm output the positive acknowledgment is ge nerated Code Parameter count Phys bus segment Command code here 0026hex Number of subsequent words here 1 Enter here the physical bus segment number 0 to 255 dec Corresponds to 00hex to FFhex of the bus termi nal module whose alarm output you want to set 5036C PHOENIX CONTACT Positive acknowledgment Negative acknowledgment Task Prerequisite syntax Word 1 Word 2 Word 3 Bit Key Positive acknowledgment Negative acknowledgment 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS SEE S awww ww Error Handling Commands Quit Set BK Alarm Physical Confirmation 00CDheyx BK Alarm Failed Confirmation 005Apex Meaning Invalid local bus address Reset BK Alarm Physical Request0027nex The command resets the alarm output of a bus terminal module There must be an alarm output on the acce
20. ment environment manual for the precise description Upon delivery of the IBS PC CB RTX486 I T the device driver already is on drive AX flash EPROM of the COP486 and is automatically started by means of an AUTOEXEC BAT entry Note that the coprocessor board has by nature no keyboard monitor and hard disk of its own The use of the host s keyboard and monitor terminal mode as well as its hard disk for the coprocessor system is described in the documenta tion of its operating systems TDOS RTXDOS PHOENIX 9 9 CONTACT onlinecomponents com nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Interfaces Between Hardware and Software 5 2 3 Explanation of Driver Software Terms Application program Device driver interface Mailbox interface MXI functions Data interface DTI functions Data channel management functions Diagnostic function Device driver 5036B403 Figure 5 10 The DDI as interface to the device driver 5 2 3 1 Management of Data Channels Node A user of the MPM with the associated device driver is referred to as a node The following nodes are used Node 0 Host with associated device driver Node 1 IBS master board with associated device driver the device driver of the IBS master board is an integral part of its firmware Node 2 Coprocessor board with its associated device driver Node handle A node handle identifies an open data channel to a node
21. startup the controller board hardware and software is initialized All previously made settings become invalid and reset to the same state as if the reset button had been pressed A reset is carried out on the bus With modules with process data this causes process data to be reset to the value 0 The bus data traffic is stopped The controller board is only ready again when the Ready Masterboard LED is on The command consists only of a single word the command code 004Chex No further parameters follow The execution of the command is not acknowledged The Ready Masterboard LED first goes out and comes on again after the completion of the warmstart 5036C PHCENIX CONTACT Task syntax Acknowledgment Task Prerequisite syntax Positive acknowledgment 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Error Handling Commands Bus Delay_Request0059 When the bus system is operated with communication PCP channel there is a delay of 1 ms between the data cycles The time is enabled during the initiali zation of the communication layer with the nit Comm Service Request com mand 0054hex When there are no devices with communication functions in the bus system the delay is automatically disabled Using the Bus Delay Request command 0059hex the delay can also be disabled for the operation with com munication The command consists only of a single word the command co
22. the command codes are in hexadecimal notation The descriptions follow the following pattern Command nameCommand codehex Describes the functionality of the command All conditions that are to be met before a command s call to ensure proper exe cution of the command Enter only the command code for a command without parameters The syntax of a command with parameters Is displayed as a parameter block as follows Word 1 Word 2 Word 3 Word 4 Word 5 Word n 2 Bit Parameter Description of the individual parameters Message indicating the successful execution of a command Meaning Explanation of the message Comment Further information on the message Message indicating an error in the execution of the command Meaning Explanation of the error cause Comment Further information on the message PHONIX 8 5 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Commands for the IBS Master Board Task Prerequisite Effect RS Syntax Positive acknowledgment Negative acknowledgment Task Comment syntax Positive acknowledgment 8 6 8 2 Configuration Commands Configure_Bus_Request0023 This command causes the IBS master board to read in the currently connected bus configuration and to save it as the initial configuration in the controller board RAM The bus must be in the STOP state when this command is used Do not call the command while
23. the message code 00E2hex No furt her parameters follow No_Command_Code_Indication0007 ax A non defined command code was sent to the controller board Check the application program The message consists only of one word the message code 0007 hex No furt her parameters follow Command_Write_Error_Indication0008hax A command with a wrong number of parameters was sent to the controller board Check the application program e g PCP commands The message consists only of one word the message code 0008 hex No furt her parameters follow Parameter_Write_Error_Indication0009 ex A command with parameters was sent with the parameter count 0 Check the parameters in the application program The message consists only of one word the message code 0009 ax No furt her parameters follow No_Command_Parameter_Routine_Indication000Ahex An unknown command was sent Check the appication program The message consists only of one word the message code 000Apex No furt her parameters follow PHOENIX 9 15 CONTACT nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Messages of the IBS Master Board No_Error_Code_Indication000Bex Meaning An unknown error code has occurred Remedy Please consult Phoenix Contact Syntax The message consists only of one word the message code 000B a No furt her parameters follow Controller_Parameter_Timeout_Indication000Chex Meaning The error messages is is
24. 0090400000101 hb h ee o a Ongja rh A Aw OW 6 InterBus S specific Programming 6 3 6 1 Identification of the Connected IBS Devices 6 3 6 1 1 Physical Counting Mode for Bus Segments and IBS Devices 6 3 6 1 2 Bus Configuration Example 6 4 6 1 3 InterBus S Addressing Modes 6 6 6 2 Physical Addressing of IBS Devices a oe Fe we amp 6 7 6 2 1 Addresses in the Physical Addressing Mode mee 6 8 6 2 1 1 Assignment of the Input Addresses by the Controller Board 6 8 6 2 1 2 Assignment of the Output Addresses by the Controller Board 6 10 6 2 2 Command Sequence for Startup Under Physical Addressing 6 12 6 3 Logical Addressing of IBS Devices 6 13 6 3 1 Determining the Currently Connected Bus Configuration 6 13 6 3 2 Checking the Bus Configuration ss 6 14 6 3 3 Assignment of Logical Bus Segment Numbers a a 6 16 6 3 4 Assignment of the Logical Addresses by the Programmer 6 19 6 3 4 1 Assignment of the Logical Input Addresses 6 20 6 3 4 2 Assignment of the Logical Output Addresses 6 24 6 3 4 3 Checking the Validity of the Assignment Lists 6 27 6 3 5 Command Sequence for Startup Under Logical Addressing 6 28 6 4 Group Definition chee ee eee we amp amp 6 29 6 4 1 Creating Functional Groups fe a we ee we eee 6 29 6 4 2 Swtiching Groups Off 2 2 6 32 6 4 3 EnablingGroupsOn ix
25. 090000hex to 09FFFFhex 9 070000 ex 070000hex to O7FFFFHex 7 60000 OFF B ee a Cono to 00FFFF 0 The 4 Kbyte memory area from B0000hex to BFFFFhexis configured as a map ping window via which the driver software functions access the MPM the static RAM and the EEPROMs N Do not directly access the coprocessor board DRAM in the area of the mapping window The driver software functions select via the mapping register in the I O area of the coprocessor board which memory is mapped via the mapping window 3 12 PHGNIX 5036C CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS BEE S awww ww MPM Interface 3 4 3 MPM Interface IBS PC CB COP I T 5036C205 Figure 3 5 The MPM as the central interface The MPM is the central interface between the host PC IBS master MA and coprocessor board COP To ensure a problem free communication between the MPM nodes all data and address lines of the COP are buffered The buffers are only enabled when the coprocessor board is granted the right of access The right of access is granted by a priority control feature in the MPM logic on the motherboard After the MPM request by the coprocessor board and before the motherboard grants the right of access the COP processor is in the Halt state When the coprocessor is granted the right of access the data and address buf fers are enabled and the data transfer begins with a data consistency of 8 16 32 or 48 bi
26. 16 An error message in the monitor program 4 27 Figure 4 17 The monitor program Info window 4 28 Figure 4 18 Mask for commands and messages 4 29 Figure 4 19 The Options pull down menu 4 30 Figure 4 20 The General pull down menu 4 30 Section 5 Figure 5 1 The MPM as the central interface of an IBS controller board 5 3 Figure 5 2 Shift of the MPM window by the device driver 5 4 Figure 5 3 Organization of the MPM 5 5 Figure 5 4 Relative addresses of process data words in a DTI transfer area 5 6 Figure 5 5 DTI transfer areas and offset constants 5 7 Figure 5 6 Structure of the driver software 5 7 Figure 5 7 Operation of four IBS controller boards in one host 5 8 Figure 5 8 Control of four device drivers by the device driver interface 5 8 Figure 5 9 Structure of the driver software on the coprocessor board COP 5 9 Figure 5 10 The DDI as interface to the device driver 5 10 Figure 5 11 Segmentation of the SRAM 5 13 Figure 5 12 The SysFail signal in the MPM 5 16 Section 6 Figure 6 1 Principle of the device list structure 6 3 Figure 6 2 Bus configuration for the addressing examples 6 5 Figure 6 3 Input addresses in the memory map IN buffer The start addresses of the modules are in bold type 6 8 Figure 6 4 Input addresses under physical addressing 6 9 Figure 6 5 Output addresses in the memory map OUT buffer B 4 PHGNIX 5036C Section 7 Section 8 5036C Figure 6
27. 2 Watchdog for Host Monitoring A watchdog circuit for monitoring your PC program PC crash program hang up is incorporated into the IBS controller board When it trips the watchdog places the IBS system in a defined condition reset of all outputs The watchdog does not influence the host which means that for example no host reset is carried out lf you want to use the watchdog enable it from the application program As defaul it is disabled To enable the host watchdog call the EnableWatchdog function After enabling the watchdog cannot be disabled by the software it can only be deactivated by switching off the host or by a hardware reset The host watchdog monitoring period is permanently set to146 ms Within this time the watchdog must be triggered by the TriggerWatchDog function in the application program or else it will cause an IBS system reset Under Windows the use of the watchdog for host monitoring is not recommended It is not ensured that your program allows watchdog triggering within the predefined time An example You are shifting the frame of a window with your mouse As long as you are holding the frame of the window with your mouse your program will not continue to run 5 5 3 Coprocessor Board Watchdog The coprocessor board can also be monitored by its own watchdog circuit The function and operation of the watchdog is identical with the PC monitoring watchdog with the exception of the reset
28. 24 0002 IP CDI 1 24 90000 IP CDO 1 24 50004 IP CDI 1 24 SOOOC IBS 24 BK I O T 50006 IBS 24 DI 32 0014 IBS AI 3 Li PH NIX 6 21 CONTACT onlinecomponents com InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS InterBus S specific Programming Controller board IBSST IBST24 IBST24 IBST 24 IB ST 24 24 BK T DI 16 4 AO 4 SF DO 16 3 PT 100 4 4 IBS IP DIO 1 24 IBS IP CBK 1 24 IBS IP CDI 1 24 F IBS IP CDO 1 24 F IBS IP CDI 1 24 F 10 NEN IIS IBS Al3 OO MTT TAWA IBS DI 32 5036A705 Figure 6 11 Input addresses under logical addressing 6 22 PHCENIX 5036C CONTACT onlinecomponents com THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HER dl SY E a WM Assignment of the Logical Input Addresses Input word 18 0024 hex Input word 17 0022 hex Input word 16 0020 me Input word 15 001E Input word 14 001C Input word 13 001A Input word 12 0018 ex Input word 11 0016 noz Input word 10 0014 nox Input word 9 ooo 0012 hex Input word 8 IS 0010 nex Input word 7 000E ex Input word 6 000C ex Input word 5 000A Input word 4 0008 nex Input word 3 0006 nex Input word 2 0004 hex
29. 35 Figure 3 2 Pin arrangement in the COP connector shell 3 7 Figure 3 3 Development cable forthe COP386 3 8 Figure 3 4 SRAM segmentation on the COP386 of the IBS PC CB COP A T 3 11 Figure 3 5 The MPM as the central interface 39 13 Section 4 Figure 4 1 DIP switches for setting the I O address 48 Figure 4 2 Switches for setting the board number board no 4 4 Figure 4 3 IBS control switches 4 6 Figure 4 4 Switch for the startup behavior IBS Autostart 4 7 Figure 4 5 Switch setting for the program start from the EPROM 48 Figure 4 6 Switch for boot disk selection 48 Figure 4 7 Switch for setting the RESERVER boot behavior 410 Figure 4 8 Switch for setting the DPCON boot behavior 4 11 Figure 4 9 Switch for setting the data transmission path terminal mode 4 12 Figure 4 10 Jumpers for controller board parameterization 4 13 5036C PHONIX B 3 CONTACT CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRON COMPONENTS Appendix B Figure 4 11 Position of the connector for the battery pack 4 15 Figure 4 12 Example of entries in the IBSPCCB INI file 4 21 Figure 4 13 Main menu of the monitor program 424 Figure 4 14 The Functions pull down menu of the monitor program 4 25 Figure 4 15 Monitor mask of the monitor program 426 Figure 4
30. 6 Figure 6 7 Figure 6 8 Figure 6 9 Figure 6 10 Figure 6 11 Figure 6 12 Figure 6 13 Figure 6 14 Figure 6 15 Figure 6 16 Figure 6 17 Figure 6 18 Figure 6 19 Figure 6 20 Figure 7 1 Figure 7 2 Figure 7 3 Figure 8 1 Figure 8 2 Figure 8 3 THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww The start addresses of the modules are in bold type Output addresses under physical addressing Check_Physical_ Configuration Request command format Receive Local Bus Code Map Request command format Numbering of the bus segments under logical addressing Receive Logical IN Address Map Request command format Input addresses under logical addressing Input addresses in the memory map IN buffer The start addresses of the modules are in bold type Receive Logical OUT Address militia ie command format i Output addresses under logical addressing Output addresses in the memory map OUT buffer The start addresses of the modules are in bold type Receive Group Numbers Request command format Division into logical functional groups Switch Group Off Request format The Switch Group On Request command format Define Group Error Characteristics Request command format Diagnostic Indicators on the PC board holder LED diagnostics on bus terminal modules LED diagnostics on I O modules Quick response through process data linkage Pulse diagram for process data linkage Numbering of
31. Address Error O02By The Send Log Address Error Request command 005Fhex creates a message with detailed information on the cause of the error PHOENIX 6 27 CONTACT nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS InterBus S specific Programming only be used when the bus is in the stop state If necessary call the The Implement All Logical Address Maps Request 0040hex command may Alarm Stop Request 004Ahex command before calling this command 6 3 5 Command Sequence for Startup Under Logical Addressing Table 6 6 Command sequence for startup under logical addressing Place outputs in safe state Alarmstop_ Request 004Ahex stop data transfer on the bus Clear register for diagnostic Clear Display Request 004Ehex bits Configure bus system Configure BUS Request 0023hex Check configuration Check Physical Configuration Request 0058hex Number bus segments Receive Logical Local Bus Address Map Request 0069hex Check validity of assignment Implement All Logical Address Maps Request 0040hex lists ist ists ist ists Start of data cycles Start BUS Cycle Request 0001 ex Section 8 describes the commands in detail It is recommended to call the mplement All Logical Address Maps Request 0040 2x once more after every transfer of address lists e g the commands 0069hex DOSAnex 003Bhex to be able to determine exactly in the event of an error which address list is faulty 6 28 PHCENIX 5036C
32. CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS EEE S S awww ww Group Definition 6 4 Group Definition 6 4 1 Creating Functional Groups When for example certain system parts are to be disabled while other system parts are to keep running combine bus segments into functional groups before In the following individual groups can be disabled or enabled by executing the InterBus S commands Switch Group Off Request 0021hex and Switch Group On Request 0020 The IBS command Receive Group Numbers Request 0049hex creates groups Assign a group number of between 0 and 255 to each bus segment Word 1 Word 2 Word 3 for 1st bus segm Word 4 for 1st bus segm Word 5 for 2nd bus segm Word 6 for 2nd bus segm Word n 1 for xth bus segm Word n 2 for xth bus segm Bit Figure 6 16 Receive_Group_Numbers_Request command format Key Code Command code here 0049hex Parameter count Number of subsequent words here number of bus seg ments multiplied by 2 Bus segment number Number of the bus segment that is assigned to the group specified in the next line Group Number of the group to which the bus segment specified in the previous line is assigned 0 to 255dec corresponding to 00hex to FFhex Is Enter only IBS devices which are on the main line of the bus configuration RB level 0 Devices in the remote bus branch line RB level 1 are included in the group definition by assigning the bus terminal module opening t
33. Configuration Map Request 0058hex command the configu ration and transferred to the controller board and the currently connected bus configuration are not identical Check the ID code list for the number of parameters identical orders of ID codes and modules and the positions of the registers and special ID codes The message consists only of one word the message code 0068hax No furt her parameters follow PHOENIX ee CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S ER awww ww Configuration Messages Unknown_Bus_Module_Confirmation005B Meaning An invalid length code was specified in the Check_Physical_Configuration 0058hex command an invalid number of process data items was specified the first module is no module with BK module functionality Remedy Check the parameterization list of the ID codes for invalid ID codes and non exi stent length codes and the number of process data The bus goes without Reset into the STOP state The output data is not reset The bus data cycle can only be reinitialized by the Warmstart_ Request com mand 004Chex or the reset button syntax The message consists only of one word the message code 005B No furt her parameters follow Physical_Configuration_Map_Valid_Confirmation00AB Meaning The bus configuration transferred to the controller board with the Receive _Physical_Configuration_Map Request command is not identical with the current
34. Device name Name of a device to which a data channel is to be opened The name identifies the IBS controller board board number 1 to 4 and the MPM user there host IBS master board or coprocessor board See also the descriptions for the functions DDL_DevOpenNode and DDI_DevCloseNode See also the descriptions of the functions DDI_DevOpenNode and E DDI DevCloseNode in the driver software manual IBS PC CB SWD UM E For a simplified handling a string allocating the board number and the MPM user for opening any of the available data channels is available for the device name parameter 9 10 PHOENIX ee CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Management of Data Channels Table 5 2 Opening a data channel from the host to the IBS master board iacaa Mailbox interface IBB1N1_M Data interface IBB1N1_D Mailbox interface IB B2N1_M Board2 i master board Data interface iB B BB4NI Table 5 3 Opening a data channel from the host to the coprocessor board for IBS PC CB COP I T and IBS PC CB RTX486 I T Coprocessor board Table 5 4 Opening a data channel from the coprocessor board to the host for IBS PC CB COP I T and IBS PC CB RTX486 I T Controller board 1 to Host Mailbox interface IBB1NO M controller board 4 Data interface IBB1NO D Table 5 5 Opening a data channel from the coprocessor board to the IBS master board for IBS PC CB COP I T and IBS PC CB RTX486 T Controlle
35. Host eh ee ee ee eG mn Ol 2 4 2 Multi Port Memory 2 14 2 4 2 1 MPM Access Method 2 14 2 4 3 Interrupt Functions oa wb st oe e we 4 eo 2 4 4 Voltage Monitoring Reset System o 2 15 2 4 5 Watchdog for Monitoring the Host PO 2 15 2 4 6 Power Supply toe ew ww wee 2 16 2 4 6 1 Electrically Isolated IBS Power Supply Loe ee ew ee ee 2 16 3 Technical Description of the Coprocessor Boards 393 3 1 Short Description 2 2 2 3 3 D2 Mechanical Design eee Pte we wk eo s a OOD 3 3 Coprocessor Board Interfaces 6 3 3 1 Motherboard Interface 2 2 83 6 3 3 2 Serial Interface E ER nn OO 3 4 Coprocessor Board Functional Units Coe ew ew ew we ws 3 8 3 4 1 Processor Chipset 3 8 3 4 1 1 Chipset Components PG To 3 4 1 2 Coprocessor Board I O Address Area che eee kw SS 3 4 1 3 Coprocessor Board Interrupt Assignment 3 10 3 4 2 GCoprocessor Board Memory 39 10 3 4 2 1 EPROM 4 3 10 3 4 2 2 Static RAM 2 see eee 3 11 3 4 2 3 Dynamic RAM 2 39 11 3 43 MPM Interface 39 13 3 4 4 Mapping Register a 3 14 3 45 Coprocessor Board Serial Interface o 3 14 3 4 6 Coprocessor Board Security Units 39 14 3 4 6 1 Coprocessor Board Voltage Monitoring
36. Input word 1 0002 nex Input word 0 0000 ie 5036A715 Figure 6 12 Input addresses in the memory map IN buffer The start addresses of the modules are in bold type 5036C PHCENIX 6 23 CONTACT nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS InterBus S specific Programming 6 3 4 2 Assignment of the Logical Output Addresses The IBS command Receive Logical OUT Address Map Request 003Bhex transfers the list of logical output addresses to the controller board Word 1 Word 2 Word 3 Word 4 Word n 2 Bit Figure 6 13 Receive Logical OUT Address Map Request command format Key Code Command code here 003Bhex Parameter count Number of subsequent words here number of devices Output address Enter here 10 bits the desired address as byte address for all modules with process output data With modules with more than one process output word e g with 32 bits the next higher addresses are automatically also assigned DC Enter here the data consistency for the process data ac cess The data consistency ensures that the specified data width is from one IBS cycle The default value for I O modules is 16 bits 00 For IBS devices requiring the coherent transmission of greater data widths the data consistency has to be increased Such devices are for example encoders operator interfaces or analog modules with a resolution of more than 16 bits The fol lowing values are permissible for
37. PC AT board PC card holder 338 5 mm 114 3 mm Approx 340 g Approx 500 g Approx 500 g 62 and 36 pos edge connector 4 Kbytes 8 bytes One Up to four per host 5 V DC 5 100 mvpp typlcally 1 2 A typically 1 5A typically 1 5 A 6 V 1350 mAh e g Varta 2 CR 2 3 AA A 3 InterBus S Technical Appendix A 4 InterBus S IBS master board Remote bus connection Interface Connector Transmission rate Max number of IBS devices Max number of remote bus devices Max number of bus segments Max number of process data words Max number of PCP devices Diagnostic and parameterization interface Protocol Connector THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS MA5 board 2 wire remote bus SUB D9 female 500 Kbits s 320 256 256 256 256 RS 232C compatible Subminiature D9 male connector COP 386 IBS PC CB COP I T coprocessor board Operating system Dimensions Processor Clock frequency Chipset Main memory EPROM 1 EPROM 2 Power supply Serial interface Interface chip TDOS 78 74 x 113 03 mm 80386 SX 25 MHz Chips amp Technologies 82C836 2 Mbyte DRAM 128 kbyte CMOS RAM battery backed up 128 kbytes Not fitted 5 V 15 typ 380 mA COM1 9 pos UART NS 16C450 COP 486 IBS PC CB RTX486 I T coprocessor board Operating system Dimensions Processor Clock frequency Chipset Main memory Flash EPROM 1
38. Table 9 3 Meaning of the error number parameter Meaning A OT hey All memory occupied No further instructions can be accepted The parameter number parameter is in this case O Unknown instruction code O3hex Not enough parameters with one of the last instructions In this case the parameter number parameter is 0 No free internal RAM The logical output address does not exist The logical input address does not exist 08hex Invalid bit number A bit number greater than 15 for words or greater than 7 for bytes was specified ee PHOENIX 9 33 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Messages of the IBS Master Board Meaning syntax Meaning syntax Meaning syntax Meaning syntax Meaning syntax Meaning syntax Meaning 9 34 9 9 Event Processing Messages Event_Error_Confirmation004Chex An error was detected in the parameter check for programming the event The error may occur with the following commands Receive Event Request 002Ahex Enable Event Number Request 002Bhex Disable Event Number Request 002Chex Enable All Event Request 002D Ensable Event Logical Adress Request 0036 Disable Event Logical Adress Request 00371ex The message consists only of one word the message code 004Chex No furt her parameters follow Quit_Receive_Events_Confirmation00BFoax The Receive Events Request command 002A 2x was execut
39. This bit is reserved for future extensions Set it to O Output address Address of the word with the bit manipulated by the bit manipulation Input address Address of the word with the bit determining the bit ma nipulation Instruction Reset_Out_In10 0006hex This instruction causes a particular bit in the specified output word to be reset when the negative edge of a particular bit in the specified input word is detected Transfer the instruction to the controller board using the command Receive Processing Instructions Request 005Dhex PHOENIX ii CONTACT syntax Word 1 Word 2 Word 3 Bit Key Task syntax Word 1 Word 2 Word 3 Word 4 Word 5 Bit Key 5036C Bit number Res Output address Input address THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS EEE S awww ww Process Data Linkage Commands Instruction code here 0006 Enter here the number of the desired bit Ohex to Fhex corresponds to Oye to 15gec This bit is reserved for future extensions Set it to O Address of the word with the bit which was manipulated by the bit manipulation Address of the word with the bit determining the bit ma nipulation Reset2_Out_In01 Instruction 0007hex This instruction causes a particular bit in the specified output word to be reset when the positive edge of a particular bit in the specified input word is detected Transfer the instruction to the controller board using the com
40. Two functions are available for writing to and reading from the SRAM Their COP386 syntax is similar to that of the data interface functions in the device driver interface gt Up to 64 Kbytes can be transferred per function call When the amount of data you want to transfer is larger call the function twice Enter an offset of 64 Kbytes for the 2nd call The include files and libraries for C and units for Pascal required for the use of the SRAM are described in the driver software manual RAM 64 I BFFFFhex SF B0000 pex 64 SF Figure 5 11 Segmentation of the SRAM SRAM on the On the COP 486 RTXDOS allows to access the SRAM via normal file functions COP486 as drive D 5 4 Communication Between Host and COP The communication between the host and the COP takes place basically in the same way as between the host and the IBS master board or the COP and the IBS master board To open a data channel between host and COP the device name devName specified in Table 5 3 wee PHOENIX 9 13 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Interfaces Between Hardware and Software Word 1 Bit Word 1 Word 2 Word 3 Word4 Word n 2 Parametern Word nu2 Parametern O Bit 5 14 5 4 1 Structure of a Message Between Host and COP The commands and messages for the communication between host and COP are not predefined You can define these commands messages yourself while kee
41. always in the Intel format These two formats use opposite orders of addressing the bytes in a data word For MPM acess use the supplied macros which exchange the high byte and the low byte when accessing the data word see the Driver Software Manual IBS PC CB SWD UM E The MPM contains the mailbox interface MXI for commands and messages and the data interface DTI for process data In addition several hardware registers are mapped to the MPM address area They are used for exchanging status and handshaking information Each node has its own memory areas in the MPM Every node may write to its own area but may only read from the areas of the other nodes 2 4 2 1 MPM Access Method As the nodes can access the MPM completely asynchronously the following access conflicts could occur Simultaneous or overlapping reading to writing from the same memory location Reading from a logically coherent data area by a node while this area is being written to by another node The first type of conflict is prevented by circuitry measures in the MPM access management In the event of simultaneous access the order of priorities is Priority 1 host PC Priority 2 daughterboard 1 IBS master Priority 3 daughterboard 2 coprocessor board When access operations overlap the current access is first completed The second type of conflict is solved by the fact that the number of successive byte accesses per data transfer can be set
42. board COP Only from here can commands e g bus start be issued and the IBS output data be changed Using DIP switch 1 determine whether the IBS master board is to be controlled by the host or by the coprocessor board The IBS input data can in any case be read by the host as well as by the COP When using the IBS PC CB I T without coprocessor board always set switch 1 to ON 5036A515 0000000 Figure 4 3 IBS control switches Table 4 3 Control of the IBS master board by the host or by the COP ON default Host PC OFF Coprocessor board The controller board reads out switch 1 only after a hardware reset After changing the switch setting always carry out a hardware reset to make the change become effective PHCENIX ee CONTACT 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEMOS w AA ww InterBus S Startup Behavior IBS Autostart 4 2 2 InterBus S Startup Behavior IBS Autostart The DIP switch setting defines the InterBus S startup behavior after IBS master board booting If the switch is OFF the IBS data cycles are automatically started if an operable bus configuration has been connected From this moment on wards the controller board transfers data from the MPM to the I O periphery and vice versa 5036A516 Figure 4 4 Switch for the startup behavior IBS Autostart Table 4 4 Definition of the startup behavior ON default No automatic start lf an error oc
43. carried out when the watchdog trips To enable the coprocessor board watchdog call the EnableWatchDog function After enabling the watchdog cannot be disabled by the software it can only be deactivated by a hardware reset The coprocessor board watchdog is permanently set to 125 ms Within this time the the watchdog must be triggered by calling the TriggerWatchDog in the application program or else it will cause a coprocessor board reset The watchdog state can be read out with the GetWatchDogState function Using this function you can when starting the application program determine whether the COP watchdog had triggered a coprocessor board reset The ClearWatchDog function resets the COP watchdog 5 5 4 The SysFail Signal For each node connected to the MPM a separate area is reserved which is used e g for status messages or check back signals One of these status signals is the SysFail system failure signal It is set in the case of a system error of the respective user e g when the watchdog has tripped Using the GetSysFailRegister function you can read out the SysFai signal of any MPM node PHOENIX 9 15 CONTACT InterBus S Interfaces Between Hardware and Software 5 16 3 5 2 O O THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS y SysFail PC Od leass a lt D 3 lt O lt LL 772 gt CD
44. change effective HELP or Information on command line options BOARDNO n selection of the controller board which is to be accessed by the monitor program Valid values for BOARDNO are 1 2 3 or 4 The process data monitor program provides various menu items in three pull down menus General General program functions Functions IBS control and IBS data display functions Options Various program and bus functions IS Press F1 or the key combination ALT H to obtain help for the menu items 4 9 1 The Functions Pull Down Menu Press F1 or ALT F to access the Functions pull down menu It provides functions for InterBus S control and data display General Functions Options Help Process Data IBS Info Commands IBS IBS PCCE Monitor Program Interbus 5 Version 4 788 PHOENIX CONTACT 5036A822 Figure 4 14 The Functions pull down menu of the monitor program Process Data Indicates the input data and sets output data IBS Info Indicates the bus status and bus errors IBS Commands Makes it possible from version 0 70 onwards to issue commands and indicates received messages Process Data Pressing P for Process Data will access the monitor mask 5036C PHGNIX 4 25 CONTACT onlinecomponents com l nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Installation and First Startup PROCESS DATA Help BUS DATA Number of Bus Segments Bus Mode Manual Number of Modules 1 Bus State
45. correct see Section 3 4 6 Installation of the Device Driver 4 parameters are important when the device driver is installed Base address in the I O area of the PC IO address Board number board no Base address of the 4 Kbyte MPM window in the memory area of the PC MPM address Interrupt number The individual parameters have the following meaning Base address in the I O area of the PC I O address This parameter stands for the address under which the controller board is addressed in the I O address area of the PC The PC I O address is set with DIP switches on the controller board see Section 4 1 1 The default value for the PC IO address is 120hex Refer to Section 4 1 1 for notes on alternative I O addresses PHOENIX ii CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S ER w WMA ww Installation of the Device Driver Board number board no The board number specifies for which controller board the device driver is to be loaded The default value is 1 i e if the driver for the controller board no 1 can be set with DIP switches see Section 4 1 2 is to be loaded you do not need to specify this parameter Permissible values for the board number are 1 2 3 and Memory address for the 4 Kbyte MPM window MPM address Access to the Multi Port Memory MPM is from the host PC via a 4 Kbyte MPM in the memory area below 1MB The parameter MPM Address stands for the base address of this MPM wind
46. currently connected bus configuration and to store it in the controller board RAM The ID and length codes are read in for all connected InterBus S devices PHCENIX 6 13 CONTACT nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS InterBus S specific Programming The Configure Bus Request 0023hex command is described in detail in Section 8 Commands for the IBS Master Board IS All previously stored lists addressing group definitions process data linkages and event definitions will be deleted 6 3 2 Checking the Bus Configuration The IBS command Check Physical Configuration Request 0058hex transfers a bus configuration required for the operation to the controller board in the form of length and ID codes The controller board automatically compares the transferred configuration with the configuration stored in the RAM with the Configure BUS Request 0023hex command The Check Physical Configuration Request command 0058hex is described in detail in Section 8 Commands for the IBS Master Board lf the transferred configuration and the stored configuration are not identical the controller board will generate an error message CTRL ERR indicating this con dition Using the Send Log Address Error Request 005Fhex command you can then request a message on error type and error location Word 1 Word 2 Word 3 Word 4 Word 5 Word n 2 Bit Figure 6 7 Check Physical Configuration Request command format Key Code
47. diagnostics Dialog functions allow to operate and display monitor all connec ted IBS devices In addition the open structure of the user interface allows the integration of manufacturer or device specific operating and parameterization functions The individual program functions are Creation of a bus configuration outline for setting up the address assignment between the host and the connected IBS devices Parameterization of complex IBS devices Dialog functions for data output e g setting of outputs and reading as well as displaying current input data monitoring of inputs Diagnostic functions for detecting and locating defective system parts IBS devices line runs power etc Documentation of your IBS system by creating a system description including the parameterized device settings Additional functions are provided by utilities from other IBS device manufactur ers or IBS user groups e g DRIVECOM The user can easily integrate these utilities into the BS CMD SWT user interface Therefore the operating software IBS CMD SWT is an open platform for all IBS device manufacturers which is a clearly arranged tool for configuration mentioning and diagnostics of your InterBus S system under Microsoft Windows Refer to your manual IBS CMD SWT UM E Order No 27 53 95 7 for further E information on BS CMD SWT 7 3 Diagnostics by the Application Program 7 3 1 Diagnostics of Controller Board and Bus Configura
48. execution of one of the following commands is requested Implement All Logical Address Maps Request 0040hex Check Physical Configuration Request 0058hex The command consists only of a single word the command code 005Fhex No further parameters follow Send Log Address Error Confirmation 80F5hex Meaning The result is announced with this message see Section 9 8 4 Operation Commands Start Bus Cycle Request0001hex The command activates the cyclic data traffic on the bus The controller board puts the bus configuration into operation and provides the I O data in the MPM The command consists only of a single word the command code 0001hex No further parameters follow Start Bus Confirmation 0088hex Meaning The system could be started The controller board starts to cyclically read in and set the inputs and outputs pro cess data and possibly PCP mode 5036C PHOENIX CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS EEE S awww ww Operation Commands Comment The Masterboard RUN LED is on Negative acknowledgment Start Bus Not Possible Confirmation 00E3hex Meaning The maximum permissible bus configuration has been exceeded all groups are disabled controller board hardware error Comment The RUN Masterboard LED is not on Negative acknowledgment Bus System Error Indication 0038hex Meaning An error which allows no further bus operation has oc curred Comment The Bus Erro
49. faulty remote bus segments Bus segment number of the 1st faulty remote bus This error number describes the error of the remote bus specified in the previous line see Table 9 2 Bus segment number of the last faulty remote bus This error number describes the error of the remote bus specified in the previous line see Table 9 2 Beginning of the parameter block indicating the bus seg ments with an error in the local bus Number of bus segments with an error in the local bus Bus segment number of the 1st faulty local bus This error number describes the error of the local bus specified in the previous line see Table 9 2 Bus segment number of the last faulty local bus This error number describes the error of the local bus specified in the previous line see Table 9 2 The length of the groups remote bus and local bus parameter blocks depends on the number of errors that have occurred All entries are four digit hexadeci mal PHCENIX 9 27 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Messages of the IBS Master Board Meaning Cause Remedy syntax Word 1 Word 2 Word 3 Bit Key Meaning Cause Remedy syntax Word 1 Word 2 Word 3 Bit Key 9 28 Error type EE04 The bus configuration could not be read in The voltage supply for the electronics logic voltage of one or more remote bus device is disrupted Check the system for voltage dips on the re
50. for device 3 for device n Code Command code here 0058hex Parameter count Number of subsequent words here number of de vices Length code The length code describes the address space require ment of the IBS device in the host ID code Identification code of the IBS device It is printed on the modules as Module ID in decimal notation 0 to 255 gee Corresponds to OOhex to FF hex After using the command reload all address lists group and event definitions The length code for PCP devices contains only the number of process input out put data the data to be used by PCP are not to be specified Example The IBSV 24 module has only one word for PCP and no process input output data Therefore enter a O for the length code of the module BSV 24 Physical Configuration Map Valid Confirmation OOABhex Meaning The desired bus configuration is valid and has been stored in the controller board RAM In addition it matches the currently connected bus configuration Check Configuration Error Confirmation 0068hex Meaning The desired bus configuration is valid and has been stored in the controller board RAM However it does not match the currently connected bus configuration PHOENIX ROTOS CONTACT Negative acknowledgment Task Prerequisite Comment syntax Word 1 Word 2 Word 3 Word 4 Word 5 Word 6 Word n 1 Word n 2 Bit Key 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S aww
51. for shared use The MPM is the only connection between the MPM users IBS PC CB I T IBS PC CB COPII T 5036A414 Figure 5 1 The MPM as the central interface of an IBS controller board Figure 5 1 shows the central position of the MPM The elements within the dashed lines are the hardware incorporated on the IBS controller boards A direct data exchange between the MPM users may only take place via the MPM The MPM has a fixed structure which the user must not change The MPM may only be accessed via the device driver functions Direct reading from or writing to the MPM is not allowed 5 1 1 The MPM in the Host Address Area The MPM is mapped to the address area of the host between 640 KB and 1 MB As the space available there is limited only a memory window with a size of 4 Kbytes is used The device driver shifts this window automatically and fast by means of the IBS controller board addressing logic programming to the currently required address area of the MPM The address of the window in the memory area of the host remains constant PHOENIX 5 3 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Interfaces Between Hardware and Software 5 4 Host MPM 1MB 64KB A AKB 4KB OKB 640KB 16 x 4KB 0 KB 5036C409 Figure 5 2 Shift of the MPM window by the device driver 5 1 2 Organization of the MPM The 64 Kbyte MPM is divided into four user area
52. functions are enabled in the address area from 200hex to 2BFhex according to IBM reserved for the prototype board The address area from 280 he to 2BFhex contains the mapping register a register for controlling controller specific me mory functions including some bits for special functions such as for watchdog control Table 3 4 I O address area of the coprocessor board Area for the COM1 serial interface Unused Watchdog Clear Unused Mapping register Watchdog enable Watchdog trigger Unused DMA controller 2 Interrupt controller 2 Slave DMA page register NMI mask Real time clock System register Timer counter Interrupt controller 1 master DMA controller 1 The base address for the serial interface COM2 is as usual for IBM compatible PCs at the address 03F8hex PHOENIX 3 9 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Technical Description of the Coprocessor Boards 3 10 3 4 1 3 Coprocessor Board Interrupt Assignment The interrupt system is also mainly identical to the usual standard of an IBM PC For the communication with the MPM a so called handshake interrupt is used which has the interrupt number 5 In the event of a system error of another MPM node host PC IBS master a non maskable interrupt NMI is triggered on the coprocessor board When however an error occurs on the coprocessor board an interrupt signal to the other nodes is generated if the watchdog is en
53. furt her parameters follow PHOENIX 9 13 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Messages of the IBS Master Board Meaning syntax Meaning Process data A PCP channel syntax Meaning syntax Meaning Causes syntax 9 14 9 4 Operation Messages Start_Bus_Confirmation0088hex The cyclic data traffic on the bus has been started The controller board opera tes the process data traffic from this moment onwards This means that a pro cess image of the host input data is cyclically generated and that the process output data from the host is transferred cyclically to the modules connected to the bus In addition the controller board operates the Peripherals Communica tion Protocol PCP for modules working with PCP The message consists only of one word the message code 0088hex No furt her parameters follow Stop_Bus_Confirmation00C6hex The Stop Bus Cycle Request 0002 2 command was executed The bus is in the STOP state The cyclic data traffic on the bus has been stopped The existing process data image of the modules connected to the bus is statically retained without being updated The command does not switch the process output data into the safe state reset of the outputs This is only carried out with the Alarm Stop Request command 004Apex The operation of the Peripherals Communication Protocol PCP does not con tinue The established connec
54. map IN buffer The start addresses of the modules are in bold type 6 8 PHOENIX ii CONTACT 5036C onlinecomponents com THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS EEE S ER awww ww Assignment of the Input Addresses by the Controller Board i Controller board IBST24 IBST24 IBST 24 IB ST 24 DI 16 4 AO 4 SF DO 16 3 PT 100 4 4 IBS IP DIO 1 24 IBS IP CBK 1 24 IBS IP CDI 1 24 F IBS IP CDO 1 24 F IBS IP CDI 1 24 F MU a w f AN f N IBS IBS Al 3 w9 IW 10 5036A701 Figure 6 4 Inout addresses under physical addressing PHCENIX 6 9 CONTACT onlinecomponents com nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS InterBus S specific Programming 6 2 1 2 Assignment of the Output Addresses by the Controller Board Table 6 3 Assignment of the output words to the IBS devices Module Outputword OW IBSST24BKT o OoOO O OW 0 OW 4 OW 5 OW 6 OW 7 iestaspite4 3 IBST24A04ISF___ OW0 OWT OW2 OWS a Bsrapoilbg OW TBSsTa4PTi0o o o espoo ows spoek SS wspo S es oo ows wesp SSS ise4BkVOT owz wesa Output word 12 Output word 11 Output word 10 O
55. negative acknowledgment the definitions that were made with this command before and were positively acknowledged remain valid PHCENIX peer CONTACT Task Prerequisite syntax Word 1 Word 2 Word 3 Word 4 Word n 2 Bit Key RS Positive acknowledgment 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S ER awww ww Addressing Commands 8 3 Addressing Commands Receive_Localbus_Code_Map_Request0069hex The command carries out the selectable assignment of the bus segment number to the InterBus S devices with bus terminal module functionality remote bus and installation remote bus devices This is recommended so that the numbering of the bus segments in the existing system does not need to be changed when the system is expanded None Code Command code here 0069 ex Parameter count Number of subsequent words here number of bus seg ments RB level Enter here the RB level Main line RB level One 0000bin Remote bus branch line e g branching off from IBS IP CBk RB level Lex 0001 bin Bus segment number Enter here the desired logical bus segment numbers in the order of their physical arrangement 0 to 255dec COT responds to 00hex to FFhex Every address may be as signed only once The list is only valid after the Implement_Al l Logical Address Maps Request command 0040 2x has been executed successfully Quit Receive Localbus Code Map_Confirmation 0105hex P
56. of the affected bus segment register instead of the error type EE04 Configuration acquisition IBS device does not Check the voltage supply for failure respond dips EEO5 All groups were disabled Error in the application Check the application pro program gram No data cycle possible Module error Locate the error with IBS SYS although no error occurred SWT inform the Phoenix Con in the acquisition and tact Technical Support comparison of the configuration The register for diagnostic parameters too indicates the error types EE01 EE02 EE04 EEO5 and EE06 in the event of an error Instead of an error type the number of the affected bus segment is indicated for the error EEO a The description of the Bus Error Information Indication message 80C4 in section 9 contains further information on the six error types and their meanings causes and remedies ee PHOENIX 7 9 CONTACT InterBus S Error Diagnostics Meaning Remedy Meaning Remedy Meaning Remedy Meaning Remedy Meaning Remedy Meaning Remedy Meaning Remedy Comment 7 10 THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS 7 3 1 2 Meanings of Controller Board Error Numbers Faulty operation of the controller board causes a controller board error number to be generated The Get BSDiagnostic diagnostic function see the driver soft ware manual lets you read out this controller error number The error numbers
57. port memory and therefore in the host The fact that the addresses can be freely selected makes it easier to enable or disable system parts in the bus configuration as you need to change only the address list and not all addresses in your application program when adding or removing IBS devices In addition further system specific assignments are possible For example you can permanently assign the bus segment number to the system part e g a switch cabinet number or combine individual bus segments into groups Proceed as follows 1 Clarify the following In what order are the IBS devices to be logically addressed Which IBS devices are to be assigned which addresses Which IBS devices are to be combined in a group address 2 Create the logical IN address list in accordance with the preliminary conside rations 3 Create the logical OUT address list in accordance with the preliminary considerations 4 If necessary number the bus segments and carry out a group definition 5 The controller board automatically checks the assignment lists for conformance and plausibility when receiving them command Implement_All_Logical_Address_Maps_Request 0040hex When the controller board has stored the assignment lists without errors it can run InterBus S with logical addressing 6 3 1 Determining the Currently Connected Bus Configuration The IBS command Configure Bus Request 0023hex causes the controller board to determine the
58. required for the status register the mapping register and the control ports Using a DIP switch the base address of this address area can be set to one of sixteen possible addresses it must be defined before the controller board start up Take care to avoid address conflicts with other boards of the host PC The base addresses that can be set and the corresponding DIP switch setting on the motherboard are specified in Section 5 The AT bus interface is so designed that four controller boards can share an I O base address of the host PC The four controller boards are then depending on a board number 1 to 4 that can be set with a DIP switch addressed with an offset Of Ohex Shex 10hex and 18hex relative to the base address Section 5 shows the relationship between the board number and the offset to the base address that has been set and the corresponding DIP switch setting 5036C PH NIX 2 13 CONTACT InterBus S Technical Description of the Motherboard 2 14 THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS 2 4 2 Multi Port Memory The Multi Port Memory MPM of the controller boards is used for exchanging data between the host PC and the two daughterboards The MPM is a static RAM SRAM and has a storage capacity of 64 Kbytes Please note the following when accessing the MPM The IBS master board uses the Motorola format 68xxx family when placing its data in the MPM whereas the host processor and the COP processor expect data
59. segment number 0 to 255 gee Corresponds to 00hex to FF hex Location Physical position number in the bus segment selected by the previous word bus terminal modules dedicated remote bus devices and installation remote bus devices 0 Local bus devices 1 to 8 Quit_Module_Error_Ok_Confirmation 00FEhey Meaning The command has been executed successfully Comment The error LEDs on the IBS have also been reset Quit Module Error Not Possible Confirmation 80FFhex PHCENIX ii CONTACT Task Prerequisite Comment syntax Positive acknowledgment Negative acknowledgment Task Prerequisite syntax Word 1 Word 2 Word 3 Bit Key Positive acknowledgment Neg acknowl 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS SEE S awww ww Error Handling Commands Quit Module Error All Request0065 This command acknowledges the module error messages of all IBS devices with indication hold feature in the currently accessible bus configuration Module error auf IBS devices with indication hold feature The error LEDs on the IBS devices are also cleared The command consists only of a single word the command code 0065 No further parameters follow Quit_Module_Error_Ok_Confirmation OOFEnex Meaning The command has been executed successfully Quit Module Error Not Possible Confirmation 80FFhex Meaning The module error message was not acknowledged for all access
60. spefically resets the individual co processor board components such as the processor the serial interface and the mapping register 3 4 6 3 Coprocessor Board Watchdog The watchdog is used to monitor whether the application program operates problem free After the watchdog has been enabled it must be triggered at regular invervals If this trigger pulse fails to be issued for 125 ms the coprocessor board carries out a restart After successful booting of the system 3 14 PHGNIX 5036C CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Coprocessor Board Real time Clock the user can determine the watchdog status by means of a function The tripping of the coprocessor watchdog is indicated to other devices of the IBS system via an interrupt line The watchdog status is reset when the host PC is switched off or when the respective function is called The start of the watchdog and the triggering are also carried out by functions The trigger time Is invariably 125 ms After a system reset the monitoring circuit is always disabled Once it has been enabled a watchdog cannot be disabled by the software Watchdog control functions EnableWatchDog Watchdog enabling TriggerWatchDog Watchdog triggering GetWatchDogState Watchdog status bit inquiry ClearWatchDog Watchdog status bit resest The driver software manual BS PC CB SWD UM E describes these functions in detail 3 4 7 Coprocessor Board Real t
61. the data consistency 00bin 16 bits standard 01bin 32 bits e g encoders operator interfaces 10bin 8 bits only for modules with a length code of 81hex to which byte accesses are to be made 11pi 48 bits e g encoders operator interfaces Enter 0000hex for all modules without process output data e g dedicated bus terminal modules or dedicated input modules Place the start addresses of IBS devices with an address area of 16 bits or mo re only at even addresses The list will only be valid after a successful execution of the Implement_All_Logical_Address_Maps_Request 0040 command a amp 6 24 PHGNIX 5036C CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HENAO awww ww Assignment of the Logical Output Addresses Buffer in the programming language C KK KK KKK KK KKK KK I KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK RARA RARAS Receive Logical OUT Address Map Request Fr to implement all out addresses oy KKK KK KKK KKK KK KK KK KK KK KK KK AAA USIGN16 out_adr_map 0x003B Command Code 0x000D Parameter Count 0x0000 IBS ST 24 BK T 0x0000 IB ST 24 DI 16 4 0x0014 IB ST 24 AO 4 SF Ox0000 1B ST 24 DO 16 3 0x0000 IBS PT 100 0x0004 IBS IP DIO 1 24 0x0000 IBS IP CBK 1 24 0x0000 IBS IP CDI 1 24 0x0002 IBS IP CDO 1 24 0x0000 IBS IP CDI 1 24 0x0006 IBS 24 BK I O T 0x0000 IBS 24 DI 32 USQULC gt JJTBS AL 2 Buffer in the programming
62. the system is in operation as it will delete all de finitions and lists stored on the controller board All definitions and lists stored on the controller board before will be deleted Logical address lists Group definition Process data linkage Event definition The configuration keeps the controller board busy for a certain time This blocks a new command execution sequence for a certain period of time after the posi tive acknowledgment has been sent The time period depends on the bus length The commands consists only of one word the command code 0023 pex No further parameters follow Quit Configure Bus Confirmation 00CApex Bus System Error Indication 0038ha Meaning An error that allows no further operation has occurred Comment The Bus Error Information Indication 80C4hex mes sage gives a detailed description of the error Send_Physical_Configuration_Request005Eh ex This command reads out the bus configuration that is stored as the initial configuration in the controller board RAM in the form of length and ID codes This configuration has been stored there by the execution of the Configure Bus Request command 0023hex or by the Check Physical Configuration command 0058hex lf the currently connected bus configuration is to be read out execute the Configure Bus Request command 0023hex before calling the Send Physical Configuration Request command The command consists only of a single word th
63. variably The MPM control logic provides data consistencies of 8 16 32 and 48 bits The MPM access management inhibits MPM accesses by the other nodes until the last byte access of a data transfer has been completed In the event of an access conflict in the MPM a node is stopped by a ready signal until the other node has completed its access The access by a node is not completed before it has fetched all data bytes according to the data consistency setting Byte access by one MPM data transfer must be carried out in direct Succession as the MPM control logic cancels the MPM access inhibition feature after a certain time timeout The driver software functions automatically allow for this so you do not need to take any special precautions PHOENIX ROTOS CONTACT 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE G R awww ww Interrupt Functions in your application program 2 4 3 Interrupt Functions Access methods with different access protocols are defined between the MPM nodes The MPM hardware supports the protocols with handshake interrupts IN addition each node interface has an interrupt line indicating the system failure of one of the nodes Both daughterboards can interrupt the host PC by means of the host interrupt 2 4 4 Voltage Monitoring Reset System The reliable operation of the IBS controller board requires a sufficient operating voltage supply 5V via the AT bus When the supply falls short of the mini
64. with module errors are to be searched for Local_Bus_Module_Error_Confirmation 80EE ay Meaning A list with positions and ID codes of all modules where a module error has occurred The position is the physical location number in the specified local bus see also Sec tion 9 Bus terminal modules 0 Local bus devices 1 to 8 No Map Entry Confirmation 00EDhex Meaning No module errors were found in the specified local bus PHCENIX 8 21 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Commands for the IBS Master Board Task Prerequisite syntax Word 1 Word 2 Word 3 Word 4 Word 5 Word 6 Word n 1 Word n 2 Bit Key Positive acknowledgment Negative acknowledgment 8 22 Quit_Module_Error_Request0064 IBS devices with indication hold feature indicate a module error also after it has been corrected Therefore the error message must be acknowledged The com mand acknowledges the module errors of the specified IBS devices Specify the bus segment number and the location in the local bus for each IBS device to be acknowledged Module errors on an IBS device with indication hold feature Device 1 Device 1 Device 2 Device 2 Device x Device x Code Command code here 0064 Parameter count Number of subsequent words here number x of de vices for which a module error message is to be acknow ledged multiplied by 2 Bus segment Logical bus
65. your program the command sent last for a wrong number of parame ters Syntax The message consists only of one word the message code 004B No furt her parameters follow 5036C PHCENIX 9 17 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Messages of the IBS Master Board Meaning Remedy syntax Meaning Remedy syntax Meaning Remedy syntax 9 18 IPMS_No_Error_Indication004D The IPMS protocol chip detected a bus error but no bit has been set in the IPMS error register Please consult Phoenix Contact Carry out a reset on the controller board The message consists only of one word the message code 004Dphex No furt her parameters follow Communication_Invalid_Indication004E The controller board uses a fixed memory area for the command processing When these resources are exhausted this error message is generated This may be the case for example when a greater number of commands is issued within a short time and the controller board is unable to execute them fast enou gh Check your program The message consists only of one word the message code 004Ehex No furt her parameters follow BK_Alarm_Failed_Confirmation005Ahex One of the following commands was not executed successfully Set BK Alarm Logical Request 0024 ax Reset BK Alarm Logical Request 0025hex Set BK Alarm Physical Request 0026hax Reset BK Alarm Physical Reque
66. 000 0000 8000 Syntax Word 1 Word 2 Word 3 Bit Key Code Message code here 8099hex Parameter count Number of subsequent words here 1 All Events IDs of all events that occurred in a data cycle bit encoded This word is generated by bit by bit ORing of the event IDs of all occurred events gt lf the data of the time when the event occurred is required by the host by further event processing evaluate an event message which supplies also the data word Event_Data_Indication 809B Otherwise it is not ensured that the data is of the same time as the event 9 36 PHCENIX eee CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS EEE S ER awww ww Event Processing Messages Event_Data_Indication809Bhex Meaning This message indicates all events that occurred during a data cycle The event ID and the data word of the input module where the event was initiated are trans ferred as parameters The event ID must habe been defined in advance Syntax Word 1 Word 2 Word 3 for 1st event Word 4 for xth event Word n 2 Bit a O 0 Key Code Message code here 809Bhex Parameter count Number of subsequent words here number of events multiplied by 2 Event ID IDs of the events that occurred in a data cycle bit encoded Data word Data word of the input module where the event specified in the line before was initiated Quit_Read_Event_Counter_Confirmation811Dphex Meaning This message is the positive or
67. 1 Peripherals Communication Protocol PCP separate copy also included in the system binder Configuration manual for IBS systems IBS SYS PRO UME 275100 1 Installation manual for IBS components IBS SYS INST UME 2 7 54 80 4 Data sheets on new digital and analog I O modules 5036C PHCENIX 1 7 CONTACT onlinecomponents com nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Introduction and Overview 1 4 Modular Design of the Controller Board P AAA 1 5036B202 Figure 1 1 Modular design of the controller board The controller boards IBS PC CB I T IBS PC CB COP I T and IBS PC CB RTX486 I T have modular designs and consist of the following com ponents 1 Motherboard 2 IBS master board MA 3 Coprocessor board COP386 or COP486 Only the controller boards IBS PC CB COP I T and IBS PC CB RTX486 I T have coprocessor boards On the controller board IBS PC CB I T it cannot be retrofitted as the motherboard does not provide the required interfaces and the voltage supply The following sections describe the controller board in detail 1 8 PHOENIX ii CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Section 2 Technical Description of the Motherboard This section provides information on the structure and the components of the motherboard 2 Technical Description of the Motherboard 5 5 2 2 23 2 1 Short Description 4 7 2 2 28 2 2 Mechanical Des
68. 2 Error number The individual system errors are encoded as error num bers in word 4 The following table lists all possible error numbers with a short description of the error Table 9 2 Meaning of the error number parameter Error number DDO1hex An ID code stored in the controller board RAM does not match the associated bus terminal module in the system e g due to module exchange or device error DDO2hex An ID code stored in the controller board RAM does not match the associated I O bus terminal module in the system e g owing to module exchange or device error DDO3hex A specified local bus does not exist in the system or a local bus cable is defec tive DDO4hex A local bus has more devices than expected as for example a device was added while the bus was in operation DDOSnex A local bus has fewer devices than expected as for example a device was removed while the bus was in operation DD06hex An ID code stored in the controller board RAM does not match a local bus device in the system e g owing to module exchange or device error DDO7Zhex The configuration could not be read in as the remote bus cable is not connected to the controller board DDO8hex A local bus which is not stored in the controller board RAM is connected to a bus terminal module with I O functionality as for example local bus devices were added while the bus was in operation 9 24 PHGNIX 5036C CONTACT THE ONLINE DISTRIBUTOR OF EL
69. 2 Function of the LEDs 2 LEDs Figure 2 2 per daughterboard are provided on the front plate PC board holder They indicate the Ready and Aun states IBS master board MA READY After switching on the IBS master board carried out a boot check for all functional units including MPM and is ready MA RUN The IBS master board has started InterBus S ID or data cycles are being transmitted Coprocessor board not IBS PC CB I T COP RUN The coprocess board operating system has booted an applicati on program can be started COP READY A program is running on the coprocessor board gt Coprocessor board booting Is followed by the automatic start of various utilities some of which remain as TSR programs in the COP memory Therefore the COP READY LED is lit when system startup has been completed For convenient observation while the PC housing is open for startup the LEDs are provided once more at the board edge opposite the AT bus There are two 8 way DIP switches at the top edge of the controller board for the setting of the I O board address and the board number and for the power up configuration They are easy to operate even in the built in condition I The settings of the DIP switches are only read in when the controller board boots After the setting has been changed the controller board must be reset to make the change effective 5036C PHCENIX 2 7 CONTACT l nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENT
70. 2Anex Command Code Command code here 002Chex Parameter count Number of subsequent words here 1 Event ID Enter here the ID of the event definition which you want to disable Quit Disable Event Number Confirmation 00DApex Meaning The event definition has been disabled Event Error Confirmation 004Chex Meaning The specified event definition remains in the previous state The specified event definition is in the area of a disab led group Enable Event Logical Address Request00361ex The command enables the event definition for the input module specified via the logical address The event definitions must be available and must be valid Receive Events Request command 002Ahex A JU ret LE Code Parameter count Input address Command code here 0036hex Number of subsequent words here 1 Enter here according to the addressing mode used the logical or physical address 10 bits of the input word for which you want to enable the event definition Use even PHOENIX 8 41 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Commands for the IBS Master Board Positive acknowledgment Negative acknowledgment Task Prerequisite syntax Word 1 Word 2 Word 3 Bit Key Positive acknowledgment Negative acknowledgment 8 42 byte addresses such as those used when the logical addresses are assigned with the commands Receive_Logical_IN_Address_
71. 4 16 I O address area of the coprocessor board 3 9 IBS Autostart 4 7 IBS CMD SWT 7 7 IBS Control 4 6 IBS master board 2 4 IBS SYS SWT 7 6 ID code 6 3 Initial configuration 8 6 Diagnostics on bus terminal modules 7 4 Interrupt OS 2 4 23 5036C PHONIX B 9 CONTACT InterBus S Document Appendix Interrupt assignment of the COP 3 10 L LED 2 7 Length code 6 3 Logical addressing 6 13 Logical input addresses 6 20 Logical output addresses 6 24 Mailbox interface MXI 5 12 Mapping register 3 12 Mapping window 3 12 Messages 9 3 Microsoft Windows 4 20 MONI BAT 1 3 Monitor program 4 23 4 24 7 6 Motherboard 2 4 MPM access management 2 14 MPM address 4 17 MPM users 5 3 MPM address offset 5 5 MPM relative address 5 5 MPM Relative Adresse 5 5 MS DOS 4 18 Multi port memory 5 3 N Node 5 10 Node area 5 4 Node handle 5 10 O Offset constants 5 6 P Parameter count 5 14 PC board holder 2 6 PC HW RESET 4 14 PCCBMONI 4 24 Physical addressing 6 7 Position in the local bus 8 21 9 30 Power supply 4 13 Process data linkage 8 28 B 10 THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS R Real time clock of the COP 3 15 Remote bus cable 2 11 Remote bus connector 2 12 Remote bus interface 2 4 2 11 Remote debugging 3 14 Reset button 2 5 2 15 4 14 RESET Enable Disable 4 14 Reset system of the COP 3 14 RFSERVER 4 10 RFSERVER EXE 3 4 S Serial interface COP 4 16 SHADOW RAM 4 20 S
72. 6 33 6 4 4 Defining the Handling of Groups in the Event of Errors 6 33 7 Error Diagnostics 2 eee eee eee er 8 fal Hardware Diagnostics cen e ea lt 7 1 1 Diagnostic Indicators on the Controller Board A eo 7 1 2 Diagnostic Indicators on Bus Terminal Modules 7 4 7 1 3 Diagnostic Indicators on IBS Devices with I O Functions 7 4 7 1 4 Diagnostics of IBS Devices from Other Manufacturers 7 5 Te Diagnostics with Software Tools 7 6 7 2 1 The Process Data Monitor Program 7 6 7 2 2 The Diagnostic and Configuration Software IBS SYS SWT o 7 6 7 23 The InterBus Manager IBS CMD SWT 7 7 r s Diagnostics by the Application Program o 7 7 r s Diagnostics of Controller Board and Bus Configuration 7 7 7 3 1 1 Error Type sm 8 c a o 1 9 7 3 1 2 Meanings of Controller Board Error Numbers sm e t amp amp 1 10 wees PHCENIX CONTACT InterBus S Table of Contents 8 9 A B Commands for the IBS Master Board Format of a Command Description Configuration Commands Addressing Commands Operation Commands Error Handling Commands Application Interface Commands system Check Commands Process Data Linkage Commands Event Processing Commands Messages of the IBS Master Board Technical Appendix A 1 Document Appendix B 1 B 2 B 3 Format of a Message Description Configuration Messages Addressing Messages
73. COP real time clock PHCENIX 2 9 CONTACT l nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Technical Description of the Motherboard Front plate layout The front plate PC board holder is equipped with two 9 position subminiature D connectors for the I O interfaces of the IBS master board Control elements are four function LEDs and a reset button located behind the board holder Underneath the subminiature D connector there is a round pin with internal thread which can be used for controller board grounding PE Figure 2 3 shows the locations of the components on the PC board holder 2 1 2 1 4 3 O O KR o 2 gt g 6 i 6 Ji 3 0 O a O o 7 O 7 N 7 O y E O x O O xl O 6 Cn 5 2 P O 2 3 0 i 8 i 8 p PE o PE IBS PC CB COP I T IBS PC CB I T IBS PC CB RTX486 I T 5036C501 Figure 2 2 Elements on the PC board holder 1 External LED MA READY master board ready green 2 External LED MA RUN InterBus started green 3 External LED COP READY coprocessor board ready green 4 External LED COP RUN coprocessor board active green 5 External reset button 6 IBS diagnostic interface 9 position subminiature male connector RS232 level 7 IBS remote bus interface 9 position subminiature D female connector 8 Ground pin A Ground the controller board with the ground pin 2 6 PHOENIX eee CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S ER awww ww Function of the LEDs 2 2
74. CTRONIC COMPONENTS Commands for the IBS Master Board Negative acknowledgment Task Comment syntax Task syntax Word 1 Word 2 Word 3 Bit Key Task 8 32 Processing Instructions Error_Confirmation 80F3 Meaning The parameters are faulty The sent list is not accepted see Section 9 Clear All Processing Instructions Instruction 0000 This instruction deletes all instructions in the controller board RAM Set the in struction to the beginning of an instruction list to be transferred if the instruction list is to overwrite the instructions that were stored in the RAM before If you lea ve out the Clear Instruction List instruction the newly transferred instructions will be added to the already stored ones Transfer the instruction to the controller board using the command Receive Processing Instructions Request 005Dhex The instruction consists only of a single word the instruction code 0006hex No further parameters follow Reset_Out_In01 Instruction 0005 hex This instruction causes a particular bit in the specified output word to be reset when the positive edge of a particular bit in the specified input word is detected Transfer the instruction to the controller board using the command Receive Processing Instructions Request 005Dhex Code Instruction code here 0005 nx Bit number Enter here the number of the desired bit Oye to Fhex corresponds to Oye to 15gec Res
75. E DISTRIBUTOR OF ELECTRONIC COMPONENTS 6 3 4 1 Assignment of the Logical Input Addresses The IBS command Receive_Logical_IN_Address_Map_Request 003Ahex transfers the list of logical input addresses to the controller board Figure 6 10 Receive_Logical_IN_Address_Map_Request command format Key Code Command code here 003Ahex Parameter count Number of subsequent words here number of devices Input address Enter here 10 bits the desired address as byte address for all modules with process input data With modules with more than one process input word e g with 32 bits the next higher addresses are automatically also assigned DC Enter here the data consistency for the process data ac cess The data consistency ensures that the specified data width is from one IBS cycle The default value for I O modules is 16 bits 00 For IBS devices requiring the coherent transmission of greater data widths the data consistency has to be increased Such devices are for example encoders operator interfaces or analog modules with a resolution of more than 16 bits The fol lowing values are permissible for the data consistency 00bin 16 bits standard Obin 32 bits e g encoders operator interfaces 10bin 8 bits only for modules with a length code of 81hex to which byte accesses are to be made 11pi 48 bits e g encoders operator interfaces Enter 0000 e for all modules without process input data e g dedic
76. E ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Technical Description of the Coprocessor Boards ditional 384 Kbytes of flash EPROM 128 Kbytes in flash EPROM 1 and 256 Kbytes in flash EPROM 2 are available for long term storage of information or programs The flash EPROM contains also the operating system T DOS of the coprocessor board The coprocessor board operating system also is in flash EPROM 1 The coprocessor board incorporates a quartz controlled real time clock PC compatible for time dependent control of machines via InterBus S To ensure a high degree of data integrity in industrial applications the coproces sor boards feature a sophisticated watchdog and reset circuitry It enables the user to detect system errors at an early stage and to shut down equipment if ne cessary After the protective mechanism has been enabled the coprocessor boards are able to restart the application program by themselves The interrupt control feature on the coprocessor board informs other MPM nodes host PC IBS master about any functional errors Two LEDs on the front plate of the motherboard provide visual information on the status of the coprocessor board The TDOS and RTXDOS operating systems DOS compatible provide a soft ware basis which is specially adapted to the requirements of the coprocessor boards This makes it possible to implement existing DOS applications on the coprocessor board For real time applications additional rea
77. E ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Error Handling Messages CPU Bus Error Indication002316x Meaning The watchdog has tripped Remedy Please consult Phoenix Contact Syntax The message consists only of one word the message code 0023h8x No furt her parameters follow Bus_System_Error_Indication0038h ex Meaning An error causing the system to be no longer operable with the last configuration has occurred The controller board immediately indicates the error Then a test routine locating the error in the system is automatically executed On termination of this test routine a detalied error message is provided with the Bus_Error_Information_Indication message 80C4hex The error is issued only as a message No data cycle is run while the error is being located syntax The message consists only of one word the message code 0038hex No furt her parameters follow No_Executable_Configuration_Confirmation004Aex Meaning A non existent configuration was sent to the controller board Remedy Check the connection of the remote bus cable and carry out a reset on the con troller board syntax The message consists only of one word the message code 004A No furt her parameters follow Command_Parameter_Error_Confirmation004B Meaning The number of parameters for the command directly preceding this message is too great or too small N The command execution is aborted Remedy Check in
78. ECTRONIC COMPONENTS HEE S awww ww Error Handling Messages Table 9 2 Meaning of the error number parameter The connected configuration is shorter than expected as the remote bus was shortened compared with the configuration stored in the controller board RAM remote bus device removed or remote bus cable not connected DDO9hex DDOA pex Multiple transmission errors between 2 error free data cycles corresponds to error type EEO06 No error was found in the configuration during acquisition and comparison of the bus configuration DDOBhex The connected configuration is longer than expected as the remote bus has been expanded compared with the configuration stored in the controller board RAM The maximum permissible configuration has been exceeded Up to 256 bus ter minal modules and 256 words total of all register lengths and PCP words are permissible on the data ring DDOChex DD11hex The data register of a remote bus device has been interrupted A length code stored in the controller board RAM does not match the associated remote bus device in the system e g owing to module exchange or device error DD12hex The data register of a local bus device has been interrupted A length code stored in the controller board RAM does not match the associated local bus device in the system e g due to module exchange or device error DDIS ix Short time change of an ID code in operation with a specified bus terminal
79. ENIX 2 15 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Technical Description of the Motherboard 2 16 2 4 6 Power Supply The controller board is supplied with power from the 5V system voltage of the PC via the edge connectors With certain flash EPROM types on the coprocessor board the 12V supply of the AT bus is required for programming the flash EPROMs current consumption approx 40mA 2 4 6 1 Electrically Isolated IBS Power Supply The driver components require an isolated power supply for the electrically isolated operation of InterBus S The motherboard is equipped with a DC DC converter which generates this voltage from the 5V system voltage of the PC It provides an output voltage of 5 V at a maximum current of 200mA which is Capacitively coupled to PE for reasons of noise elimination Ground the controller board via the ground pin Figure 2 2 PHCENIX peer CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Section 3 Technical Description of the Coprocessor Boards Only for IBS PC CB COP I T and IBS PC CB RTX486 I T This section provides information on the structure and the components of the coprocessor board 3 Technical Description of the Coprocessor Boards 3 1 3 2 3 3 3 3 1 3 3 2 3 4 3 4 1 3 4 1 1 3 4 1 2 3 4 1 3 3 4 2 3 4 2 1 3 4 2 2 3 4 2 3 3 4 3 3 4 4 3 4 5 3 4 6 3 4 6 1 3 4 6 2 3 4 6 3 3 4 7 3 4 8 3 4 8 1 5036C Short Description Mech
80. ENIX ii CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Installation Assistance for Microsoft Windows GENERAL EnablelnitErrorMessage TRUE BOARD 1 BoardInUseFlag TRUE TOAddress 120 MPMAddress D000 TRO 10 BOARD2 BoardinUseFlag FALSE TOAddress 120 MPMAddress D100 IRQ 11 BOARD 3 BoardinUseFlag FALSE TOAddress 120 MPMAddress D200 TRO 12 BOARD 4 BoardInUseFlag FALSE TOAddress 120 MPMAddress D300 TRO 15 Figure 4 12 Example of entries in the IBSPCCB INI file 4 6 2 1 Installation Assistance for Microsoft Windows For instance set for board 1 the entry Board nUseFlag to TRUE to ensure that the controller board no 1 is recognized during the initialization phase Otherwise the conroller board will be identified as non existent and will not be initialized even if it does exist N If you entered an invalid value the initialization of the DLL will not be aborted Inthe case of the entry Enable nitErrorMessage TRUE an error message will be output in a Windows message box when the DLL is loaded start of the application program Inthe case of the entry Enable nitErrorMessage FALSE no error message will be output when the DLL is loaded start of the application program In this case you can recognize only in the case of the error messages or DDI functions e g when a data channel is opened for the first time that an error has occurred during the initialization The pa
81. Event Data Indication 809Bhex Quit Set Event Message Type Confirmation 00DEhexy Set Event Message Type Failed Confirmation 00DF pex PHCENIX 8 43 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Commands for the IBS Master Board Task Prerequisite syntax Word 1 Word 2 Word 3 Word 4 Word n 2 Bit Key Acknowledgment 8 44 Read_Event_Counter_Request0114 There is an event counter for each of the up to 16 events The Read Event Counter Request 0114 reads out the event counters An event counter is incremented when the event with its ID is recognized The events must have been defined and enabled An event counter is set to 0 with the enabling commands 002Chex 002Ehex or 0036hex of the associated event for 1st event for 2nd event for nth event Code Command code here 0114hex Parameter count Number of subsequent words here number of event counters to be read out max 16962 Event ID Enter here the IDs of the event definitions whose coun ter you want to read out The order of outputs in the ack nowledgment corresponds to the order of your entries If you enter a 0 as the only parameter the counts of all events will be output The order of outputs of the counts in the acknowledgment corresponds to the order speci fied during the event definition with the Receive Events Request 0002Anex command Quit Read Event Counter Confirmation 811Dhex P
82. External MA RUN LED 3 External COP READY LED green 4 External COP RUN LED IBS master board MA READY Following power on the IBS master board has executed a boot check for all functional units including MPM without detecting errors and is ready for operation MA RUN The IBS master board has started InterBus S ID or data cycles are being transmitted Coprocessor board not IBS PC CB I T COP RUN The coprocessor board operating system has booted an application program can be started COP READY A program is running on the coprocessor board PHCENIX 7 3 CONTACT InterBus S Error Diagnostics 7 4 RS online components com THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Coprocessor board booting Is followed by the automatic start of various utilities some of which stay resident as TSR programs in the COP memory Therefore the COP READY LED is lit after the complete system has come up 7 1 2 Diagnostic Indicators on Bus Terminal Modules The bus terminal modules too also provide local status diagnostics by means of LEDs Figure 8 2 shows the diagnostics on the bus terminal module IBS 24 BK T as an example Typical indicators on BK modules Supply voltage Remote bus monitoring Local bus monitoring nterBus S status indicator PHOENIX CONTACT 5036A801 Figure 7 2 LED diagnostics on bus terminal modules 7 1 3 Diagnostic Indicators on IBS Devices with I O Functions The IBS devi
83. HCENIX 8 13 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Commands for the IBS Master Board Task syntax Word 1 Word 2 Word 3 Word 4 Word n 2 Bit Key RS Positive acknowledgment RS 8 14 Receive_Logical_IN_Address_Map_Request003Ahex The command transfers the list of logical input addresses to the controller board Code Command code here 003Ahex Parameter count Number of subsequent words here number of devices Input address Enter here 10 bits the desired address as a byte address for all modules with process input data With modules with more than one process input word e g with 32 bits the next higher addresses are automatical ly also assigned DC Enter here the data consistency for the process data access Ihe data consistency ensures that the specified data width is from the same IBS cycle The default value for I O modules is 16 bits 00bin Increase the data consistency for IBS devices which require the coherent transmission of larger data widths Such devices are for example encoders operator interfaces or analog modules with a resolution of more than 16 bits The following values are permissible for the data consistency 00bin 16 bits default 01bin 32 bits e g encoders operator interfaces 10bin 8 bits only for modules with a length code of 81hex to which a byte access is to be made 11bin 48 bits e g encoders operator interfaces Ente
84. HCENIX ii CONTACT 9 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Section 9 Messages of the IBS Master Board This section provides information on the meanings and causes of the IBS master board messages the parameters of the messages Messages of the IBS Master Board 9 1 Format of a Message Description Configuration Messages Addressing Messages Operation Messages Error Handling Messages User Interface Messages system Monitoring Messages Process Data Linkage Messages Event Processing Messages PHCENIX CONTACT 9 3 i 9 9 9 6 9 11 9 14 9 15 9 31 9 32 9 33 9 34 9 1 9 2 PHCENIX CONTACT onlinecomponents com THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Messages of the IBS Master Board 9 Messages of the IBS Master Board Table 9 1 Messages of the IBS master board Code Message S 00 hay Unexpected_Group_Number Confirmation 005A pe BK Alarm Failed Confirmation 0068 Check Configuration Error Confirmation 98 bnBte Physical Configuration Map Vaid Confimaton 99 O0BD 9 Quit Receive Group Numbers Confimaion 96 5036C PHGNIX 9 3 CONTACT nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Messages of the IBS Master Board Table 9 1 Messages of the IBS master board cos Message S OOF ex Quit Groups Error Charac
85. HE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Commands for the IBS Master Board Task Consequences Further operation syntax Positive acknowledgment Task Consequences RS Syntax Acknowledgment 8 18 Alarm_Stop_Request004Ahex The command causes a reset and switches the bus into the STOP state The command is executed directly after the completion of the current data cycle Process data channel The cyclic data traffic of the bus is stopped The existing process data image of the modules connected to the bus host system inputs is set to 0 The command switches the process output data outputs of the IBS devices into the safe state to 0 The Peripherals Communication Protocol PCP is not operated any further No automatic abort of the established connections takes place The processing of any outstanding services will continue after the restart of the data traffic PCP channel The following definitions and lists will be deleted on the controller board logical address lists group definition process data linkage event definition The command consists only of a single word the command code 004A No further parameters follow Quit Alarm Stop Confirmation 00D8 Meaning The bus data traffic has been stopped Comment The parameter lists and the Run LED are cleared Warmstart_Request004Chex This command carries out a warm start of the firmware Following the hardware
86. HE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Messages of the IBS Master Board 9 2 Configuration Messages Receive Group Number Failed Confirmation00551 ex Cause The list transferred with the Receive Group Numbers Request 0049hex con tains faulty entries Error causes can be Invalid bus segment numbers Multiple assignment of bus segment numbers Invalid group number Anattempt was made to combine IBS devices without branching off lines no local bus connection no remote bus branch with other IBS devices ina group Assign a separate group number to IBS devices without a branching off line Wrong number of parameters Remedy Check the definition lists of the group definition syntax The message consists only of one word the message code 0055hex No furt her parameters follow Unexpected_Group_Number_Confirmation0059 ax Meaning Error when executing the commands Switch Group Off Request 0021 pex or Switch Group On Request 0020hex It was attempted to disable a device that cannot be disabled On enabling or disabling of a group a group number was specified which had not been defined before The transferred group number is outside the permissible range N The error is only indicated without affecting the behavior of the controller board Remedy Check the application program for non existent group numbers and wrong num bers of parameters Syntax The message consists only of one word the message
87. INE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Checking the Validity of the Assignment Lists Output word 18 Output word 17 0024 hex 0022 ne Output word 16 0020 pex Output word 15 001E Output word 14 001C Output word 13 001Ahe Output word 12 0018 ho Output word 11 0016 mo Output word 10 0014 Output word 9 0012 hex Output word 8 0010 no Output word 7 ____000E Output word 6 000 Crex Output word 5 OOOA rex Output word 4 0008 he Output word 3 0006 nex Output word 2 0004 nex Output word 1 0002 nex Output word 0 0000 5036A716 Figure 6 15 Output addresses in the memory map OUT buffer The start addresses of the modules are in bold type 6 3 4 3 Checking the Validity of the Assignment Lists The Implement All Logical Address Maps Request InterBus S command 0040hex checks assignment lists transferred with IBS commands to the con troller board for consistency and plausibility If there are no errors in the lists they will be accepted by the controller board and stored in the RAM It is recommended to call the mplement_All_Logical_Address_Maps_Request command 0040hex once more after every transfer of address lists e g the commands 0069p OOSAhex 003Bhex to be able to determine exactly in the event of an error which address list is faulty In the event of an error lists transferred before will not be accepted The nega tive acknowledgment of this command is Logical
88. If the bus goes into the STOP state due to a configuration change the new faulty configuration will be transferred oyntax The command consists only of a single word the command code 010Dhex No further parameters follow Acknowledgment Send_Actual_Configuration_Confirmation 8119hex Meaning The acknowledgment returns the currently connected bus configuration in the form of length and ID codes When for example the remote bus cable is not connected to the controller board when the Send_Actual_Configuration command is called this message will also be returned but in this case without length and ID codes ee PHOENIX 8 7 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Commands for the IBS Master Board Task Prerequisite syntax Word 1 Word 2 Word 3 Word 4 Word 5 Word n 2 Bit Key Positive acknowledgment Negative acknowledgment 8 8 Check_Physical_Configuration_Map_Request0058 This command transfers a desired bus configuration to the controller board in the form of length and ID codes This desired bus configuration is first checked whether the entered parameters are on principle valid e g for valid length or ID codes and if they are valid stored in the controller board RAM Then the desired bus configuration is compared with the currently connected bus configuration The bus must be in the STOP state when this command is used for device 1 for device 2
89. K KK KK AA USIGN16 grp_num 0x0049 Command Code 0x0008 Parameter Count 0x0015 1b number 0x0003 group number to which this lb should belong 0x000B lb number 0x0001 group number to which this lb should belong 0x0016 1b number 0x0003 group number to which this lb should belong 0x000 lb number 0x0002 group number to which this lb should belong Buffer in the programming language Pascal Receive Group Numbers Request to implement logical groups const grp num array 1 10 of word 0049 Command Code S0008 Parameter Count 50015 lb number 0003 group number to which this lb should belong SOOOB lb number S0001 group number to which this lb should belong 0016 lb numbex 0003 group number to which this lb should belong S000C lb number 0002 group number to which this lb should belong wee PHCENIX 6 31 CONTACT nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS InterBus S specific Programming 6 4 2 Swtiching Groups Off The command Switch Group Off Request 0021 pex is used to disable switch off a particular group The outputs of the IBS devices in the disabled bus seg ment and the associated inputs of the PLC or host computer are set to 0 Word1 Word 2 Word 3 Bit Figure 6 18 Switch Group Off Request format Key Code Command code here 0021 ax Parameter count Number of subsequent words here
90. Map_Req 003Anex Receive_Logical_OUT_Address_Map_Req 003Bhex see Page 6 19 Quit Enable Event Logical Address Confirmation OOE0 Meaning The selected event definition has been enabled Event Error Confirmation 004Chex Meaning The selected event definition does not become effective The specified input address does not exist There is no event definition for the specified input address The specified input address is in the area of a disab led group Disable Event Logical Address Request00371ex The command disables the event definition for the input module specified via the logical address The event definition must be available and valid Receive Events Request 002Anex Command AO gt APA o Parametercount Code Parameter count Logical address Command code here 0037hex Number of subsequent words here 1 According to the addressing mode used enter here the addressing mode used the logical or physical address 10 bits of the input word for which you want to disable the event definition Use even byte addresses such as used when the logical addresses are assigned with the commands Receive_Logical_IN_Address_Map_Req 003Apex Receive_Logical_OUT_Address_Map_Req 003Bhex see Page 6 19 Quit Enable Event Logical Address Confirmation 00E1hexy Meaning The selected event definition has been disabled Event Error Confirmation 004Chex 5036C PHOENIX CONTACT Task syn
91. NTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS InterBus S specific Programming 6 6 6 1 3 InterBus S Addressing Modes Two different addressing modes are possible Physical addressing In this mode the controller board automatically determines the addresses of the IBS devices automatically on the basis of the physical order of IBS devices in the bus configuration Logical addressing In this mode the programmer can freely choose the addresses for the IBS de vices The controller board then addresses the IBS devices as defined in the ap plication program Logical addressing is useful in order to optimize the memory segmentation avoid address shifts when your system is to be expanded allow configuration changes without completely rearranging the addressing improve the clarity of the system arrangement The bus segments of a part of the system e g of a switch cabinet a machine can be assigned to a de fined group PHCENIX ee CONTACT 5036C gt a THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE G R awww ww Physical Addressing of IBS Devices 6 2 Physical Addressing of IBS Devices With physical addressing the controller board addresses the IBS devices auto matically on the basis of the physical order of devices in the bus configuration Under firmware 3 x the controller board reserves at least 1 word 16 bits in the multi port memory for each device that supplies or proce
92. ONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Technical Description of the Coprocessor Boards 3 16 3 4 8 1 Battery Back up For the back up of the RAM memory on the coprocessor board the RAM me mory on the coprocessor board has a standard battery pack as used in PCs for BIOS setting back up The battery pack provides a voltage of 6V and has a life of approx 2 5 years When replacing the battery pack please use one of the same size PHCENIX peer CONTACT 4 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Section 4 Installation and First Startup This section provides information on address settings on the controller board the installation of the controller board in your PC the installation of the driver software Installation and First Startup 1 an ae ene 43 4 1 Address Setting A 43 4 1 1 Base Address in the I O Area of the PC VO Address 4 3 4 1 2 Board Number Board No 2 2 2 2 44 4 2 Setting the Boot Configuration 4 6 4 2 1 IBS Control o 46 4 2 2 InterBus S Startup Behavior IBS Autostart a o 4 7 4 2 3 Automatic Program Start from EPROM EPROM Start o 48 4 2 4 Setting the Boot Disk co 48 4 2 5 RFSERVER Boot Behavior Wait for RESERVER o 410 4 2 6 DPCON Boot Behavior Wait for DPCON 4 11 4 2 7 Data Transmission Between COP and Development Environment4 12 4 3 Ju
93. Reduce the number of issued commands per time period 50hex 51 hex A firmware error was found on the controller board Please consult Phoenix Contact 55hex An error was found in the group definition Check the group definition in the application program 57hex 58hex A firmware error was found on the controller board Please consult Phoenix Contact 59hex An undefined group number was specified in a command Use only defined group numbers Check the group definitions in the application program An attempt was made to use a group disabling command for a group that could not be disabled Use the group disabling commands only for groups that can really be disabled 5Ahex A wrong bus segment number was specified when a bus terminal module alarm was enabled or disabled Check the application program Use only bus segment numbers that are defined and that really exist 5Bhex An invalid length code is used in the application program Check the length codes in the assignment lists 65hex The maximum number of communication modules in the bus has been exceeded Reduce the number of communication modules to a maximum of 62 PHOENIX 7 13 CONTACT InterBus S Error Diagnostics Meaning Remedy Meaning Cause Remedy Cause Remedy Meaning Remedy Meaning 7 14 THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS 66hex Invalid communication reference or wrong number of parameters Check the communicatio
94. S Technical Description of the Motherboard 2 3 Controller Board Interfaces The following sections describe the various controller board interfaces 2 3 1 Connection of the Motherboard with Your PC The AT bus edge connectors connect the controller board with the AT bus of the host PC The signal assignment is compatible with the ISA standard the controller board requires only a data bus width of 8 bits Tables 2 1 and 2 2 show the pin assignments of the edge connectors to the AT bus The interface signals are exclusively standardized AT bus signals Table 2 1 Pin assignment of the short AT bus edge connector C1 LA23 T PD100 LA22 T PD100 LA21 T PD100 Dm mQw OCTS LA20 T PD100 a5 IRQ11 O C TS De Raz 0 0 75 D Rats 0 0 75 NI l a a E e E li AE C D17 Key Input SV Supply voltage TS Tristate O Output T TTL level PU Pullup KQ B Bidirectional C CMOS level PD Pulldown KQ M For measuring only OC Open collector UN Nominal voltage V 2 8 PHOENIX eee CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Connection of the Motherboard with Your PC Table 2 2 Pin assignment of the long AT bus edge connector IOCHRDY O C PU10 sas LL sas LT SA17 SA SAI5 uT iT Am SANT AT m fso fT Amaz EEC fir m EI IEA mea sar aas fse NT m e ar saa pr ms ss fi EC E TE m ono y RESET iT
95. S PC CB RTX486 I T 5 11 Opening a data channel from the coprocessor board to the host for IBS PC CB COP I T and IBS PC CB RTX486 I T 5 11 Opening a data channel from the coprocessor board to the IBS master board for IBS PC CB COP I T and IBS PC CB RTX486 I T 5 11 IBS devices of the configuration example 6 4 Assignment of the input words to the IBS devices 6 8 Assignment of the output words to the IBS devices 6 10 Command sequence for startup under physical addressing 6 12 Differences in word numbering modes between programmable logic controllers PLC andPCs 2 6 19 Command sequence for startup under logical addressing 6 28 Error types in firmware version 3 72 7 9 Commands forthe IBS master board 88 PHCENIX B 7 CONTACT InterBus S Appendix B Table 8 2 Section 9 Table 8 3 Table 8 4 Table 8 5 B 8 Process data linkage instructions Messages of the IBS master board Meaning of the error number parameter Meaning of the error number parameter PHCENIX CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS 8 29 9 3 9 24 9 33 5036C B 3 Index A Address list check 8 16 Addressing modes 6 6 Assigment lists 6 13 AT bus edge connectors 2 8 AT bus interface 2 13 Base address 4 17 Battery pack 4 15 Board number 4 4 4 17 Boot disk 4 8 Bus configuration c
96. S devices capable of communication Number of process data words of the connected bus configuration On its right the upper window provides information on program settings and whether the bus is transmitting process data 4 26 PHOENIX oe CONTACT Bus Segment No Bus Type Module No Module Ident Module Type Module Name PCP Length PCP Address PD Length PD IN Address PD OUT Address Module Channel IN DATA OUT DATA Error message Info window 5036C The Functions Pull Down Menu The lower window provides information on the currently selected module Physical number of the bus segment where the current module is located star ting with 0 Local Bus Remote Bus Physical number of the module in the bus configuration starting with 0 Module ID code in decimal and hexadecimal notation PCP address area occupied by the current module in the host PCP address corresponds to the communication reference CR Register length Physical address of the displayed input word Physical address of the displayed output word Channel number for modules with several process data words Current input word in binary hexadecimal and decimal notation Current output word in binary hexadecimal and decimal notation When an error occurs in a bus configuration a red window appears with an error message The error message specifies the cause of the error e g remote bus error 0 if the remote bus cable is not connected
97. SWD UM E Order No 27 53 96 0 InterBus S control Your application program starts the controller board by means of commands e g start of the bus system reading in the bus configuration see Section 8 After its initialization and the start of the data transmission the controller board operates the bus independently and returns messages see Section 9 section 6 describes the InterBus specific programming such as the physical addressing of the IBS devices the logical addressing of the IBS devices and the combination of the IBS devices into groups on the basis of a configuration example In the event of a serious error e g interrupted bus cable all connected IBS devices automatically go into the RESET state and set their outputs to zero Thereupon the controller board examines the error and gives a detailed description of the error cause and the error location using the Bus_Error_Information_Indication error message 80C4pez see Section 9 PHOENIX ii CONTACT 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Programming Fundamentals Program examples Controller board programming under DOS Microsoft Windows and IBM OS 2 is mainly identical Thus programming under DOS can be based without pro blems on a DOS program example The driver diskette provides program ex amples which already contain the required bus handling You can fully concentrate on programming your I O links
98. TACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Board Number Board No Table 4 2 shows the board number the resulting automatic offset relative to the common base address and the related DIP switch setting Table 4 2 Setting of the board number of controller boards If you use only one controller board ensure that board number 7 has been set default I lf for example you set a base address of 3A0 pex in the I O area using DIP switches 5 to 8 the resulting address area for the controller board with the board number 4 ranges from 3B8hex to 3C Op ex Base address offset I O area for controller board 4 3AOhex 18hex 8hex SCOhex Ensure that the address area required by the controller boards is not used by other components of your PC 5036C PHGNIX 4 5 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Installation and First Startup 4 6 4 2 Setting the Boot Configuration Using DIP switches you can select particular boot configurations on the motherboard The DIP switch settings are only read in when the controller board is booted After the setting has been changed always carry out a controller board reset to make the change become effective 4 2 1 IBS Control Only IBS PC CB COP I T and IBS PC CB RTX486 I T When the IBS controller boards with coprocessor board are used the IBS ma ster board can be controlled either by the host PC or by the coprocessor
99. THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS INTERBUS S User Manual Hardware and Firmware of the Controller Board for IBM compatible PCs Type IBS PC CB HW UME Revision G Order No 2747167 This manual is valid for the following controller boards with the firmware version 3 72 IBS PC CB I T Order No 27 80 84 9 IBS PC CB COP I T Order No 27 54 51 6 IBS PC CB RTX486 1 T Order No 27 61 47 0 Copyright by Phoenix Contact 07 1995 5036CC01 PHONIX CONTACT onlinecomponents com THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS PHGNIX 5036CC01 CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Please Observe the Following In order to guarantee that your use of this manual is as straightforward as possible and that hardware is used safely in the installation operation and maintenance phases we request that you carefully read and observe the following instructions Explanation of Symbols Used The attention symbol refers to erroneous handling which could lead to damage AN to the hardware or software or in indirect connection with dangerous process peripherals e g unprotected shafts or motors with actuator functions to light to severe personal injury The symbol is always located to the left of the tagged text IS The hand symbol gives you tips and advice on the efficient use of hardware and on software optimization to save you from performing extra work for example In addition text mark
100. Training You will have found that it takes a rather long time to become familiar with all features of extensive software packages such as Microsoft Winword or Excel The same is true for InterBus S Of course you can familiarize yourself easily with the controller board programming using the documentation and the supplied example programs To be able to take full advantage of all their features we recommend in addition to attend one of our programming training courses where you can acquire an extensive practical knowledge For the contents and dates please refer to our seminar brochure which your local Phoenix representative will be pleased to send you On request we can also hold a training course tailored to your particular requirements on your premises Please contact us PHOENIX 1 5 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Introduction and Overview 1 6 1 3 Documentation The following documentation is available for the controller boards IBS PG CB T IBS PC CB COP I T und IBS PC CB RTX486 I T Description of the hardware This manual IBS PC CB HW UM E describes the hardware of the three controller boards and the InterBus specific programming In addition it includes a librarary with commands and messages for the IBS master board firmware version 3 72 Description of the driver software The BS PC CB SWD UM E manual Order No 27 53 96 0 describes driver software for the op
101. V IBSPCCB IO 100 BN 2 Sets the base address to 10046x and the board number to 2 The order of parameters is irrelevant IS If you do not enter a parameter the default parameter will be automatically used 4 6 3 1 Installation Assistance for OS 2 lf the specified PC I O address does not match the address set by means of DIP switches on the controller board the board initialization will be aborted and an error message will be output The controller board occupies an address area of 4 Kbytes Ensure that this area is not already used by other PC boards e g network adapters A check does not take place 4 22 PHCENIX 50360 CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S ER w ww ww Installation of the I O Periphery Interrupt number On the ISA bus OS 2 does not permit that the same interrupt is used by more than one board Take care that the interrupt used has not already been assigned Otherwise the initialization procedure will be aborted and an error message Error at SetIRQ will be output The default value for the interrupt is 15 4 7 Installation of the I O Periphery Please refer to the IBS installation manual BS SYS INST UM E Order No 27 54 80 4 The manual informs you in several sections on the following sub jects System overview Installation of the I O components Cabling recommendations Startup and function test Error correction Replacement of IBS components Cable diag
102. abled This signal is fed to the mother board interface and is referred to as SRQ2L The following table outlines the interrupt assignment of the coprocessor board Table 3 5 Interrupt assignment of the coprocessor board Timer channel 0 Unused Slave interrupt controller Unused COM1 Handshake interrupt MPM Timer channel 2 Unused Real time clock Unused Unused Unused Unused Unused Unused Unused 3 4 2 Coprocessor Board Memory The memory segmentation is as follows 128 Kbytes of static RAM SRAM battery backed up with a data width of 8 bits 2 Mbytes of DRAM with a data width of 16 bits 3 4 2 1 EPROM Two 32 position PLCC EPROM sockets for 128 Kbyte or 256 Kbyte EPROMs or flash EPROMs are provided on the coprocessor board IBS PC CB COP I T On delivery socket 1 is equipped with a 128 Kbyte EPROM for the operating system Socket 2 is not fitted with an EPROM PHOENIX ROTOS CONTACT 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS EEE S awww ww Static RAM IBS PC CB RTX486 I T On delivery socket 1 and socket 1 are equipped with 256 Kbytes of flash EPROM each 3 4 2 2 Static RAM 128 Kbytes of static RAM SRAM are available on the coprocessor board for storing data e g equipment states This memory is battery backed and has a width of 8 bits IBS PC CB COP I T The SRAM on the COP386 can be addressed via the memory segment B0000hex in two 64 Kbyte blocks The access is via driver software
103. after booting By switching to the other boot drive the coprocessor board can now boot without calling the faulty programs gt Programs that are to be started automatically should never be entered at the same time in AUTOEXEC BAT on drive A and on drive Di as in that case you would not be able to prevent the call of faulty programs with switch 6 Programs that are to be started automatically can be stored at the following lo cations in flash EEPROM 1 which is to be selected as drive AA from the COP in flash EEPROM 2 which is to be selected as drive Ci from the COP inthe battery backed up SRAM which is to be selected as drive D from the COP onthe host hard disk CA which is to be selected as drive EA from the COP I Switches 3 and 4 of the IBS PC CB RTX486 T are OFF as default Do not change these settings 5036C PHGNIX 4 9 CONTACT nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Installation and First Startup 4 2 5 RESERVER Boot Behavior Wait for RESERVER Only IBS PC CB RTX486 I T mit RTXDOS The TSR program RFSERVER EXE allows the coprocessor board to access the drives of the host PC After the start of RESERVER on the host the coprocessor board can for example load programs from the host hard disk and read and store data from and to the disk The connection between RFSERVER and RTXDOS is effected via the MPM The RFSERVER EXE program is on the tool diskette While the coproces
104. ages Logical_Address_Error_Confirmation002B A check revealed an error in the logical addressing lists sent to the controller board The bus goes without reset into the STOP state The outputs are not reset In addition the Send Log Address Error Request command 005Fhex provi des error diagnostics The message consists only of one word the message code 002B No furt her parameters follow Quit_Receive_Logical_Localbus_Addressmap_Confirmation00DO ex The Receive_Logical_Localbus_Addressmap_Request command 0039hex was executed The message consists only of one word the message code 00DOhex No furt her parameters follow Quit_Receive_Logical_In_Addressmap_Confirmation00D1 pex The Receive_Logical_In_Addressmap_Request command 003Ahe was exe cuted The message consists only of one word the message code 00D1hex No furt her parameters follow Quit_Receive_Logical_Out_Addressmap_Confirmation00D2 The Receive_Logical_Out_Address_Map_ Request 003Bhex command was executed The message consists only of one word the message code 00D2hex No furt her parameters follow Quit_Implement_Confirmation00D3 ex The Implement All Logical Address Maps Request command 0040hex was executed The logical addressing lists sent to the controller board contain no er rors The message consists only of one word the message code 00D3hex No furt her parameters follow PHCENIX 9 11 CONTACT InterBus S
105. anical Design Coprocessor Board Interfaces Motherboard Interface Serial Interface Coprocessor Board Functional Units Processor Chipset Chipset Components zk Coprocessor Board I O Address Area Coprocessor Board Interrupt Assignment Coprocessor Board Memory EPROM Static RAM Dynamic RAM MPM Interface Mapping Register Coprocessor Board Serial Interface Coprocessor Board Security Units Coprocessor Board Voltage Monitoring Coprocessor Board Reset System Coprocessor Board Watchdog Coprocessor Board Real time Clock Coprocessor Board Power Supply Battery Back up FE PHCENIX CONTACT 3 3 3 3 3 5 3 6 3 6 3 6 2 3 8 3 8 3 9 3 9 3 10 3 10 3 10 3 11 3 11 3 13 3 14 3 14 3 14 3 14 3 14 3 14 3 15 3 15 3 16 3 1 3 2 PHCENIX CONTACT onlinecomponents com THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Technical Description of the Coprocessor Boards 3 Technical Description of the Coprocessor Boards for IBS PC CB COP I T and IBS PC CB RTX486 I T 3 1 Short Description The coprocessor boards abbreviated COP are industrial PCs optimized for control tasks in the form of daughterboards for the controller motherboards IBS PC CB COP I T and IBS PC CB RTX486 I T Table 3 1 Overview of coprocessor boards AAPP A Coprocessor board COP386 Co
106. aning Remedy Meaning 7 12 THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Check the bus configuration for interference and remove it If the situation does not improve please consult Phoenix Contact 3Chex A FiFo overflow was found Carry out a host reset 3Dhex A hardware error was found on the controller board Carry out a host reset 3Ehex 3Fhex 40hex 41 hex 42hex 43hex 44hex 45hex A firmware error was found on the controller board Please consult Phoenix Contact 4Ahex The configuration stored in the controller board RAM ID list and the currently connected configuration are not identical ID list is faulty or does not exist Check the ID list InterBus S configuration does not exist Connect the remote bus cable to the controller board 4Bhex Too many or not enough parameters in the command or PCP command Check the number of parameters in the application program 4Chex An error was found in the event definition Check the event definition in the application program 4Dhex A hardware error was found on the controller board Carry out a controller board reset 4Ehex You sent too many commands within a short time period PHCENIX peer CONTACT Remedy Meaning Remedy Meaning Remedy Meaning Remedy Meaning Remedy Meaning Remedy Meaning Remedy Meaning Remedy Meaning Remedy 5036C Meanings of Controller Board Error Numbers
107. arameterization data to the controller board and stores it there and allows easy menu driven parameterization and control of the controller board With IBS SYS SWT the functions of the IBS components controller boards modules etc can be used without the need for programming The PC is coupled with BS SYS SWT and the controller board via the serial in terfaces RS 232 of the two devices The individual program functions are Transmission of commands to the controller board Reception of messages from the controller board Logging of the received messages and the transmitted commands Storage of command sequences in a file and transmission of these com mands to the controller board PHOENIX ii CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE G R awww ww The InterBus Manager IBS CMD SWT Creation and transfer of logical address lists to the controller board These address lists cannot be permanently stored on the controller board and are lost when a controller board reset is carried out Diagnostics and evaluation of the bus transmission IBS SYS SWT offers the user a simple interface to the controller board under DOS Refer to the IBS SYS SWT UM E manual Order No 27 53 87 6 for furt her information 7 2 3 The InterBus Manager IBS CMD SWT The InterBus Manager IBS CMD SWT is a graphics oriented program under Microsoft Windows It provides functions for InterBus configuration startup and
108. ard are described in Section 2 and in the RTXDOS documentation ZO a A NL wl al ofa o E of 0 0000 5036B518 Figure 4 6 Switch for boot disk selection PHOENIX ii CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Setting the Boot Disk Table 4 6 Selection of the boot drive for the coprocessor board OFF default An flash EPROM1 Automatic start of programs under RTXDOS Upon delivery of the IBS PC CB RTX486 I T the root directory of drive A flash EPROM contains an AUTOEXEC BAT and a CONFIG SYS with the basic ent ries To start programs automatically after coprocessor board booting proceed as follows 1 Start the program DPCON EXE is on the tool diskette 2 Copy the files AUTOEXEC BAT and CONFIG SYS from drive AA flash EPROM to drive Di SRAM The drives of the coprocessor board are described in Section 2 and in the RTXDOS documentation 3 Using an editor enter the programs that are to be started automatically into AUTOEXEC BAT on drive DA 4 Using switch 6 set drive D as boot drive 5 Bootthe coprocessor board The programs entered in AUTOEXEC BAT on drive Di are if error free automatically started after the coprocessor board has booted Switching to a different boot drive is also useful when the programs called by the AUTOEXEC BAT to be executed by the coprocessor board are faulty and therefore the coprocessor board crashes immediately
109. ard with the Receive Processing Instructions Request command 005D hex Address specifications within the process data linkage instructions Specify the input bit and the output bit for each process data linkage procedure Address these bits by specifying the address and the bit number Specify the even word address and the desired bit 0 to 15 for IBS devices with an address area of 16 bits or more Specify the even or odd byte address and the desired bit 0 to 7 for IBS de vices with an address area of 8 bits length code 81hex The word and byte numbering typical for InterBus is explained in Section 6 3 4 A word of an IBS device with an address area of 16 bits or more According to the addressing mode use the physical or the logical address which you assigned with the commands Receive Logical IN Address Map Request 003Apex Receive Logical OUT Address Map Request 003Bphex Receive Processing Instructions Request005D ex The Receive Processing Instructions Request 005Dhex command transfers one or more process data linkage instructions to the controller board The in structions are sent to the controller board in the form of a list of instructions and stored in the controller board RAM Transfer the lists of instructions before the start of the IBS system and if used following the command mplement_All_Logical_Address_Maps_Request The process data link must not be redefined during the operation and must
110. are designed as plug in boards for long AT bus slots The front plate is a common PC board holder The controller motherboard provides two slots for daughterboards The first daughterboard is the IBS master abbreviated MA which is used as an interface to InterBus S As a second daugtherboard a coprocessor board abbreviated COP can be used as a fast processor for InterBus S The front plate has two status indicator LEDs for for each daughterboard The central functional unit of the motherboard is a Multi Port Memory MPM with an integrated access management This memory can be accessed from the host PC and from the two daughterboards i e the MPM has three nodes The MPM consists of 64 Kbytes of SRAM with a data word width of 16 bits It is used for exchanging commands messages and data between the two daughterboards and the host PC In addition the motherboard contains the MPM access control mechanisms Up to four controller boards can be operated in a host PC As different board numbers are set from 1 to 4 while the I O address remains the same the controller boards differ by an I O address offset of Ohex 8hex 10hex and 18hex which depends on the board number A controller board occupies 8 bytes in the I O address area and a memory window of 4 Kbytes in the memory area of the host PC The base address of the I O address area can be set with a DIP switch to one of 16 possible addresses The base address of the 4Kbyte memory wi
111. are no longer up to date The command consists only of a single word the command code 005Ap ex No further parameters follow Bus Error Information Indication 80C4hex Meaning List with information on the error state of the bus Bus Error Information Map No Map Entry Confirmation 00EDhex Meaning There is no entry Send All Module Error Request005Chex When the bus system is active this command checks all modules for error mes sages and updates the module error indication in the diagnostic interface Module error The command consists only of a single word the command code 005Chex No further parameters follow Send All Module Error Confirmation 80EFhex Meaning This acknowledgment sends a list of all bus segments with module errors No Map Entry Confirmation OOEDhex Meaning There are no module errors The error indications in the diagnostic interface are reset 5036C PHCENIX CONTACT Task syntax Word 1 Word 2 Word 3 Bit Key Positive acknowledgment Negative acknowledgment 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Error Handling Commands Send_Local_Bus_Module_Error_Request005Bhox This command looks in the specified local bus for modules indicating a module error Code Parameter count Bus segment Command code here 005Bre Number of subsequent words here 1 Enter here the bus segment number of the local bus where modules
112. ated bus ter minal modules or dedicated output modules Place the start addresses of IBS devices with address areas of 16 bits or more only at even addresses The list becomes valid only after a successful execution of the command Implement_All_Logical_Address_Maps_Request command 0040 ex PHOENIX ROTOS CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS EEE G R w AA ww Assignment of the Logical Input Addresses Buffer in the programming language C KKK KK KK KK KK KK KK KK KKK KK I AA Receive Logical IN Address Map Request Fr to implement all in addresses EJ KKK KKK KK KKK KK KK KK KK kkk AAA USIGN16 in_adr_map Ox003A Command Code 0x000D Parameter Count 0x0000 IBS ST 24 BK T 0x0000 IB ST 24 DI 16 4 0x0000 IB ST 24 AO 4 SF 0x0000 1B ST 24 DO 16 3 Ox001C LBS PT 100 Ox000A IP DIO 1 24 Ox0000 IP CBK 1 24 0x0002 IP CDI 1 24 0x0000 IP CDO 1 24 0x0004 IP CDI 1 24 0Ox000C IBS 24 BK I O T 0x0006 IBS 24 DI 32 0x0014 IBS AI 3 Buffer in the programming language Pascal E E SE DS E A OA E a a a a Receive Logical IN Address Map Request ER Es o implement all in addresses const in adr map array 1 15 of word SOO3A Command Code SU0UD Parameter Count 50000 IBA ga 24 BK T 50000 MBASTI 24 DI 16 4 50000 PME ST 24 AO 4 SF 50000 IB ST 24 DO 16 3 S Ca ne IBS PT 100 S0O00A IP DIO 1 24 QUO IP CBK 1
113. ately after the entry of a value in the mask Di rect OUT Data or after an acknowledgment with the ENTER key Controlled OUT Data The menu item Generate Data File generates a file IDLST TXT containing in formation on the currently connected bus configuration length code ID code address etc General Functions Options Help About DOS Shell Exit IBS PCCE Monitor Program Interbus 3 Version BR PHOENIX CONTACT 5036A821 Figure 4 20 The General pull down menu About Information on the monitor program version DOS shell Causes an entry to the DOS shell InterBus S retains the current state Enter EX T and RETURN to exit from the DOS shell Exit Stops the data transfer to InterBus S Alarm Stop Request and terminates the monitor program 4 30 PHOENIX CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Section 5 Interfaces Between Hardware and Software This section provides information on the interfaces of the IBS controller boards the general structure of the driver software 5 Interfaces Between Hardware and Software 2 2 OS 5 1 Multi Port Memory PL L OO 5 1 1 The MPM in the Host Address Area WE Ls sl e 5 3 5 1 2 Organization of the MPM a OF 5 2 General Structure of the Driver Software Bw oe ee E 32 1 Implementation of the DDI and the DD a 5 9 5 2 2 Structure of the Driver Software on the Coprocessor Board 5 9 5 2 3 Expla
114. ative acknowledgment 8 12 Define_Groups_Error_Characteristic_Request0060 If an error which does not allow any further bus operation occurs in a group the bus will go into the RESET mode Using the Define Group Error Characteristics Request you can define for each group whether the bus Is to be started again without this group after the RESET Ensure that a group definition has taken place with the Receive_Group_Numbers_Request command 0049hex before this command is used for group 1 for group 2 for group n Code Command code here 0060 ex Parameter count Number of subsequent words Mode Handling of the group described by this line in the event of an error Ohex Following a RESET caused by this group the complete bus remains in the STOP state Shay Following RESET the bus is restarted without this group Group number Group number of the group described by this line 0 to 255dec Corresponds to 00hex to FF rex You need not specify all numbers If an error occurs in a group which you did not specify the complete bus remains in the STOP state after the RESET The controller board does not supply new input data to the host while the error diagnostics are being executed The message Bus Error Information Indication 80C4 gives a detailed description of the error Quit Groups Error Characteristics Confirmation 00F6pex Groups Error Characteristics Failed Confirmation 80F7 hex Comment In the event of a
115. board and other PC boards It is important to avoid any contact between the PC boards Install controller boards only in AT bus slots with sufficient space e g not above space consu ming memory components SIMMs etc PHOENIX 4 15 CONTACT InterBus S Installation and First Startup 4 16 RS THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS The controller boards require a deep AT bus slot in the host PC The PC power supply must be sufficiently rated especially for the operation of several controller boards in one PC Table 4 14 Controller board power consumption IBS PC CB I T 1 2 A 5V IBS PC CB COP I T 1 5 A 5V IBS PC CB RTX486 I T 1 5 A 5V Ground the controller board via the ground pin on the PC board holder 4 5 1 Serial Interface of the Coprocessor Board Only IBS PC CB COP I T and IBS PC CB RTX486 I T The coprocessor board has a serial interface RS 232 level which corresponds to COM 1 of a standard PC This fully PC compatible interface is provided on the edge of the coprocessor board as a 10 position male connector and can be connected with the adapter cable BS PC COP RS 232 CAB to a subminiature D connector which you install for example on an additional PC board holder free slot The adapter cable can be ordered under Order No 27 51 658 lt is also supplied with the development environment BS PC COP SWT TDOS PRO Take care during the installation that the assigment of the adapter cable is
116. cal bus segment numbers a KKK KKK KK KKK KK KK EREKE KK KK KK kkk kkk kkk kkk KK kkk KK KK KK KKK KK KK KK KK KK USIGN16 log_lb_adr_map 0x0069 Command Code 0x000D Parameter Count 0x0015 IBS ST 24 BK T 0x0000 IB ST 24 DI 16 4 0x0000 IB ST 24 AO 4 SF 0x0000 IB ST 24 DO 16 3 Ox0000 iBS PT 100 0Ox000B IBS IP DIO 1 24 0x0016 IBS IP CBK 1 24 0x1017 IBS IP CDI 1 24 Ox1018 IBS IP CDO 1 24 OSLOLO LBS IP CDI 1 24 Ox000C IBS 24 BK 1 0 T 0x0000 IBS 24 DI 32 0x0000 IBS AI 3 Buffer in the programming language Pascal Receive_Local_Bus_Code_Map_Request a to implement logical bus segment ers ej fr RENE a ne ey ee a a a a a a a a a ey SS ESSEN const log Ib adr map array 1l 15 of word S0069 Command Code SOOOD Parameter Count S0015 IB amp ga 24 BK T 50000 IB ST 24 DI 16 4 50000 PME ST 24 AO 4 SF 50000 IB ST 24 DO 16 3 S Ta TN IBS PT 100 SOO SB IBS IP DIO 1 24 0016 IBS IP CBK 1 24 1017 IBS IP CDI 1 24 SLOLS IBS IP CDO 1 24 1019 IBS IP CDI 1 24 SOOOC IBS 24 BK I O T 50000 IBS 24 DI 32 0000 IBS AI 3 6 18 PHONIX 5036C CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS BEE G R awww ww Assignment of the Logical Addresses by the Programmer 6 3 4 Assignment of the Logical Addresses by the Programmer Numbering of words when assigning logical address lists InterBus S numbers words in
117. ce no n Bit Key Code Message code here 8119hex Parameter count Number of subsequent words here number of devices Result The Result parameter is always OOhex When the con troller board can read in only part of the currently con nected bus configuration as for example the remote bus cable is defective at some point the message con tains only the length and ID codes of the accessible IBS devices If the controller board could not read in the con nected bus configuration at all if for example the remo te bus cable is not connected to the controller board this message is also output but without length and ID code Length code The length code describes the address space require ments of the IBS device in the host ID code ID code of the IBS devices It is printed on the modules in decimal form as a Module ID 0 to 255gec corresponds to 00hex to FFhex I The length of IBS devices supporting communication PCP contains only their process data words Quit_Configure_Bus_Confirmation00CAex Meaning The Configure Bus Request 0023hex command was executed Syntax The message consists only of one word the message code 00CApex No furt her parameters follow 9 10 PHCENIX oer CONTACT Meaning syntax Meaning syntax Meaning syntax Meaning syntax Meaning syntax 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Addressing Messages 9 3 Addressing Mess
118. ces with I O function also feature status and diagnostic LEDs to al low quick local diagnostics The diagnostic LEDs provide information on the type and the location of the error that has occurred The status LEDs indicate the in put and output I O states PHOENIX en CONTACT 5036C onlinecomponents com THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS EEE S awww ww Diagnostics of IBS Devices from Other Manufacturers Typical indicators on IBS devices with I O function Supply voltage Output overload short circuit for each group individual DI DOs Status LED for each I O channel PHOENIX CONTACT elelooooooodeldpooooooo yellow I O status O green Us switching voltage red E short circuit Hp 9 h L 5036A802 Figure 7 3 LED diagnostics on I O modules 7 1 4 Diagnostics of IBS Devices from Other Manufacturers The diagnostic indicators on other manufacturers IBS devices are divided into two groups of indicators Bus specific indicators These indicators correspond mainly to those on the bus terminal modules or IBS devices with I O function from Phoenix Contact Device specific indicators These indicators depend on the IBS device Please consult your device manual or contact the manufacturer of the IBS device PHCENIX 7 5 CONTACT InterBus S Error Diagnostics 7 6 THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS 7 2 Diagnostics with Software Tools Var
119. code 0059hex No furt her parameters follow Quit_Receive_Group_Numbers_Confirmation00OBD Meaning The Receive Group Numbers Request command 0049hex was executed successfully syntax The message consists only of one word the message code 00BD pex No furt her parameters follow Switch_Group_Off_Confirmation809D ex Meaning A group of bus segments was disabled As parameter the number of the disab led group is transferred 9 6 PHGNIX 5036C CONTACT syntax Key Word 1 Word 2 Word 3 Bit Meaning syntax Key Word 1 Word 2 Word 3 Bit Meaning syntax Key 5036C Word 1 Word 2 Word 3 Bit THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Configuration Messages Code Parameter count Group number Message code here 809Dhex Number of subsequent words here 1 Number of the group that was disabled 00hex to FFhex corresponds to 0 to 255gec Switch_Group_On_Confirmation809E A group of bus segments was enabled As parameter the number of the enabled group is transferred Code Parameter count Group number Message code here 809Ehax Number of subsequent words here 1 Number of the group that was enabled 00hex to FFhex corresponds to 0 to 255gec Switch Group On _Failed_Confirmation80C5hex The attempt to enable a group was not successful s parameter the group number is transferred Code Parameter count Group n
120. curs on InterBus S after the automatic start of the IBS data cycles and this error causes InterBus S to stop the controller board waits for a manual hardware reset with the front plate reset button In this case the IBS data cycles cannot be restarted by the application program Please consider this when using the automatic start of the IBS data cycles PHCENIX ae CONTACT InterBus S Installation and First Startup 4 8 THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS 4 2 3 Automatic Program Start from EPROM EPROM Start only IBS PC CB COP I T with TDOS Switch 6 is used to define under TDOS whether programs stored in the EPROM are to be automatically started after COP booting or not The automatic start feature should be disabled when for example the programs stored in the EPROM are faulty causing the coprocessor board to crash immediately after booting ZO HA Ky o MAA nl mE o E cf 00 0000 5036B518 Figure 4 5 Switch setting for the program start from the EPROM EPROM start Table 4 5 Program start from the flash EPROM Are not automatically started Are automatically started OFF default Switches 3 4 5 and 7 of the IBS PC CB COP I T are OFF on delivery Do not change these settings 4 2 4 Setting the Boot Disk Only IBS PC CB RTX486 I T with RTXDOS Switch 6 is used to determine the boot drive for the coprocessor board under RTXDOS the drives of the coprocessor bo
121. de 0059 hex No further parameters follow Quit Bus Delay Confirmation 0O0OEChex 8 5 Error Handling Commands Clear Display Request004E ex This command clears the status indicator on the controller board front plate The entries in the diagnostic bit register and in the diagnostic parameter register are also reset None The command consists only of a single word the command code 004Ehex No further parameters follow Quit Clear Display Confirmation 00E2hex PHCENIX 8 19 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Commands for the IBS Master Board Task Prerequisite syntax Positive acknowledgment Negative acknowledgment Task Prerequisite syntax Positive acknowledgment Negative acknowledgment 8 20 Send_Bus_Error_Information_Request005A This command requests the Bus Error Information Indication message 80C4hex This message transfers a list with information on the bus error state Bus Error Information Map from the RAM The list was generated at the last occurrence of a remote bus error or of a local bus error Use this command only after the error message Bus_System_Error_Indication 0038hex has been sent There is no check whether the bus error state has changed again since the generation of the Bus Error Information Map e g the user has already corrected the error and therefore the contents of the last Bus Error Information Map
122. e While the coprocessor board is booting it writes the screen outputs that are usu al for a PC to the MPM Using the program DPCON EXE these outputs can be fetched and displayed on the host monitor If DPCON EXE does not fetch the screen outputs from the MPM the MPM area reserved for this purpose may become full Using switch 7 you can now deter mine whether the coprocessor board continues the boot procedure in such a ca se or whether it waits until the RAM area is free again 5036A520 001 0000 Figure 4 8 Switch for setting the DPCON boot behavior Table 4 8 DPCON boot behavior OFF default When the MPM area is full the coprocessor board continues with the boot procedure although DPCON has not yet read the characters from the MPM This may result in the loss of characters When the MPM area is full the coprocessor board waits until DPCON has read the characters from the MPM before it continues with the boot procedure ame PHOENIX 4 11 CONTACT l nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Installation and First Startup 4 2 7 Data Transmission Between COP and Development Environment Terminal mode only IBS PC CB COP I T and IBS PC CB RTX486 I T The data transmission path terminal mode between the coprocessor board and the development environment TDOS PRO IBS PC COP SWT or the terminal program DPCON is on the tool diskette may be via the MPM or via the ser
123. e 009Chex No furt her parameters follow Quit_Set_Parameter_Timeout_Confirmation00CF ex Meaning The Set Parameter Timeout Constant Request 0034hex was executed Syntax The message consists only of one word the message code 0034hex No furt her parameters follow Quit_Enable_All_Messages_Confirmation00D6hex Meaning The Enable All Messages Request command 0047hex was executed syntax The message consists only of one word the message code 00D6hex No furt her parameters follow Quit_Disable_All_Messages_Confirmation00D7hax Meaning Das Kommando Enable All Messages Request 0048hex was executed Syntax The message consists only of one word the message code 00D7hex No furt her parameters follow wee PHCENIX 9 31 CONTACT InterBus S Messages of the IBS Master Board Meaning syntax Key 9 32 Word 1 Word 2 Word 3 Word 10 Word 11 Word 26 Word 27 Word 42 Word 43 Word 58 Word 59 Word 65 Word 66 Word 79 Bit THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS 9 7 System Monitoring Messages Software Revision Confirmation80871ex Output of the controller board version The parameter data is entered in the ASCII code Code Parameter count Vendor name Host type Controller board Option Firmware Date Parameter block Vendor name Parameter block Host type Parameter block Controller board Parameter block Option Parameter block Firmware Pa
124. e only at even addresses Quit_Receive_Logical_Out Address Map Confirmation 00D2hex The list will only be valid after the successful execution of the Implement_All_Logical_Address_Maps_Request 0040 command PHCENIX 8 15 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Commands for the IBS Master Board Task A Syntax Positive acknowledgment Negative acknowledgment Task syntax Positive acknowledgment Task syntax Positive acknowledgment 8 16 Implement_All_Logical_Address_Maps_Request0040 The controller board checks the previously transferred address lists and accepts them if they do not contain errors The command may only be used while the bus data cycle is not active The pre viously sent lists are checked and accepted if they do not contain errors In the event of an error you can inquire the error causes with the Send Log Address Error Request 005Fhex command The command consists only of a single word the command code 0040 hex No further parameters follow Quit_Implement_Confirmation 00D3hex Meaning The addresses are valid and have been accepted Logical Address Error Confirmation 002Bheax Meaning The lists to be implemented logical addresses contain faulty values The bus is in the STOP state The process input data is not switched into a defined safe state Send Log Address Error Request005Fhex The results of a previous
125. e Section 4 Before starting the monitor program be sure to start the driver IBSPCCB EXE for the controller board If you retained the default settings for your controller board you do not need to transfer parameters when calling the driver The batch file MONI BAT which is also on the diskette provides an easy way of starting the drivers and the monitor program with one call When you have connected a bus configuration you can check it with the monitor program without the need to program a single line wee PHCENIX 1 3 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Introduction and Overview 1 4 1 2 Programming Fundamentals The driver software accesses the controller board s multi port memory via a 4 kbyte window in the PC memory area between 640 KB and 1 MB The following functions are available for this Functions for opening and closing data channels Functions for writing commands and reading messages mailbox interface works with handshake signals and interrupt control fea tures Functions for reading and writing I O data data interface works without acknowledgment Diagnostic functions for monitoring the controller board s state When opening a data channel you will receive a node handle in response which similar to the handle in the case of a file access specifies the data chan nel and must be entered when data is to be read or written see driver software manual Be PC CB
126. e command code 005E hex No further parameters follow Send Physical Configuration 80F4hex Meaning The acknowledgment transfers the bus configuration 5036C PHOENIX CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Configuration Commands stored in the controller board RAM in the form of length and ID codes Negative acknowledgment No_Executable Configuration 004A Meaning No bus system was connected during hardware startup power on configuration or after the last reset Send_Actual_Configuration_Request010Dhex Task This command causes the IBS master board to transfer the currently connected bus configuration to the host with the Send Actual Configuration Confirmation message 8119hex Comment Contrary to the Send_Physical_Configuration_Request command 05Ehex not the bus configuration stored in the controller board RAM is transferred but the actually connected configuration I lf the bus is in the STOP state at the moment when the command is called the currently connected bus configuration cannot be transferred Instead the last configuration connected before the stop is transferred The IBS master board will not recognize any configuration changes carried out after the bus has stop ped Only starting the bus or carrying out a new configuration with the Configure_Bus_Request 0023hex or Check Physical Configurationcommand 0058hex will cause these changes to be taken into account
127. eatures Electrical characteristics voltage and current ranges Mechanical characteristics degree of protection type of connection installa tion possibilities etc Program characteristics e g required address area in the host The manual introduces the design types of the Phoenix Contact product families available and their features and ordering data In addition a collection of all data sheets available is enclosed Installing your InterBus S system Please refer to the installation manual IBS SYS INST UM E Order No 27 54 80 4 for installation instructions for I O components IBS devices modu les cables etc The manual contains several sections with information on the following subjects System overview Installation of the I O components Recommended cabling I O startup and function test Fault clearance Replacement of IBS components Cable plans Table 1 1 Ordering data for the documents available Controller board system folder Me PC CB UM E 27 a 752 Controller board user manual Tool diskette Manual on the fundamentals and application of the Peripherals Communication Protocol PCP Controller board user manual separate copy IBS PC CB HW UME 27 47167 also included in the system binder Driver software manual IBS PC CB SWD UME 27 53 960 is also Supplied with the driver software package IBS PC CB SWD Manual on the fundamentals and application of the IBS PCP UME 27 53 93
128. ec 0 ositos eee ee en err eee ee ee Manual data Revision Order NO 000008 My Opinion on the Manual Form Yes Inpart No Is the Table of Contents clearly arranged o TI re the figures diagrams easy to understand meaningful CJ CJ CJ Does the page layout make it easy to locate the required information CJ CJ CJ Is the chapter overview detailed enough CJ nm Mm Do the corresponding explanations of the figures suffice CJ CJ CJ Does the quality of the figures clear self explaining meet your 0 CJ CJ expectations requirements Do the index entries guide you to the relevant information CJ CJ CJ Contents Yes Inpart No Are the technical terms easy to understand meaningful CJ CJ CJ Is the wording always easy to understand meaningful CJ CT CT Are the index entries easy to understand meaningful CJ CJ CJ Which reference list Table of Contents Figures Tables Index do you use most when you search for information Is any important information missing CJ CJ CJ If so which Are the examples practice oriented nm Is the manual easy to handle CJ CJ CJ Do you wish more space for your own notes CJ have the following suggestion s commenit s 5050CF17 DNR 2533
129. ed The message consists only of one word the message code 00BFex No furt her parameters follow Quit_Enable_Event_Number_Confirmation00DA x The Enable Event Number Request command 002Bhex was executed The message consists only of one word the message code 00DApex No furt her parameters follow Quit_Disable_Event_Number_Confirmation00DB ex The Disable Event Number Request 002Chex command was executed The message consists only of one word the message code 00DB ex No furt her parameters follow Quit Enable All Events_Confirmation00DChex The Enable All Events Request 002D x command was executed The message consists only of one word the message code 00DC pex No furt her parameters follow Quit_Disable_All Events_Confirmation00DD ex The Disable_All_Events_Request command 002Ehex was executed The message consists only of one word the message code OODD No furt her parameters follow Quit Set Event Message Type Confirmation00DE ex The Set Event Message Type Request command 004Dhex was executed PHOENIX ROTOS CONTACT syntax Meaning syntax Meaning syntax Meaning syntax 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S ER awww ww Event Processing Messages The message consists only of one word the message code OODE No furt her parameters follow Set_Event_Message_Type_Failed_Confirmation00DF The Set Event Message Type Request 004Dhe
130. ed in this way informs you of system related maximum and minimum conditions that must absolutely be observed to achieve error free operation The hand is also found in front of clarifications of terms The text symbol refers to detailed sources of information manuals data sheets literature etc on the subject matter product etc This text also provides helpful infomation for the orientation reading order etc in the manual We are Interested in Your Opinion We are constantly attempting to improve the quality of our manuals Should you have any suggestions or recommendations for improvement of the contents and layout of our manuals we would appreciate it if you would send us your comments Please use the universal telefax form at the end of the manual for this Statement of Legal Authority This manual including all illustrations contained herein is copyright protected Use of this manual by any third party in departure from the copyright provision is forbidden Reproduction translation or electronic or photographic archiving or alteration requires the express written consent of Phoenix Contact Violations are liable for damages Phoenix Contact reserves the right to make any technical changes that serve for the purpose of technical progress Phoenix Contact reserves all rights in the case of a patent award or listing of a registered design External products are always named without reference to patent rights The existence of s
131. ee 7 1 2 Diagnostic Indicators on Bus Terminal Modules 7 4 7 1 3 Diagnostic Indicators on IBS Devices with I O Functions 7 4 7 1 4 Diagnostics of IBS Devices from Other Manufacturers 7 5 7 2 Diagnostics with Software Tools 7 6 7 2 1 The Process Data Monitor Program 7 6 7 2 2 The Diagnostic and Configuration Software IBS SYS SWT 7 6 7 2 3 The InterBus ManagerIBSCMDSWT 7 7 fo Diagnostics by the Application Program o 7 7 foul Diagnostics of Controller Board and Bus Configuration 7 7 7 3 1 1 Error Type i uw kom 1 9 7 3 1 2 Meanings of Controller Board Error Numbers a e oe e amp 1 10 5036C PHCENIX 7 1 CONTACT 7 2 PHCENIX CONTACT onlinecomponents com THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS EEE S awww ww Error Diagnostics 7 Error Diagnostics 5036C InterBus S provides comprehensive error diagnostics 7 1 Hardware Diagnostics 7 1 1 Diagnostic Indicators on the Controller Board The controller board has 4 LEDs for easy status diagnostics on its PC board holder 2 1 gt 1 4 3 RESET RESET O O 3 3 O E O o o 0 gt o5 amp oo al o al 0 2 O 2 O oc oe 5 E IBS PC CB COP I T IBS PC CB I T IBS PC CB RTX486 I T 8086800 Figure 7 1 Diagnostic Indicators on the PC board holder 1 External MA READY LED 2
132. er No 27 53 93 1 The message consists only of one word the message code 0069hex No furt her parameters follow No_Map_Entry_Confirmation00EDhex This message is sent when there are no entries for commands which are to send a list or table in any form Check your application program The message consists only of one word the message code 00EDhex No furt her parameters follow Quit Module Error Ok Confirmation00FE y This message is the positive acknowledgment of the Quit Module Error Request 0064 and Quit Module Error All Request 0065hex commands The message consists only of one word the message code 00FEpex No furt her parameters follow PHOENIX 9 19 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Messages of the IBS Master Board Meaning Causes syntax Word 1 Word 2 Word 3 Word 4 Word n 2 Bit Key Meaning syntax Word 1 Word 2 Word 3 Bit Key 9 20 Module_Error_Indication80A0 ex An error was found on one or more IBS devices with error indication feature De pending on the addressing type used the parameters indicate the logical or the physical addresses of the affected bus segments 1 O voltage failure Blown fuse The current limiting feature has responded oa A 0 Code Message code here 80A0hex Parameter count Number of subsequent words here number of bus seg ments where a module error was detected Bus segmen
133. erating systems DOS Microsoft Windows and IBM OS 22 in connection with various compilers It is also included in the driver software package Be PC CB SWD Order No 27 64 70 7 Description of the developing environment TDOS PRO only for IBS PC CB COP I T The developing environment TDOS PRO IBS PC COP SWT Order No 27 52 12 3 allows to download a program to the COP386 The relevant docu mentation is enclosed Description of the operating system RTXDOS only for IBS PC CB RTX486 I T The RTX DOS manual describes the special extensions and features of the DOS compatible operating system for the COP486 Communication via InterBus S PCP The Peripherals Communication Protocol PCP is used for transmitting para meterization data to intelligent IBS devices or for communicating with an IBS de vice with V24 interface PCP is a software interface based on the InterBus S basic protocol and allows the transmission of non time critical large volumes of data almost independent of the process data The IBS PCP UM E manual Order No 27 53 93 1 describes the fundamentals and the application of the Peripherals Communication Protocol PHCENIX ii CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Documentation Configuring your InterBus S system The configuration manual BS SYS PRO UM E Order No 27 51 00 1 provides information on the selection of components for your IBS system It describes the following f
134. error as follow up information Error description Optional follow up information with the error types EE02 and EEO3 The individual parameters are explained in the following descriptions of the individual error types PHOENIX ii CONTACT Meaning Cause Remedy syntax Word 1 Word 2 Word 3 Bit Key 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HENAO awww ww Error Handling Messages Error type EE01 A bus check did not reveal an error in the currently permissible configuration However there is an error in the bus installation A short disruption of the data transmission Check the system for missing or improper bus cable shielding connectors missing or improper grounding potential equalization voltage dips on the logic supply of the remote bus devices Code Message code here 80C4 Parameter count Number of subsequent words here 1 Error type Here EEO1 PHCENIX 9 23 CONTACT nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Messages of the IBS Master Board Error type EE02 Meaning Configuration changes which do not allow that the data traffic on the bus continues Cause The maximum permissible number of IBS words was exceeded The maximum permissible number of IBS modules was exceeded syntax Word 1 Word 2 Word 3 Word 4 Bit Key Code Message code here 80C4 Parameter count Number of subsequent words here 2 Error type Here EE0
135. es a previously defined group of bus segments The out puts of the IBS devices in the disabled bus segment and the associated inputs of the host control system or computer system are set to 0 Before this command is called a group definition Receive Group Numbers Request 0049hex must have been carried out The instructions of process data links which work with addresses within the disabled groups are no longer active Using the application program ensure that the system state allows this The input process data is set to zero Code Command code here 0021hex Parameter count Number of subsequent words here 1 Group number Number of the group to be disabled 0 to 255gec corresponds to 00hex to FFhex When a system part is disabled the supply function for the module electronics logic voltage must be retained for the included IBS devices with bus terminal module functionality to ensure that the operation of the remaining bus configu ration can continue Switch Group Off Confirmation 809Dhex PHOENIX ii CONTACT Negative acknowledgment Task Prerequisite Positive acknowledgment syntax Word 1 Word 2 Word 3 Bit Key Negative acknowledgment Negative acknowledgment 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEMOS w ww ww Configuration Commands Not Expected Group Number 0059hex Meaning Unknown or invalid group numbers attempt to disable a module that cann
136. es on the addresses for conditional process data linkage IS When the specified bit in the bit manipulation register has been set the instruc tions behave like Reset 01 and Reset 10 When the specified bit in the bit ma nipulation register has not been set the instruction has no effect and no process data linkage takes place The bit manipulation register must be defined before the instructions Reset Out In01 Switch and Reset Out In10 Switch are used For this purpo se enter a pseudo module ID code 0013hex as the last module of the confi guration Then assign with logical addressing the address of the bit manipulation register to this pseudo module 3 lf you use the process input word of a real digital input module instead of the bit manipulation register you can determine from within the system e g with a keyswitch whether the process data linkage is to be effective or not 8 34 PHGNIX 5036C CONTACT Task syntax Key 5036C Word 1 Word 2 Word 3 Word 4 Word 5 Word 6 Word 7 Bit THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEMOS awww ww Process Data Linkage Commands Reset2_Out_In01_Switch 0009 Instruction This instruction causes a particular bit in the specified output word to be reset when the positive edge of a particular bit in the specified input word is detected provided that a particular bit in the bit manipulation register is set Transfer the instruction to the controller board us
137. essages of the IBS Master Board PHCENIX ii CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS EEE S awww ww Error Type 7 3 1 1 Error Type The controller board indicates the occurrence of an error on InterBus S with the message Bus_System_Error_Indication 0038hex This message is followed by the message Bus Error Information Indication 80C4pex which contains detailed information on the error condition of the bus system The first parameter of this message specifies the error type Firmware version 3 72 distinguishes six different error types Table 7 1 Error types in firmware version 3 72 ie BEC Following the occurrence Cabling error Check the remote bus and of the error no error was Shielding error local bus cabling found in the acquisition and Check the voltage supply comparison of the configu Tool IBS SYS SWT or IBS ration CMD SWT EEO2 The maximum configuration Too many devices or Check the addressing lists and was exceeded register locations the configuration Up to 256 bus terminal modules and 256 words total of all register length and of the PCP words permissible on the data ring EEO3 Error in a bus segment Defect in the bus ter Correct the error causes With minal module or in the the error EEO3 the diagnostic adjacent remote bus parameter register that can be cable read out with the diagnostic Defective local bus function Get BSDiagnostic cable or module indicates the number
138. f the group to which the bus segment mentioned in the previous line is assigned 0 to 255ye corresponding to 00hex to FFhex Assign a group number from 0 to 255 to all bus segments BS with the excep tion of the segments in the branch lines RB level 1 PHOENIX 8 9 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Commands for the IBS Master Board RS Positive acknowledgment Negative acknowledgment Task Prerequisite syntax Word 1 Word 2 Word 3 Bit Key Positive acknowledgment 8 10 Assign separate group numbers to all remote bus devices e g bus terminal modules with I O function IBS devices without branching off lines no local bus connection no remote bus branch also get a group number of their own According to the type of addressing enter the logical or physical bus segment number in the bus segment parameter Bus segment numbers may be assigned only once Enter only IBS devices that are in the main line of the bus configuration RB level 0 Devices in the remote bus branch or in the local bus RB level 1 are included in the group definition by assigning the bus terminal module at the beginning of this branch line to a group Quit Receive Group Numbers Confirmation 0OOBDhex Receive Group Numbers Failed Confirmation 0055 pex Meaning An error was detected when the group was checked Switch Group Off Request0021hex The command disabl
139. fold the shield braid evenly back onto the cable sheath 3 After soldering on the wire ends clamp a large surface of the shield braid 2 12 PHCENIX 5036C CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S ER ewww ww Controller Board Functional Units which now lies on the cable sheath under the conductive strain relief For fault free InterBus S operation the remote bus cable shield braid must be AN connected to PE on the controller board Use only subminiature D connectors with metal plated or metal housings Always ensure that a large surface of the remote bus cable shield braid is in contact with the conductive strain relief conductively connected with the connector shell Ground the controller board via the ground pin Figure 2 2 2 4 Controller Board Functional Units 2 4 1 AT Bus Interface The AT bus interface has an 8 bit data bus and a 24 bit address bus Besides data address and control line buffering it comprises the address decoding feature and the setting facilities for the 8 byte I O address area and the 4 Kbyte memory window to the MPM In addition interrupt signals from the MPM control logic are supplied to the AT bus for the communication with the daughterboards via the MPM They can be switched to the interrupt inputs of the PC The functionality of the AT bus interface is described in the following 2 4 1 1 I O Base Address in the Host For each controller board an I O address area of 8 bytes is
140. functions RAM 1FFFF 64 Kbyte ne BFFFFhex SRAM 10000 base B0000 hex 64 Kbyte BFFFFhex SRAM 00000 hex 5036A304 Figure 3 4 SRAM segmentation on the COP386 of the IBS PC CB COP I T IBS PC CB RTX486 I T The SRAM on the COP486 is accessed as drive Di and therefore can be used as RAM disk by means of usual DOS functions The program RDRCONF EXE is used to parameterize the type of access to the SRAM of the COP486 You can for example also set the addressing described for the COP386 in two 64 Kbyte blocks This manual comes complete with RDRCONF EXE 3 4 2 3 Dynamic RAM The coprocessor board contains 2 Mbytes of dynamic RAM DRAM as main memory The main memory is operated with O RAM wait states and in the page interleave mode which increases the processing speed PHOENIX 3 11 CONTACT l nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Technical Description of the Coprocessor Boards As the coprocessor board works in the real mode because there is no keyboard controller the use of the second megabyte 100000hex to 1FFFFFhex is only possible when the EMS functions are used For this purpose there is an EMS driver on the tool diskette Table 3 6 DRAM segmentation a LEE EA ee See WD Tg OFOOOOhex to OFFFFFhex F _0E0000nex to OEFFFFhex E DRAM 00000085 to 0DFFFFne D 0C0000hex to OCFFFFhee C OBOO00hex to OBFFFFhex B Mappingwindow _ 0A0000nex to OAFFFFhex A
141. he base address in the PC s I O area and the board number Jumper reset not IBS PC CB I T For separating the controller board from the PCs hardware reset This jumper is used to configure the controller board so that it keeps operating even when a PC hardware reset has been initiated Serial interface not IBS PC CB I T RS 232 interface of the coprocessor board Connector for the RAM back up battery pack on the coprocessor board not IBS PC CB I T Internal coprocessor board status LED green not IBS PC CB I T For convenient status indication while the PC housing is open DIP switch not IBS PC CB I T for setting the coprocessor board boot configuration not IBS PC CB I T Coprocessor board voltage supply indicator LEDs not IBS PC CB I T The green LED indicates that the external supply voltage for the controller board is applied When the red LED is constantly on the battery pack voltage has fallen below the permissible minimum value In this case please replace the battery pack Supply jumper not IBS PC CB I T The jumper is used to select whether the controller board is to obtain its supply voltage from the AT bus or via the terminals for external supply Supply terminal not IBS PC CB I T Terminal for feeding in the external supply voltage This terminal is used to supply the controller board with a voltage 5V DC 1 5A from an external power pack Battery pack not IBS PC CB I T for back up of the CMOS SRAM and of the
142. he permissible PC I O addresses with the required settings gt Switches 3 and 4 are OFF on delivery Please do not change these settings 5036C PHGNIX 4 3 CONTACT nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Installation and First Startup Table 4 1 Possible settings for the base address in the I O area PC lO address Switch 5 Switeh6 Switch7 Switch OFF 120hex default ON OFF OFF To ORF ON or OFF 60 ON ON OFF ame IOFF IoFF O OJON S Anex ON S Boe JON ION S OFF ao on for OFF ao OFF ON lo ON IN ON S ON S MA JA ON on Up to four controller boards can be used in one PC Set the same base address on all four controller boards The controller boards are distinguished by means of the board number 4 1 2 Board Number Board No If several controller boards are operated in one host PC the boards are distinguished by means of the board number 1 to 4 set with DIP switches on the motherboard In this case the same base address must be set on the controller boards The board number then effects an automatic offset of 0hex 8hex 10hex Or 18hex relative to the base address in the PC I O area 5036B507 N123 45 67 8 Figure 4 2 Switches for setting the board number board no I lf you want to use four controller boards 32 bytes 4 times 8 bytes in the PC I O area from the set base address onwards must be free 4 4 PHGNIX 50960 CON
143. heck 8 8 Bus configuration reading in 8 6 Bus segment 6 3 Bus segment number assignment 6 16 Bus segment numbering 8 13 Bus start 8 16 C Cable types 2 12 Commands 8 3 Communication 1 6 Controller board error number 7 10 COP 3 3 COP adapter cable 3 6 COP EPROMs 3 10 COP interrupt assignment 3 10 Coprocessor board 2 4 Coprocessor board watchdog 3 14 D Data consistency 2 14 5 12 6 20 6 24 Data interface 5 12 Device driver 5 8 Device driver installation 4 16 Device driver interface 5 8 Device driver installation 4 18 Device name 5 10 5 13 Diagnostic cable 2 10 Diagnostic function 5 12 7 8 Diagnostic indicators 7 3 Diagnostic interface 2 6 2 10 Diagnostics 7 3 THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE G R awww ww Index Diagnostics on I O modules 7 5 Documentation 1 6 Download 5 16 DPCON 4 9 4 11 DRAM of the COP 3 11 Driver software 5 7 DTI address 5 6 DTI transfer areas 5 7 Dynamic Link Library for Windows 4 20 E EMM386 EXE 4 19 Enable Disable RESET 4 14 Enable Disable RESET Button 4 14 EPROM start 4 8 EPROM Start 4 8 Error type 7 9 9 22 Event definition 8 38 External supply voltage 4 13 F Firmware version inquiry 8 27 Front plate 2 6 G Ground pin 2 4 2 6 Group definition 6 29 Group disabling 6 32 8 10 Group enabling 6 33 8 11 Group handling in the event of errors 6 33 8 12 Grouping 6 29 8 9 H Hardware interrupt 4 17 I O address 4 3
144. heir physical arrangement The list becomes valid only after a successful execution of the Implement_All_Logical_Address_Maps_Request 0040hex program PHOENIX ii CONTACT onlinecomponents com THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Assignment of Logical Bus Segment Numbers Controller board IBSST IBST24 IBST 24 IB ST 24 IB ST 24 24 BK T DI 16 4 AO 4 SF DO 16 3 PT 100 4 4 Bus segment No 21 15 IBS IP DIO 1 24 Bus segment No 11 OB 2 Bus segment Bus segment Bus segment No 23 17 No 24 18 No 25 1 bed IBS IP CBK 1 24 IBS IP CDI 1 24 F IBS IP CDO 1 24 F Bus segment IBS IP CDI 1 24 F Bus segment 7 No 12 OC No 22 1 Ghex aN AAW IBS Al 3 TECN III IBS DI 32 OD Cy IBS 24 BK I O Ve Ve 5036B704 Figure 6 9 Numbering of the bus segments under logical addressing event PHCENIX 6 17 CONTACT nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS InterBus S specific Programming Buffer in the programming language C EEE AA Receive Local Bus Code Map Request to implement logi
145. his branch line to a group This example uses the bus segment numbers assigned in Section 6 3 3 see Figure 6 9 5036C PHCENIX 6 29 CONTACT InterBus S InterBus S specific Programming Bus segment no 21 15hex segment no 11 OBhex Bus segment no 22 16hex Bus segment no 12 OC hex THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Controller board Group 3 IBSST IBST24 IBST24 _ IBST 24 IB ST 24 24 BK T DI 16 4 AO 4 SF DO16 3 PT 100 4 4 IBS IP DIO 1 24 IBS IP CBK 1 24 Group 3 IBS IP CDI 1 24 F IBS IP CDO 1 24 F IBS IP CDI 1 24 F oo A LJ f AN f EN IBS IBS DI 32 Al3 i KE 5036B707 Figure 6 17 Division into logical functional groups 6 30 PHOENIX ii CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS EEE S ER awww ww Creating Functional Groups Buffer in the programming language C KKK KKK KK KKK KK KK KK KK AA Receive Group Numbers Request to implement logical groups FR KKK KK KK KK KK KK K
146. ial interfaces of the coprocessor board and of the PC This is set with DIP switch 8 5036A517 uii 00 0000 Figure 4 9 Switch for setting the data transmission path terminal mode Table 4 9 Setting the terminal mode ON default Via the MPM OFF Via the serial interfaces RS232 gt The development environment 7DOS PRO IBS PC COP SWT is not compati ble with the COP486 of the IBS PC CB RTX486 1 T and is not required for it If the connection is to be effected via the serial interfaces these must be inter connected by means of the adapter cable Be PC COP RS 232 CAB and the development cable see Section 3 Both cables are supplied with the develop ment environment TDOS PRO gt Set switch 8 to ON if you want to use the serial interface of your coprocessor board for functions of your application program 4 12 PHCENIX 50360 CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S ER ewww ww Jumper Settings 4 3 Jumper Settings 50360431 Figure 4 10 Jumpers for controller board parameterization 22 Terminal for feeding in the external supply voltage not on IBS PC CB I T The controller board is parameterized via the following jumpers 21 Jumper for voltage supply selection not on IBS PC CB I T 15 Jumper for separation from the PC hardware reset not on IBS PC CB I T 11 Jumper for disabling the reset buttons 4 3 1 Power Sup
147. ible IBS devices with indication hold feature Comment For each IBS device whose module error could not be acknowledged the message contains two parameters with a more detailed description of the cause see des cription of the message 80FFhex Set_BK_Alarm_Logical_Request0024 The command sets the alarm output of the BK module There must be an alarm output on the accessed BK module If the accessed module has no alarm output a positive acknowledgment is ge nerated Code Parameter count Log bus segment Command code here 0024 Number of subsequent words here 1 Enter here the logical bus segment number 0 to 2554eg corresponds to 00hex to FFhex of the bus terminal module whose alarm output you want to set Quit Set BK Alarm Logical Confirmation 00CBhex BK Alarm Failed Confirmation OO5Aphex Meaning Invalid local bus address PHOENIX 8 23 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Commands for the IBS Master Board Task Prerequisite syntax Word 1 Word 2 Word 3 Bit Key Positive acknowledgment Negative acknowledgment Task Prerequisite syntax Word 1 Word 2 Word 3 Bit Key 8 24 Reset_BK_Alarm_Logical_Request0025 The command resets the alarm output of a BK module There must be an alarm output on the accessed BK module and it must have been set Code Parameter count Log bus segment Command code
148. ign n A 24 2 2 1 Layout of the Controller Board ESA 24 2 2 2 FunctionoftheLEDs 27 2 3 Controller Board Interfaces Loewe ew ee 2 8 2 3 1 Connection of the Motherboard with Your PC La sd 2 8 2 3 2 Connection Between Motherboard and the Daughterboards 2 10 2 3 2 1 Interfaces of the IBS Master Board 2 10 2 4 Controller Board Functional Units 2 13 2 4 1 AT Bus Interface 2 2 4 1 1 1 0 Base Address in the Host s ew tt ewe ew a 2513 2 4 2 Multi Port Memory 2 14 2 4 2 1 MPM Access Method 2 14 2 4 3 Interrupt Functions pe amp amp oe es w amp amp 2 eho 2 4 4 Voltage Monitoring Reset System Jeb ob eee 5 2 4 5 Watchdog for Monitoring the Host PO 2 15 2 4 6 Power Supply ee ew ee y 2 16 2 4 6 1 Electrically Isolated IBS Power Supply Coe ee ew ee ee 2 16 5036C PHCENIX 2 1 CONTACT 2 2 PHCENIX CONTACT onlinecomponents com THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS EEE S ER awww ww Technical Description of the Motherboard 2 Technical Description of the Motherboard 5036C 2 1 Short Description The IBS PC CB l T controller boards are used to interface InterBus S to an 100 IBM compatible standard PC AT 80386 80486 etc which will be referred to as host PC in the following The controller boards
149. ime Clock The coprocessor boards have a quartz driven real time clock It is backed up by the battery pack on the motherboard The real time clock is PC compatible The development environment TDOS PRO IBS PC COP SWT provides the program RTCINIT EXE to set the date and time on the COP386 Download the program with the development environment to the coprocessor board and Start it Then you can set the date and the time On the COP486 RTXDOS allows the setting of date and time with the usual DOS commmands Use of timers Like on a normal PC timer 0 which normally calls interrupt 1C 18 times in a se cond can also be set to different values The timer is as usual accesssed via the I O addresses 40hexto 43hex You will find numerous detailed articles on the programming of timers in the PC reference literature 3 4 8 Coprocessor Board Power Supply The coprocessor board was designed so that a 5 V supply is normally suf ficient The situation is different when flash EPROMs with a programming volta ge 12 V are used With this type of EPROM a 12 V supply is required in addition to the 5 V This voltage is provided on the mother board of the IBS controller Thanks to the CMOS components used the total current consumption of the co processor board is only 400 mA With the flash EPROM programming with a pro gramming voltage of 12 V an additional current consumption of approx 40 mA must be taken into account 5036C PHGNIX 3 15 C
150. inal functionality In this case the IBS master board immediately stops the cyclic operation of the IBS system resets all outputs and sends the message Bus System Error Indication 0038hex Then the IBS master board searches through the IBS system and indicates the error causes in the message Bus_Error_Information_Indication 80C4 Refer to Section 9 for further infor mation on this message The message Bus_Error_Information_Indication 80C4 gives a very detailed description of the errors An easier method is the use of the diagnostic function GetlBSDiagnostic lt provides only the essential information and facilitates a quick diagnostic analysis of the IBS system After the cause of the error has been removed for example the defective bus segment is disabled by means of a command the IBS system can be restarted See Section 6 Command Sequence for InterBus Startup In addition the diagnostic function can be used to determine by inquiring the Ready bit whether the IBS master board is ready again during a restart or after a warmstart with the Warmstart_Request 004C command to determine by inquiring the Run bit whether the IBS master board is operating the bus and whether the I O data Is cyclically updated Further information on the messages Module Error Ind 80A0hex Bus System Error Indication 003846 Bus Error Information Indication 80C4hex and on further error messages is available in Section 9 M
151. ing the command Receive Processing Instructions Request 005Dhex Code Bit number BitmanRegAdr Output address Input address Instruction code here 00091 6x Enter here the number of the desired bit Ohex to Fhex corresponds to 0dec to 15 ge Address of the bit manipulation register Address of the word with the bit manipulated by the bit manipulation Address of the word with the bit determining the bit ma nipulation PHCENIX 8 39 CONTACT InterBus S Commands for the IBS Master Board THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Reset2 Out In10 Switch 000Ahex Instruction Task This instruction causes a particular bit in the specified output word to be reset when the negative edge of a particular bit in the specified input word is detected provided that a particular bit in the bit manipulation register is set Transfer the instruction to the controller board using the command Receive Processing Instructions Request 005Dhex Syntax Word 1 Word 2 Word 3 Word 4 Word 5 Word 6 Word 7 Bit Key Code Bit number BitmanRegAdr Output address Input address 8 36 Instruction code here 000A nx Enter here the number of the desired bit Ohex to Fhex corresponds to 0dec to 15 ge Address of the bit manipulation register Address of the word with the bit manipulated by the bit manipulation Address of the word with the bit determining the bit ma nipulation PHCENIX peer CONTACT Task s
152. ious diagnostic software tools are available which allow to access your bus configuration without major programming efforts The process data monitor program PCCBMONI EXE is supplied with the driver software The diagnostic and configuration software IBS SYS SWT under DOS Order No 27 52 73 8 The InterBus manager IBS CMD SWT a graphics oriented program which allows to configure monitor and diagnose your IBS system under Microsoft Windows Order No 27 50 97 6 7 2 1 The Process Data Monitor Program A process data monitor program is supplied with the driver software for IBS PC CB I T Load the PCCBMONI EXE file from the driver diskette into a directory on your hard disk from where you start the process data monitor program by calling PC CBMONI The program provides the following services First startup of an InterBus S system without any programming Test of your bus configuration Check of the connected configuration Indication of the status of individual inputs binary Indication fo the status of input words hexadecimal Setting of individual outputs binary Setting of output words hexadecimal Resetting of the InterBus S system The operation of the monitor program is described in detail in Section 4 7 2 2 The Diagnostic and Configuration Software IBS SYS SWT The BS SYS SWT program Order No 27 52 73 8 is a user interface for InterBus S on IBM compatible PCs under DOS It transfers p
153. kes place automatically Scroll through the lines with T or 1 When the number of parameters to be displayed in the right window exceeds the permissible range number of parameters gt 13 scroll through the parameter list with SHIFT T or SHIFT J Using the following key combinations you can change between the windows of the Functions pull down menu ALT P Change to the Process Data window ALT I Change to the Info window ALT O Change to the Command window Using the keys Esc X or Alt X you can go to the next higher menu level 5036C PHCENIX 4 29 CONTACT onlinecomponents com l nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Installation and First Startup 4 9 3 The Options Pull Down Menu General Functions Options Help Autostart IES Manual Start IBS Direct OUT Data Controlled OUT Data J Generate Data File Monitor Program InterBus 3 Version H 76R PHOENIX CONTACT 50364823 Figure 4 19 The Options pull down menu The pull down menu Options is used to configure the monitor program Use the menu items Autostart IBS or Manual Start IBS to select whether after an error has occurred the controller board automatically attempts to restart the connected bus system Autostart IBS With Manual Start IBS the restart takes place only after has been pressed Use the menu items Direct OUT Data or Controlled OUT Data whether the re spective output is changed immedi
154. knowledgment Task Prerequisite syntax Positive acknowledgment 5036C Code Parameter count X Event ID Event code Adresse Mask 1 Mask 2 THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Event Processing Commands Command code here 002Ahex Number of subsequent words here number z of the event definitions multiplied by 5 Number of event definitions 1 to 16 It identifies the individual events Assign for the 16 pos sible event definitions only event IDs that consist of a word with one bit set and 15 bits not set Thus the Event Number Indication message 8099hex can indi cate all events in one word by bit by bit ORing of the event IDs see the message description Assign the event code 000416 for the recognition of bit state transitions with digital modules Depending on the addressing mode used see Section 6 enter here the logical or physical address of the input word for which you want to define an event Use even byte addresses such as when assigning the logical addresses with the commands Receive_Logical_IN_Address_Map_Req 003Apex Receive_Logical_OUT_Address_Map_Req 003Bhex see Page 6 19 Specifies within the data word determined by the address those bits for which the indication of an event is initiated by a positive edge Set the desired bits to 1 Specifies within the data word determined by the address those bits for which the indication of a
155. l time multitasking operating systems may be used on request In the software development stage the data transmission between the operating system TDOS of the COP386 and the development tool TDOS PRO IBS PC COP SWT Order No 27 52 12 3 can be effected via the MPM or the serial in terface of the COP Using the RFSERVER EXE program which is to be started directly on the host the operating system RTXDOS of the COP486 can directly access the host mass storage units floppy drives hard disks RFSERVER EXE is on the dis kette supplied with this manual Table 3 2 COP 486 drives A 128 Kbytes in flash EPROM Device drivers and application programs CA 256 Kbytes in flash EPROM2 Application programs En Drive CA of the PC host hard disk Application programs data 128 Kbytes of static RAM battery backed up Application programs data 3 4 PHGNIX 5036C CONTACT 5036C onlinecomponents com THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Mechanical Design EPROM 1 128K x 8 COP386 256K x 8 COP486 EPROM 2 Memory mapper PR 256K x 8 COP486 DRAM S RAM 2MBx8 128K x 8 CPU SCATsx 386SX 25 MPM COP386 interface UART Serial interface 16C450 5036C301 S BUS X BUS 486SXLC 40 82C836 COP486 Voltage monitoring Watchdog Figure 3 1 Coprocessor board block diagram 3 2 Mechanical Design For the connection with the motherboard the coprocessor boa
156. language Pascal fs PS POE A AS IS RS EE IS DS NE ITS AS TR DSN RS ES SEE NERE ee E NR Re ee Receive Logical OUT Address Map Request ul ir tO amplemenc all out addresses mt E E 7 a a a a a a a a const out adr map array 1l 15 of word SO03B Command Code S000D Parameter Count 50000 IBN ST 24 BK T 50000 IB ST 24 DI 16 4 0014 RE ST 24 AO 4 SF 50000 IB ST 24 DO 16 3 S Ta T IBS PT 100 50004 IBS IP DIO 1 24 QUO IBS IP CBK 1 24 0000 IBS IP CDI 17 24 50002 IBS IP CDO 1 24 50000 TBS TP CDI 17 24 50006 IBS 24 BK I O T 50000 IBS 24 DI 32 SUULC s IBS AL 3 ee PHOENIX 6 25 CONTACT onlinecomponents com InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS InterBus S specific Programming Controller board IBSST IBST24 IBST24 IBST 24 IB ST 24 24 BK T DI 16 4 AO 4 SF DO 16 3 PT 100 4 4 VSSsgesgssgggs IBS IP DIO 1 24 IBS IP CBK 1 24 IBS IP CDI 1 24 F IBS IP CDO 1 24 F IBS IP CDI 1 24 F OW 1 10 ESEEEEEE f I N SN f ZST N IBS IBS Al 3 5036A706 Figure 6 14 Output addresses under logical addressing 6 26 PHCENIX 5036C CONTACT 5036C onlinecomponents com THE ONL
157. lation remote bus devices have a bus segment number of their own see Figure 6 2 bus segments 2 to 5 PHCENIX 6 3 CONTACT nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS InterBus S specific Programming 6 1 2 Bus Configuration Example The following pages contain examples to describe the different types of addressing The bus configuration shown is the same for all examples and consists of the following Table 6 1 IBS devices of the configuration example CS Refer to the IBS device overview for the length and ID codes for all Phoenix Contact IBS devices 6 4 PHGNIX 5036C CONTACT onlinecomponents com THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Bus Configuration Example Controller board IBS ST IBST 24 IB ST 24 IB ST 24 IB ST 24 24 BK T DI 16 4 AO 4 SF DO 16 3 PT 100 4 4 IBS IP DIO 1 24 BS 1 IBS IP CBK 1 24 BS 2 IBS IP CDI 1 24 F BS 3 o IBS IP CDO 1 24 F BS 4 a o IBS IP CDI 1 24 F 9 FEE IN f 7 N O UJ BS 6 IBS 24 IBS IBS BK I O T DI 32 Al 3 Wii Wi i 5036A700 Figure 6 2 Bus configuration for the addressing examples 5036C PHC NIX 6 5 CO
158. ler boards in one host Up to four IBS controller boards can be installed in one host One device driver must be installed for each IBS controller board The device driver interface carries out the management and control of all device drivers Application program Device driver interface Device driver Device driver Device driver Device driver 5036C405 Figure 5 8 Control of four device drivers by the device driver interface 9 8 PHOENIX dd CONTACT 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS EEE S awww ww Implementation of the DDI and the DD 5 2 1 Implementation of the DDI and the DD Please refer to the driver software manual IBS PC CB SWD UM E Order No 27 53 96 0 for the implementation of the device driver interface and of the device drivers for the various operating systems and the supported compilers 5 2 2 Structure of the Driver Software on the Coprocessor Board Application program Device driver interface Device driver 5036C417 Figure 5 9 Structure of the driver software on the coprocessor board COP Coprocessor programming does not differ from host programming under DOS A DOS program for the host may also be run on the coprocessor board Call the TSR program IBSCOP EXE instead of IBSPCCB EXE as device driver for the coprocessor board Transfer the device driver BSCOP EXE with the development environment TDOS PROto the COP386 of the IBS PC CB COP I T Refer to the develop
159. lid Receive Events Request 002Anex Command Quit Disable All Events Confirmation DODChex Meaning All event definitions were disabled No negative acknowledgment The command consists only of one word the command code 002E pex No furt her parameters follow Enable_Event_Number_Request002B The command enables a particular event definition The event definition must be available and must be valid Receive Events Request command 002Ahex Code Command code here 002Bhex Parameter count Number of subsequent words here 1 Event ID Enter here the ID of the event definition which you want to enable Quit Enable Event Number Confirmation 00DAhey Meaning The event definition has been enabled Event Error Confirmation 004Chex Meaning The specified event definition does not become effective The specified event definition does not exist The specified event definition is in the area of a disab led group 5036C PHOENIX CONTACT Task Prerequisite syntax Word 1 Word 2 Word 3 Bit Key Positive acknowledgment Negative acknowledgment Task Prerequisite syntax Word 1 Word 2 Word 3 Bit Key 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS BEE S awww ww Event Processing Commands Disable_Event_Number_Request002C The command enables a particular event definition The event definition must be available and valid Receive_Events_ Request 00
160. linkage IS In connection with process data linkage please use logical addressing as far as possible Process data linkage can on principle also be done under physical addressing but this would mean that if you want to expand your system later on you would have to adapt all address specifications in all assignment lists Under logical addressing you only need to add the new IBS devices to the assignment lists General functions of the process data linkage instructions The instructions control selectable process output data bits bus output bits on the basis of selectable process input data bits bus input bit and the output data written by the host host output bit The representation of the bits in the bus input word in Figure 8 2 is valid for a instructions which cause the bus output bits to reset on the occurrence of the positive edge of the bus input bit b instructions which cause the bus output bits to reset on the occurrence of the negative edge of the bus input bit The bit in the bit manipulation register is only relevant with the instructions for conditional process data linkage Reset Out In01 Switch and Reset Out In10 Switch 8 28 PHCENIX 5036C CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS EEE S awww ww Process Data Linkage Commands Bit in the bit manipula tion register a E Host output bit Bus output bit Section nae i Be a a Bus input bit
161. ly connected configuration syntax The message consists only of one word the message code 00AB ax No further parameters follow Send Physical Configuration Confirmation80F4 6x Meaning Positive acknowledgment of the Send Physical Configuration Request com mand 005Ehex It contains in the form of length and ID codes the physical bus configuration stored in the controller board RAM syntax Word 1 Word 2 Word 3 for device 1 Word 4 for device 2 Word 5 for device 3 Word n 2 for device n Bit Key Code Message code here 80F4 Parameter count Number of subsequent words here number of de vices Length code The length code describes the address space require ments of the IBS device in the host ID code ID code of the IBS device It is printed on the modules in decimal form as a Module ID 0 to 255gec corresponds to 00hex to FFhex 5036C PHGNIX 9 9 CONTACT nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Messages of the IBS Master Board IS The length code of IBS devices supporting communication PCP contains only their process data words Send_Actual_Configuration_Confirmation8119 Meaning Positive acknowledgment of the Send Actual Configuration Request 010Dhex Command It contains the currently connected bus configuration in the form of length and ID codes syntax Word 1 Word 2 Word 3 Word 4 for device no 1 Word 5 for device no 2 Word 6 for device no 3 Word n 2 for devi
162. mand Receive Processing Instructions Request command 005Dhex Code Bit number Output address Input address Instruction code here 0007hex Enter here the number of the desired bit Ohex to Fhex corresponds to Ogec to 15gec Address of the word with the bit manipulated by the bit manipulation Address of the word with the bit determining the bit ma nipulation PHCENIX 8 33 CONTACT nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Commands for the IBS Master Board Reset2_Out_In10 0008 Instruction Task This instruction causes a particular bit in the specified output word to be reset when the negative edge of a particular bit in the specified input word is detected Transfer the instruction to the controller board using the command Receive Processing Instructions Request command 005Dhex Syntax Word 1 Word 2 Word 3 Word 4 Word 5 Bit Key Code Instruction code here 0008hex Bit number Enter here the number of the desired bit Ohex to Fhex corresponds to Oye to 15gec Output address Address of the word with the bit manipulated by the bit manipulation Input address Address of the word with the bit determining the bit ma nipulation IS The instructions Reset2 Out In01 and Reset2_Out_ n10 are functionally equi valent with the instructions Reset Out In01 and Reset _Out_In10 However the instructions have a length of 5 words so that 16 bits are available for the addres Ses Not
163. mber of subsequent words here number of bus seg ments where a module error was found Bus segment Bus segment number for identifying the error locations 00hex to FFhex corresponds to 0 to 255gec PHCENIX 9 29 CONTACT nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Messages of the IBS Master Board Localbus_Module_Error_Confirmation80EEex Meaning This message is initiated by the Send_Localbus Module Error Request 005Bhex command It contains a list of all error indicating modules of the local bus specified in the Send_Localbus_Module_Error_Request with position and ID code syntax Word 1 Word 2 Word 3 for 1st error Word 4 indicating module fur xth error Word n 2 indicating module Bit Key Code Message code here 80EEhex Parameter count Number of subsequent words here number of bus seg ments where a module error was found multiplied by 2 Position Physical position number in the selected local bus Bus terminal modules 0 Local bus devices 1 to 8 ID code Module identification code It is printed as a Module ID on the modules in decimal form 0 to 255 gee Corresponds to OOhex to FFhex 9 30 PHGNIX 5036C CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww User Interface Messages 9 6 User Interface Messages Command_Disabled_Confirmation009C Meaning The previously issued command is disabled syntax The message consists only of one word the message cod
164. module or module in the specified local bus similar to DD01 02 06 DD18hex Short time error in a local bus 8 wire technology in operation due to cable or module error similar to DDO3 05 08 DD19hex A bus interruption or the voltage reset of a device was detected in the additional diagnostics phase DD1Ahex Multiple transmission errors between 2 error free data cycles corresponds to error type EE06 detected in the additional diagnostics phase DD2Bhex The connected configuration is longer than expected as the remote bus has been expanded compared with the configuration stored in the controller board RAM The error was detected in the additional diagnostics phase DD42hex Short time bus interruption due to the voltage reset of a device or defective bridge RBST in an outgoing remote bus connector DD5O0hex A remote bus or local bus error was detected in the additional diagnostics phase DDS They A local bus error was detected in the additional diagnostics phase DD52hex A remote bus error was detected in the additional diagnostics phase LULL 5036C PHGNIX 9 25 CONTACT nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Messages of the IBS Master Board Error type EE03 Meaning An error due to an electrical modification of the bus configuration e g open cir cult occurred while the bus was in operation Cause Remote bus Defective bus terminal module or upstream remote bus cable Local bus
165. mote bus device supply line logic voltage 15 A S 0 Code Message code here 80C4hex Parameter count Number of subsequent words here 1 Error type here EE04 Error type EE05 All InterBus S groups are disabled The last group which was still in operation has been disabled Check your application program 0 Code Message code here 80C4 Parameter count Number of subsequent words here 1 Error type here EE05 PHOENIX eee CONTACT Meaning Cause Remedy syntax Word 1 Word 2 Word 3 Bit Key Meaning syntax Word 1 Word 2 Word 3 Word 4 Word n 2 Bit Key 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS SEE S ER awww ww Error Handling Messages Error type EE06 No configuration error was found during the bus configuration acquisition and comparison However data cycles are not possible Defect of an IBS device Installation error see also error type EEO1 Occurrence of a multiple error which cannot be located Unidentifiable errors Check your bus configuration 15 Ra A 0 Code Message code here 80C4 Parameter count Number of subsequent words here 1 Error type Here EE06 Send_All_Module_Error_Confirmation80EF This message is initiated by the Send_All_Module_Error_Request command 005Chex The list contains all bus segments where a module indicates an error 0 Code Message code here 80EFhex Parameter count Nu
166. mper Settings bore kk Ek buk ee 4 ee 4 473 4 3 1 Power Supply Selection ae 4 13 4 3 2 Separation from the Host PC Hardware Reset PC HW RESET 4 14 4 3 3 Reset Button Disabling Enable Disable RESET Button 4 14 4 4 Connection of the Battery Pack o 4 15 4 5 Installation of the Controller Board in the PC 00 4 15 4 5 1 Serial Interface of the Coprocessor Board 4 16 4 6 Installation of the Device Driver 416 4 6 1 Device Driver under MS DOS 418 4 6 1 1 Installation Assistance for DOS 2 419 4 6 2 Device Driver Under Microsoft Windows 4 20 4 6 2 1 Installation Assistance for Microsoft Windows 4 21 4 6 3 Device Driver Under IBM OS 2 4 22 4 6 3 1 Installation Assistance for OS 2 a 4 22 4 7 Installation of the I O Periphery 423 4 8 Software Tools for Startup a 4 23 4 9 Startup with Process Data Monitor Program toe ew ew ww we 424 4 9 1 The Functions Pull Down Menu 2 425 4 9 2 Issuing Commands with PCCBMONI 4 28 4 9 3 The Options Pull Down Menu 4 30 PHOENIX 4 1 CONTACT 4 2 PHCENIX CONTACT onlinecomponents com THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS BEE G WE awww ww Installation and First Startup 4 Installation and First Startu
167. mum voltage an integrated voltage monitoring feature triggers a reset of the IBS controller board This prevents malfunctions on the InterBus S due to undefined conditions while the controller board is switched on off and due to voltage dips A reset of the controller board is triggered when the following conditions are met The voltage monitoring circuitry trips Reset signal on the AT bus can be disabled for IBS PC CB COP I T and IBS PC CB RTX486 I T see Figure 2 1 item 15 Operation of the reset button on the front plate PC card holder or of the reset button at the upper edge of the controller board To prevent an unintentional operation of the reset button on the front plate it is located in a concealed position see Figure 2 2 Both buttons can also be disabled by removing a jumper See Figure 2 1 Table 2 5 Function of the jumper for the reset button installed Not installed disabled This reset affects the following functional units the AT bus interface of the controller board the MPM control logic the two daughterboards The daughterboards can also be reset separately by the software 2 4 5 Watchdog for Monitoring the Host PC While the daughterboards have their own watchdog circuits for monitoring their operation a watchdog for monitoring the host PC was incorporated into the AT bus interface on the IBS controller motherboard The operation of the watchdog is described in detail in Section 4 PHO
168. n event is initiated by a negative edge Set the desired bits to 1 Quit Receive Event Confirmation 00BF16x Meaning The event definitions were accepted but are not yet ef fective Event definitions that had been defined with this command before were overwritten Event Error Confirmation 004Chex Meaning Event definition error There are no valid event definitions old definitions have been deleted Enable All Events Request002D ex The command enables all previously defined event definitions The event definitions must be available and valid Receive Events Request command 002Ahex The command consists only of a single word the command code 002Dhex No further parameters follow Quit Enable All Events Confirmation OODChex Meaning All event definitions were enabled PHCENIX 8 39 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Commands for the IBS Master Board Negative acknowledgment Task Prerequisite Positive acknowledgment Negative acknowledgment syntax Task Prerequisite syntax Word 1 Word 2 Word 3 Bit Key Positive acknowledgment Negative acknowledgment 8 40 Event Error Confirmation 004Chex Meaning Event definition error There are invalid event definitions Disable All Events Request002Er ex The command disables all previously defined event definitions The event definitions must exist and must be va
169. n it is possible to be explicitly informed of signal transitions of particular inputs for this purpose Preparatory steps for event processing 1 Define the desired events with the Receive_Events_ Request command 002A pex 2 Define the message type with the Set Event Message _Type_Requestcom mand 004Dhex The default setting is the Event_Number_Indication 8099hex 3 Enable the desired events e g with the Enable_Event_Number_Request command 002Bhex The occurrence of all defined and enabled events is counted in specific counters These event counters are reset with the enabling of the event They can be read out with the Read Event Counter Request command 0114 gt In connection with event processing please use logical addressing as far as possible Event processing can on principle also be done under physical addressing but this would mean that if you want to expand your system later on you would have to adapt all address specifications in all assignment lists Under logical addressing you only need to add the new IBS devices to the assignment lists Receive_Events_Request002A Task The parameters of the command allow the definition of up to 16 events Every event definition occupies 5 words syntax Word 1 Word 2 Word 3 Word 4 Word 5 1st event definition Word 6 Word 7 xth event definition Word 52 2 Bit 8 38 PHCENIX 5036C CONTACT Key Positive acknowledgment Negative ac
170. n reference list CR list The Parameter count parameter must be identical with the number of de vices The CR list must have an ascending order and must have no gaps 68hex The ID list and the currently connected configuration are not identical lf the error occurs during startup it is probably due to an ID list error Check the ID list lf the error occurs during operation the bus configuration is probably no longer complete or has been changed Please check your bus configuration 69hex A PCP command was issued without prior initialization of the communication Check the initialization of the communication in the application program 6Bhex An error was found on the controller board Please consult Phoenix Contact PHCENIX ii CONTACT 8 5036C PHCENIX THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Section 8 Commands for the IBS Master Board This section provides information on the tasks and the call methods of commands for the IBS master board the parameters of the commands the meanings and causes of messages in response to these commands Commands for the IBS Master Board 8 1 Format of a Command Description Configuration Commands Addressing Commands Operation Commands Error Handling Commands Application Interface Commands system Check Commands Process Data Linkage Commands Event Processing Commands CONTACT 8 3 8 5 8 6 8 13 8 16 8 19 8 26
171. n this DTI transfer area The address offset is the distance of a 1 Kbyte DTI transfer area from the beginning of the 16 byte node area The relative address is the address of a process data word within this DTI transfer area Like the length parameter it is specified in bytes so that only even byte addresses are possible Therefore the first process data word is located at the relative address 0 the second one at the relative address 2 the third one at the relative address 4 etc PHOENIX 9 9 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Interfaces Between Hardware and Software 9 6 4th word relative address 6 relative address 4 2nd word relative address 2 1st word relative address 0 Figure 5 4 Relative addresses of process data words in a DTI transfer area To access a process data word the address offset and the relative address must be added up DTI address address offset relative address The following offset constants are available to simplify the handling of the address offsets for the various data areas They are defined in the DDI USR H include file Table 5 1 Offset constants IBS master board DTA OFFST IBS MASTER IBS master board DTA OFFST IBS MASTER Therefore you only need to add the offset constant corresponding to the access to the relative address DTI address offset constant relative address When calling the functions DDI DTI Wri
172. nation of Driver Software Terms 5 10 5 2 3 1 Management of Data Channels 5 10 5 2 3 2 Mailbox Interface 2 2 2 9 12 5 2 3 3 Data Interface 5 12 5 2 3 4 Diagnostic Function 5 12 5 3 Use of the Static RAM es 2 5 13 5 4 Communication Between Host and COP toe ee ew ew ew BB 5 4 1 Structure of a Message Between Host and COP 5 14 5 5 Monitoring by Watchdogs 5 14 Fal IBS Master Board Watchdog 5 14 5 5 2 Watchdog for Host Monitoring 5 15 5 5 3 Coprocessor Board Watchdog 5 15 5 5 4 The SysFail Signal cc 5 15 5 6 Application Program Downloading to the COP Jew ee B16 eet PHOENIX 5 1 CONTACT 5 2 PHCENIX CONTACT onlinecomponents com THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS EEE S awww ww Interfaces Between Hardware and Software 5 Interfaces Between Hardware and Software 5036C This section describes in general terms the interfaces between IBS controller boards and the driver software 5 1 Multi Port Memory The central interface of the IBS controller boards is the Multi Port Memory MPM The MPM is a memory on the motherboard which can be accessed by all MPM users host coprocessor board and IBS master board The MPM users nodes store all data intended
173. ndow to the MPM can be set with the driver software via an I O address A voltage monitoring circuit ensures the operating reliability of the controller board In addition to an extensive reset system it is possible to reset each individual daughterboard by a specific software command An additional function for reliability enhancement consists of watchdogs monitoring the coprocessor board and via the AT bus the host PC For the interrupt driven operation of the controller board the MPM control logic activates specific interrupt signals for each node The user can adapt the interrupt system to the configuration of the host PC The motherboard of the IBS PC CB COP I T and IBS PC CB RTX486 I T contains also a battery pack 6V for backing up the SRAM and the real time clock on the coprocessor board PHCENIX 2 3 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Technical Description of the Motherboard 2 2 Mechanical Design The motherboard of the IBS PC CB I T series is designed as a PC board with the standards dimensions of 338 5 mm 114 3 mm 13 33 in 4 5 in There are two PC board style edge connectors at the lower edge of the motherboard for the connection to the AT bus ISA of your PC 2 2 1 Layout of the Controller Board De O00 a 5036C111 Figure 2 1 Layout of the IBS PC CB I T controller boards The controller boards consist of the following components the compone
174. negative acknowledgment of the Read Event Counter Request command 0114hex Positive acknowledgment This message transfers the counts of the requested event counters as positive acknowledgments With the positive acknowledgment the Result parameter is DO ex syntax Word 1 Word 2 Word 3 Word 4 Word 4 Word n 2 Bit Key Code Message code here 80F4hex 5036C PHGNIX 9 37 CONTACT InterBus S Messages of the IBS Master Board Negative acknowledgment syntax Key 9 38 Word 1 Word 2 Word 3 Word 4 Word 5 Bit Parameter count Event count THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Number of subsequent words here number of read out event counters max 16960 Counts of the read out event counters The order of ouputs corresponds the the order specified with the request Read Event Counter Request 011450 command If you had entered a 0 there to read read out all counters the order of outputs corresponds to the order specified in the event definition Receive Events Request 0002A command This message does not transfer counts but error codes as negative acknowledg ments With the negative acknowledgment the Result parameter is FFhex Code Parameter count Result Error class Error code Additional code Message code here 811Dhex Number of subsequent words here 3 For the negative acknowledgment FFhex Reserved 00hex currently with no meaning Reser
175. nostic interface connector on the front plate is a 9 position male subminiature D connector The diagnostic cable IBS PRG CAB Order No 28 06 86 2 as shown below connects the diagnostic interface with the IBM compatible PC Front plate Diagnostic cable Solder 9 RXD Pin side side RXD 2 2 RXD 3 TXD TXD 3 3 TXD 5 GND GND 5 5 GND 7 RTS RTS 7 7 RTS 8 CTS CTS 8 8 CTS SUB D 9 position SUB D 9 position SUB D 9 position male female female 5036D203 Figure 2 3 Diagnostic interface and diagnostic cable for the connection of a PC 5036C PHCENIX CONTACT onlinecomponents com THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Interfaces of the IBS Master Board Table 2 3 Pin assignment of the diagnostic interface Funtion SSS Reseed O EN IN RTS Request to Send notfirmmware supported Connecting the controller board with a diagnostic PC requires only the signals IS TXD RXD and GND Remote Bus Interface The remote bus interface is used to connect the remote bus 2 wire of the IBS system It is accessible on the front plate as a 9 position subminiature D female connector and electrically isolated from the host potential The connector housing is conductively connected with the PC board holder Front plate Remote bus cable D9 D9 Do 6 DO t Solder side bD 7 DI f2 oJ she 5 relief
176. not be used in connection with group definitions as this may cause bits of the process output data used by the process data linkage to be reset PHCENIX peer CONTACT syntax Key Word 1 Word 2 Word 3 Word 4 Word 5 etc Word n 2 Bit Positive acknowledgment 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE GS R awww ww Process Data Linkage Commands A memory which takes up to 1000 entries is available for the list of instructions This corresponds to e g 332 three word instructions instruction code 00052 or 0006hex 199 five word instructions instruction code 0007hex or 0008hex 142 seven word instructions instruction code 00092 or OOOAhex Instructions with invalid addresses are not executed There is no separate mes sage for this situation Addresses and therefore instructions become invalid with logical addressing when previously used addresses no longer exist or disabled groups when the address is in the area of a disabled group 1st instruction 2nd instruction xth instruction Code Command code here 005Dhex Parameter count Number of subsequent words here total of the individu al instruction lengths Quit Receive Instructions Confirmation 00F2 Meaning The parameters are error free All executed instructions have been accepted and added to a list if such a list al ready exists PHOENIX 8 31 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELE
177. ns the buttons can be disabled by removing the Enable Disable RESET Button jumper Figure 4 10 position 11 Table 4 12 Function of the Enable Disable RESET Button see labelling on the controller board Enable jumper installed default Enabled Disable jumper removed Disabled PHCENIX peer CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Connection of the Battery Pack 4 4 Connection of the Battery Pack Only IBS PC CB COP I T and IBS PC CB RTX486 I T As default the battery pack for supplying the SRAM and the real time clock on the coprocessor board is not connected with the coprocessor board Before in Stalling the controller board in your PC connect the connector of the battery pack to the male connector marked SRAM Battery 6V on the edge of the copro cessor board ae is fad KK SZ Ds BES SS 000000 5036C 5036B510_ Figure 4 11 Position of the connector for the battery pack Table 4 13 Pin assignment of the connector for the battery pack RE GND The battery pack has an operating life of approx 2 5 years 4 5 Installation of the Controller Board in the PC To avoid damage to the PC board and the host the controller board may only be installed or removed when the PC is not supplied with power Ensure a sufficient clearance between the controller
178. nst chk_phy_cnf array 1 web word Data field of the unsigned integer type S0058 Command Code S000D Parameter Count 50008 POPS ST 24 BK T SO1BA2AW IB ST 24 DI 16 4 SVANE Y IB ST 24 AO 4 SF SO1BD IB ST 24 DO 16 3 5047B IBS PT 190 60107 IBS IP DIO 1 24 SOUUUC IBS IP CBK 1 24 S810A IBS IP CDI 1 24 8109 TBS IP CDO 1 24 S810A IBS IP CDI 1 24 SO10B IBS 24 BK I O T USE IBO 24 DT 32 50447 IBS AI 3 ee PHOENIX 6 15 CONTACT InterBus S InterBus S specific Programming 6 16 Wort 1 Wort 2 Wort 3 Wort 4 Wort n 2 Bit THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS 6 3 3 Assignment of Logical Bus Segment Numbers The IBS command Receive Local Bus Code Map Request 0069hex carries out the arbitrary assignment of the bus segment number to the InterBus S de vices with bus terminal module functionality remote bus and installation remote bus devices This is useful to avoid the need to change the bus segment num bering in the current system Figure 6 8 Receive Local Bus Code Map Request command format Key Code Command code here 0069hex Parameter count Number of subsequent words here number of bus seg ments RB level Enter the RB level here Main line RB level 0hex 0000 pin Remote bus branch e g branching off from IBS IP CBK RB level ex 0001 pin Bus segment number Enter here the desired logical bus segment numbers in the order of t
179. ntering the desired commands requests with the appropriate parameters Enter the command code in hexadecimal in the REQ line If the command requires parameters enter the number of parameters in the PC Parameter Count line and the parameters themselves in the subsequent lines Pressing ALT S sends the command to the controller Messages The right hand window displays the message sent last Last Confirmation The CNF line indicates the received message code If the message has parameters the PC Parameter Counter line indicates the number of subsequent parameters and the following line contains the parameters themselves 4 28 PHOENIX oe CONTACT onlinecomponents com THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Issuing Commands with PCCBMONI Commands Request Last Confirmation i Hex 1 Hi Lo Dez i Hex 1 Hi Lo 1 Dez HH 89 BH HH 4 i H8H94 126 244 H i HAHA HAH 464 HAH 446 HHI 158 484 HO HH1 149 Exit Alt X send Request Alt 5 5036A827 Figure 4 18 Mask for commands and messages Three columns contain the individual parameters as follows Hex Hexadecimal notation Hi Lo Decimal notation of the high Hi and the low Lo bytes You can enter here for example the length code hi and ID code lo for an IBS device in decimal form Dec Decimal notation Use TAB or SHIFT TAB to change between the columns for the different types of representation The conversion ta
180. nts identified by numbers with a gray background are not available on the controller board IBS PC CB I T 1 2 4 Motherboard The motherboard accepts up to two daughterboards and is the interface to the host PC AT bus Coprocessor board for data preprocessing and control not IBS PC CB I T IBS master board The IBS master board MA controls the InterBus S data traffic AT bus edge connector The connector connects the controller board with the host PC AT bus ISA Ground pin Ground the controller board with the ground pin InterBus S remote bus interface two wire Serial interface RS 232 level for the IBS master board for connecting a PC with the software tools IBS CMD SWT or IBS SYS SWT Status LEDs external The green LEDs indicate the controller board status see Section 2 2 2 PHOENIX ii CONTACT 10 11 12 13 14 15 16 17 18 19 20 21 22 23 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S ER awww ww Layout of the Controller Board Front plate PC board holder External reset button Concealed reset button which can be pressed while the PC housing is closed Reset button jumper For deactivating the internal and the external reset button Internal reset button For convenient operation while the PC housing Is open Internal IBS master board status LED green For convenient status indication while the PC housing is open DIP switch for setting t
181. oftware tools 4 23 7 6 SRAM 5 13 Startup 4 24 Static RAM of the COP 5 13 STOP state 8 17 8 18 9 14 SysFail 5 16 q TDOS PRO 5 16 Terminal mode 4 12 TSR program 4 18 V Video cache 4 20 Voltage monitoring of the COP 3 14 Voltage monitoring AT bus 2 15 W Watchdog 3 14 5 14 PHCENIX ii CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS PHCENIX CONTACT We Are Interested in Your Opinion We would like to hear your suggestions wishes and criticisms concerning this InterBus manual Therefore we would appreciate your answers to the questionnaire overleaf No matter how small your contribution we will deal with any hint or comment This reply can be sent as a fax in an envelope or directly after folding 1 2 and sticking it together with adhesive tape Thanking you for your cooperation Phoenix Contact GmbH amp Co Produktmarketing InterBus ME DOK FlachsmarktstraBe 8 28 32825 Blomberg Germany THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS PHCENIX FAX NO 49 0 5235 331199 CONTACT FAX Reply De Phoenix Contact GmbH amp Co Produktmarketing InterBus ME DOK No Of pages ee Sender GOMPANVE uri retinas EP na PEE E RENDE ED Dept A Address A cena a ceaen pacepeccenceeeesoneenaccaneceascesaeesereceaseee A A na 61h ZIF COGE A teen meet enone on ewe mene Nee oer Un een mee ete Telephone pe LOUnUw ea REE ee eer one eet enor te etter eet ce er ert meer tery renee er
182. ol lowing applications Ifthe development environment TDOS PRO IBS PC COP SWT is not to access the COP386 by way of the MPM For more detailed information refer to the manual for the development environment 7DOS PRO which is supp lied with the software Forremote debugging e g with Turbo Borland C remote debugger Please refer to the manual of your compiler for more detailed information Own applications Adapter cable IBS PC COP RS 232 CAB This fully PC compatible interface is implemented as a 10 position male connec tor on the edge of the coprocessor board It can be connected to a subminiature D connector using the adapter cable BS PC COP RS232 CAB Mount the sub miniature D connector on for example an additional PC board holder free slot The adapter cable is available under Order No 27 51 65 8 It is also supplied with the development environment 7DOS PRO IBS PC COP SWT The female connector of this adapter cable is identified by a polarizing bump next to pin 5 Ifthe 10 position male connector is located in a polarized connector shell install the female connector in the shell so that the polarizing bump faces the motherboard see Figure 3 2 If you have an earlier coprocessor board without a polarized connector shell mount the female connector on the shell so that the bump faces the copro 3 6 PHGNIX 5036C CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE G R awww ww Serial Interface
183. ons This requires a document size which does not always make it easy to locate the required information within a short time Therefore we want to give you here a short overview of the controller board handling The individual steps are described in detail in the following chapters Should you still have questions after studying the manual call our technical hot line under the phone number Germany 5235 34 18 88 1 1 Quick Start Under DOS The controller board requires 8 bytes in the l O area of your PC a free interrupt and 4 kbytes of free address space The default settings are so that they often need not be changed 1 Ascertain whether the default settings is right for your PC configuration I O address t20hex Interrupt 15 Memory address DOOOhex Always make sure that the settings selected for the controller board are not used AN by other components of your PC For example the memory area between 640 kbytes and 1 Mbyte is often used by drivers etc Select other values if necessary see Section 4 Double assignments are the most frequent sources of startup errors 2 Remove power from your PC switch off and remove power cable and install the controller board Be sure that the controller board does not rest on or con tact other components in the PC short circuit hazard 3 Switch on the PC again The easiest controller board startup method under DOS is to use the PCCBMONI EXE monitor program supplied on the tool diskette se
184. ot be disabled Switch_Group_On_Request0020hex The command enables a previously defined group of bus segments The enab led segments are not checked Ensure that the group definition Receive_Group_Numbers_Request 0049 ex has taken place before this command is called The process outputs used in the bit manipulation are included in the process data transmission again when a group is reenabled Using the application pro gram ensure that this data is set to the correct state Switch Group On Confirmation 809Ehex Comment The bus system continues to operate with the enabled groups If an enabled group is defective the error mes sages Bus System Error Indication 0038hex and Bus Error Information Indication 80C4hex may fol low Code Parameter count Group number Command code here 0020hex Number of subsequent words here 1 Number of the group to be enabled Not Expected Group Number Indication 0059 hay Meaning An unknown group number was used or the number is not in the valid range Switch Group On Failed Confirmation 80C5hex Meaning The group cannot be disabled as the configuration was changed or modules in the main line RB level 0 are missing PHCENIX 8 11 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Commands for the IBS Master Board Task Prerequisite syntax Word 1 Word 2 Word 3 Word 4 Word n 2 Bit Key A Positive acknowledgment Neg
185. ote debugging for quick error detection of your own soft ware applications using the Borland Turbo Debugger The serial interface is configured as COM 1 which is fully PC compatible The base address Is as usual for IBM compatible PCs 3F8hex and the interrupt IRQ 4 is used These settings cannot be configured 3 4 6 Coprocessor Board Security Units The voltage monitoring and watchdog units ensure in connection with the reset system a defined behavior of the coprocessor board In addition they protect the system in the event of a supply voltage dip or in the event of application program runtime errors from an uncontrolled response 3 4 6 1 Coprocessor Board Voltage Monitoring The coprocessor board voltage monitoring feature monitors 5 V supply If the supply voltage falls below 4 65 V the voltage monitoring feature causes a system reset and the Chip Enable line of the CMOS RAM is disabled From this moment onwards the external battery voltage is used for buffering the real time clock and the static RAM The error free operation of the voltage monitoring circuit is ensured for a voltage range from 1 0 V to 5 25 V 3 4 6 2 Coprocessor Board Reset System The coprocessor board has an extensive reset system for the internal hardware A reset may be automatically initiated by the internal functional units of the volta ge monitoring feature and the watchdog system or a reset can be carried out by an MPM signal The chipset reset logic then
186. ow The board occupies an address area of 4 Kbytes from this base address on wards Ensure that this area is not already used by other boards An automatic check does not take place Table 4 15 Typical memory mapping of a standard PC Memory addresse Usedby 32 Kbytes Video memory e g VGA text or EGA 32 Kbytes Video memory e g monochrome or EGA 64 Kbytes Video memory e g VGA graphics or EGA The base address of the MPM window may be placed in the area between 80000hex to FF000hex As in practice this memory area already is occupied to a large extent BIOS etc the address area that is available is normally limited to parts of the address segments D and E addresses from D0000hex to EFFFF hex The address window should as far as possible be placed at the beginning or the end of the address area available in order not to split it up unnecessarily The default value is D0000hex Interrupt number Every controller board uses a hardware interrupt for the communication with its device driver This hardware interrupt is specified when the respective device driver is started The controller boards support the interrupts IRQ 3 5 7 9 10 11 12 and 15 5036C PHCENIX 4 17 CONTACT nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Installation and First Startup IS When several controller boards are used in one host PC each installed control ler board must use a different interrupt On a standard PC the in
187. p The following subsections describe in turn all preparations required for controller board startup The controller boards can be used in 100 IBM compatible PCs AT 80386 80486 etc The required main memory size depends exclusively on the size of the application program gt The DIP switch settings are only read in when the controller board boots After the setting has been changed reset the controller board to make the change ef fective The controller boards may possibly be equipped with different types of DIP swit ches Therefore please note the marking for ON OFF which is printed directly on the DIP switches The switches that are not relevant for the described function are shown in gray 4 1 Address Setting 4 1 1 Base Address in the I O Area of the PC I O Address The controller boards are set with 8 bytes in the l O area of the PC The base address is the address of the first of these 8 bytes It is set on the DIP switches shown in Figure 4 1 The default setting is120hex and normally does not need to be changed Please ensure that the address area set is not already used by other components of your PC 5036B505 N123 4567 8 Figure 4 1 DIP switches for setting the I O address 16 addresses in the I O address area of the PC are available for the PC I O address from these addresses you can select the desired one by means of DIP switches The following Table 4 1 describes t
188. pP446 O E 25 MHz 486 sores O _ 40 40 MHz double clock 8 Kbytes of cache 2 Mbytes 2 Mbytes 128 Kbytes 128 Kbytes aS RAM disk D 128 Kbytes of EPROM for 256 Kbytes of flash EPROM operating system 128 Kbytes for operating system 128 Kbytes for device driver and application EPROM2 f ss 256 Kbytes of flash EPROM for application Operating system TDOS RTXDOS O environ Terminal program DPCON EXE is on the ment TDOS PRO tool diskette The development environment TDOS PRO IBS PC COP SWT is not com patible with the COP486 of the IBS PC CB RTX486 I T nor is it required for it This coprocessor board is used to relieve the host PC processor of some of its tasks this contributes to considerable performance gains of the PC system The central functional unit of the COP is an Intel compatible microprocessor The coprocessor board is accessed either via the Multi Port Memory MPM or via a PC compatible serial interface The coprocessor boards are essentially PC compatible with the exception of the keyboard the monitor and the hard disks which allows programming with standard tools such as Turbo Pascal or Turbo C The 2 Mbyte main memory provides enough space even for extensive software projects The coprocessor board ensures the unrestricted use of the EMS features familiar from PCs 128 Kbytes of battery backed up static RAM SRAM and on the COP486 ad ee PHOENIX 3 3 CONTACT l nter B us S TH
189. ping to a predefined structure This structure is the same as the structure of the IBS master board control commands and messages Commands and messages without parameters contain only the actual command or message code Further parameters do not follow When a command or message has parameters the command or message code is followed directly by the parameter count PC The parameter count indicates the number of words that follow All message blocks are transferred and accepted in the so called mailbox format The structure of these blocks of the data type USIGN16 is as follows Commands or messages without parameters Wordi Commands or messages with parameters Word 1 Word 2 Word 3 Word 4 Bit 15 eee 8 7 Pe 0 5 5 Monitoring by Watchdogs The include files and libraries for C and the units for Pascal required for using the watchdogs are described in Section 4 6 The host and the coprocessor board COP can be monitored each by its own watchdog circuit The IBS master board MA is always monitored by a watchdog circuit 5 5 1 IBS Master Board Watchdog When the IBS master board watchdog trips the IBS system is reset all outputs of the IBS system are reset and the master board s SysFail signal is set The watchdog is enabled all the time and cannot be influenced by the user PHOENIX en CONTACT 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S ER awww ww Watchdog for Host Monitoring 5 5
190. ple the entry in bold type protects a 4 Kbyte memory area from address D0000hex onwards from access by EMM386 EXE Refer to your DOS manual for a more detailed description of the memory manager EMM386 Ensure also that the use of SHADOW RAM or video cache does not conflict with the 4 Koyte MPM window In the event of a conflict disable these options in the BIOS setup of your PC with the following settings SHADOW RAM disabled VIDEO CACHE disabled Do not install or de install the device driver BSPCCB EXE in a Microsoft Win dows DOS box 4 6 2 Device Driver Under Microsoft Windows The driver software for Microsoft Windows takes the form of a Dynamic Link Library DLL file name IBSPCCB DLL This DLL contains the Device Driver In terface and device drivers for four controller boards Using the usual Windows copy procedure copy the file BSPCCB DLL into the directory where your appli cation program is located or into the Windows root directory The use of additional drivers such as calls of TSR programs under DOS or entry of the OS 2 device driver under IBM OS 2 is not required under Microsoft Win dows The Windows root directory must also contain the file IBSPCCB INI which is used for parameterization Enter the parameters required for initializing the controller board I O address MPM address and interrupt number into file IBSPCCB INI The following example shows the entry for the operation of a controller board PHC
191. ply Selection Only IBS PC CB COP I T and IBS PC CB RTX486 I T The Power Supply jumpers are used to select whether the IBS PC CB COP I T and IBS PC CB RTX486 I T controller boards are to be supplied with power via the host PC AT bus or via the terminals for external supply Table 4 10 Function of the power supply selection jumper see labelling on the controller board Installed in position PC From the host PC via the AT bus default Installed in position Ext From an external power pack via the green CombiCon terminals next to the battery pack see Figure 4 10 position 22 5036C PHGNIX 4 13 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Installation and First Startup 4 14 4 3 2 Separation from the Host PC Hardware Reset PC HW RESET Only IBS PC CB COP I T and IBS PC CB RTX486 I T Using the jumper Enable Disable PC HW RESET Figure 4 10 position 15 you can configure the controller boards IBS PC CB COP I T and IBS PC CB RTX486 I T so that they are not affected by a hardware reset of the host PC Table 4 11 Function of the jumper for separation from the host hardware reset see labelling on the controller board Set to ON enabled A host reset causes the controller board to default boot Set to OFF disabled A host reset does not affect the controller board 4 3 3 Reset Button Disabling Enable Disable RESET Button To prevent any unintentional pressing of the reset butto
192. r 0000 e for all modules without process input data e g dedicated bus ter minal modules or dedicated output modules Place the start addresses of IBS devices with an address area of 16 bits or mo re only at even addresses Quit Receive Logical In Address Map Confirmation 00D1 hoax The list will only be valid after the successful execution of the Implement All Logical Address Maps Request 0040hex command PHCENIX ee CONTACT Task syntax Word 1 Word 2 Word 3 Word 4 Word n 2 Bit Key RS Positive acknowledgment RS 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S ER awww ww Addressing Commands Receive_Logical_OUT_Address_Map_Request003Bhox The command transfers the list of logical output addresses to the controller board Code Command code here 003Bhex Parameter count Number of subsequent words here number of devices Output address Enter here 10 bits the desired address as byte address for all modules with process output data With modules with more than one process output word e g with 32 bits the next higher addresses are automatically also assigned DC See the parameter description for the Receive_Logical_IN_Address_Map_Requestcommand 003Ahex Enter 0000hex for all modules without process output data e g dedicated bus terminal modules or dedicated input modules Place the start addresses of IBS devices with an address area of 16 bits or mo r
193. r Information Indication message 80C4hex gives a detailed description of the error I The error message Module Error Indication 80A0 which may follow a po sitive or negative acknowledgment does not cause data traffic to abort When the bus configuration is changed before the start of the data traffic the data traf fic first starts and is aborted immediately afterwards stop_Bus_Cycle_Request0002 Task This command switches the bus into the STOP state Consequences Process data channel The cyclic data traffic on the bus is stopped The existing process data image of the modules connected to the bus is statically retained and will not be updated PCP channel The Peripherals Communication Protocol PCP is not operated any further No automatic abort of the established connections takes place The processing of any outstanding services will continue after the restart of the data traffic This command does not switch the process output data into the safe state reset of the outputs This can only be done with the Alarm_Stoo_Request command 004Apex Syntax The command consists only of a single word the command code 0002 2x No further parameters follow Positive acknowledgment Stop Bus Confirmation 0OC6hex Meaning The operation of the process data channel and if in use of the communication channel PCP is discontinued Comment The RUN Masterboard LED goes out 5036C PHCENIX 8 17 CONTACT InterBus S T
194. r board 1 Be manerer board Mailbox interface IBB1N1 M to controller board 4 Data interface IBB1N1 D gt When using C putthe character strings for the device name parameter between double inverted commas e g IBB1N1_M when using Turbo Pascal put it between single inverted commas e g IBB1N1_M 5 50360 PHCENIX 5 11 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Interfaces Between Hardware and Software 5 12 Data Consistency The data consistency is the number of bytes which a node can read or write without another node accessing these bytes at the same time This means that the access of a node to a number of bytes determined by the data consistency must have been completed before another node can access these bytes Thus the MPM logic prevents simultaneous accesses of the nodes to MPM data Possible values for data consistency are Word data consistency 2 bytes DTI DATA WORD Longword data consistency 4 bytes DTI DATA _LWORD Byte data consistency 1 byte DTI DATA BYTE 48 bit data consistency 6 bytes DTI DATA 48 BIT 5 2 3 2 Mailbox Interface The mailbox interface MXI is used to transfer messages between the MPM users Certain commands are acknowledged with a message indicating whether the command has been executed successfully or whether errors have occurred during the execution The acknowledgment is also transferred via the mailbox interface lf the application program fail
195. r can e g under MS DOS 5 0 be loaded into the memory area E above 640 Kbytes In that case it will not occupy any memory space below 640 Kbytes Refer to your DOS manual for the installation of drivers in the high memory area During the call you may also supply various parameters to the device driver Calling IBSPCCB or IBSPCCB HELP displays a list of the possible parameters 4 18 PHOENIX oe CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS EEE S awww ww Installation Assistance for DOS Table 4 16 Examples for parameters supplied when calling the device driver IBSPCCB IO 100 Sets the base address in the I O area of the PC to 100pex IBSPCCB BN 2 sets the board number to 2 IBSPCCB MPM C800 Sets the base address of the MPM window to C8000pex IBSPCCB IRQ 10 Sets the interrupt number to 10 IBSPCCB IO 100 BN 2 Sets the base address in the I O area of the PC to 100 and the board number to 2 A call with BSPCCB INFO allows you to check the set parameters of all device drivers If you call BSPCCB without specifying further parameters the following defaults are used Base address in the lO area of the PC I O address 120hex Board number board no 1 Base address of the 4Kbyte MPM window in the memory area of the PC MPM address D0000hex Interrupt number with driver software version lt 0 9 IRQ3 Interrupt number with driver software version gt 0 91 IRQ15 When calling the device driver
196. rBus S specific Programming 5036C Bit 6 1 Identification of the Connected IBS Devices The connected IBS devices are identified on the basis of three features Physical position of the IBS device in the bus configuration Length code of the IBS device describes the address space requirement in the host Identification code short ID code of the IBS device A table device list describes the structure of the IBS system for panice 1 Figure 6 1 Principle of the device list structure Key Length code The length code describes the address space require ments of the IBS device in the host ID code Identification code short ID code of the IBS device The configuration of the IBS system is entered in the ID list This requires that the length codes and the ID codes of the individual IBS devices are known see the IBS device overview 6 1 1 Physical Counting Mode for Bus Segments and IBS Devices A bus segment consists of a remote bus device and the incoming remote bus cable If this remote bus device is a bus terminal module the devices of a local bus branching off from it are also part of its bus segment Bus segment 0 short BS 0 is the bus segment whose bus terminal module is directly connected with the controller board in the host via the remote bus Bus segment 1 is connected via the remote bus to the bus terminal module of bus segment 0 etc Bus terminal modules for the installation remote bus and instal
197. rameter block Date Message code here 8087hex Number of subsequent words here 4Dhex corresponds to 77 dec Manufacturer of the controller board 16 byte ASCII string Host PLC or computer system 32 byte ASCII string Controller board type ASCII string of 32 bytes Further information on the controller board type 32 byte ASCII string Controller board firmware version 14 byte ASCII string Date of the firmware version 28 byte ASCII string PHCENIX eee CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S ER awww ww Process Data Linkage Messages 9 8 Process Data Linkage Messages Quit_Receive_Instructions_Confirmation00F2 Meaning The Receive Processing Instructions Request command 005Dhex was exe cuted Syntax The message consists only of one word the message code 00F2hex No furt her parameters follow Processing_Instructions_Error_Confirmation80F3 Meaning The Receive_Processing_Instructions_Request command 005Dhex could not be executed successfully syntax Word 1 Word 2 Word 3 Word 4 Bit Key Code Message code here 80F3hex Parameter count Number of subsequent words here 2 Error number The error number parameter specifies the type of the er ror see subsequent table Parameter number The parameter number parameter identifies the faulty parameter 00hexto FFhex corresponds to 0 to 255 q IN the Receive_Processing_Instructions_Request com mand 005Dhex
198. rameters are identical with those of the driver software for DOS see Page 4 17 with the restriction that the values for MPMAddress may only be in the range from A0000hex to FF000hex mee PHOENIX 4 21 CONTACT nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Installation and First Startup 4 6 3 Device Driver Under IBM OS 2 For IBM OS 2 the device driver for the controller board takes the form of an OS 2 device driver I An OS 2 device driver must be installed for each controller board The OS 2 device drivers for the controller board must be loaded when the host PC boots Enter an OS 2 device driver for each controller board in the CONFIG SYS file of your host The OS 2 device driver for the controller board is called OS2_ BS DRV Enter the complete path if the driver is not in the OS 2 root directory If you enter OS2 IBS DRV without further parameters the following defaults will be used Base address in the I O area of the PC I O address 120 pay Board number board no 1 Base address of the 4Kbyte MPM window in the PC memory area MPM address D0000 pex Interrupt number IRQ15 Table 4 17 Examples for entering parameters Device 052_IBS DRV IO 100 Sets the base address to 100pex Device OS2_IBS DRV IBSPCCB BN 2 Sets the board number to 2 Device OS2_IBS DRV IBSPCCB MPM C800 Sets the MPM address to C8000pex Device OS2_IBS DRV IBSPCCB IRQ 10 Sets the interrupt number to 70 Device 052_IBS DR
199. rams In addition data sheets for all new Phoenix Contact IBS devices are available on request 4 8 Software Tools for Startup Various software tools allowing the access to your bus configuration without ex tensive programming efforts are available for the first startup The process data monitor program PCCBMONI EXE supplied with the driver software The diagnostic and configuration software IBS SYS SWT under DOS Order No 27 80 88 1 The operating software IBS CMD SWT which allows configuring monitoring and diagnostics of your InterBus S system under Microsoft Windows The software tools allow the setting of outputs Before setting outputs ensure that this cannot lead to damage to property or injury to persons in connection with dangerous process peripherals e g unprotected shafts motors presses etc Refer to Section 7 of the respective manual for further information on the soft ware tools 5036C PHGNIX 4 23 CONTACT InterBus S onlinecomponents com THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Installation and First Startup 4 24 4 9 Startup with Process Data Monitor Program The driver software for IBS PC CB l T comes with a process data monitor pro gram The program provides the following services First startup of an InterBus S systems without much programming Test of your bus configuration Check of the connected configuration Display of the status of individual inputs bina
200. rd COP has a 58 position male connector on each side The correct orientation for the instal lation of the COP results from the asymmetrically located drill holes one on the coprocessor board and one on the motherboard On the underside of the COP there is a four position connector for the connection of acommercially available PC battery pack and a 10 position connector for the serial interface PHOENIX 3 5 CONTACT l nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Technical Description of the Coprocessor Boards To achieve a high flexibility of the COP a feature for performing configurations via DIP switches or jumpers has not been implemented The hardware specific settings are automatically performed by the driver software 3 3 Coprocessor Board Interfaces This section describes the various coprocessor board interfaces and their signal assignment 3 3 1 Motherboard Interface Functions of the interface Data exchange between the motherboard and the coprocessor board The data width is 16 bits All data and address lines are buffered Supply of control signals interrupt control signals write and read control re set and watchdog control Supply and special lines voltage supply battery back up LED control RS 232 interface 3 3 2 Serial Interface The coprocessor board has a serial interface RS 232 level which corresponds to the COM 1 of a standard PC and which you can use for example for the f
201. rocessor Board Functional Units The functionality of the coprocessor board is divided into seven main functional elements Processor chipset Memory DRAM SRAM EPROM MPM interface Multi Port Memory Memory mapper Serial interface UART Voltage monitoring and reset system Power supply The following sections describe these funtional units their settings and meanings in detail 3 4 1 Processor Chipset The processor core is a 386SX 25 for the COP386 and a 486SXLC40 micropro cessor for the COP486 both in connection with the single chipset 82C836 3 8 PHCENIX 5036C CONTACT 5036C RS THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S S awww ww Chipset Components 3 4 1 1 Chipset Components The 82C836 component is a highly integrated single chip AT chipset It contains all circuitry components required for a PC such as one 146818 compatible real time clock with 114 bytes of CMOS RAM two 8237 compatible DMA controllers two 8259 compatible interrupt controllers one 8254 compatible counter timer one 82284 compatible clock generator and ready interface one 82288 compatible bus controller one DRAM controller DRAM refresh controller four EMS page registers LIM EMS 4 0 and 3 2 3 4 1 2 Coprocessor Board I O Address Area Besides the usual standard addresses of the IBM PC the I O address area of the coprocessor board has some additional special functions Various watchdog
202. roup to be enabled 00hex to FFhex corresponds to 0 to 255962 Buffer in the programming language C KKK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK Switch Group On Request to switch on a group EJ KKK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK RK KK KK KKK USIGN16 grp on 0x0020 Command Code 0x0001 Parameter Count 0x0003 switch on group number 1 Buffer in the programming language Pascal Switch Group On Request to switch on a group const grp on Sawray 1 3 of word 0020 Command Code SOOO1 Parameter Count 0003 switch on group number 1 6 4 4 Defining the Handling of Groups in the Event of Errors After an error in a group bus STOP the Define Group Error Characteristics Request 0060hex command defines for each group whether the bus is to restart automatically without this group wee PHCENIX 6 33 CONTACT nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS InterBus S specific Programming Word 1 Word 2 Word 3 Word 4 Word n 2 Bit Figure 6 20 Define Group Error Characteristics Request command format Key Code Command code Parameter count Number of subsequent words Mode Handling of the remaining parts of the bus system in the event of an error in the group described by this line Ona The complete bus remains at STOP in the event of an error Chay The bus i
203. rror Numbers 0Dhex The controller board expects parameters which are not received during a given monitoring time The handshake did not take place in time Initiate a host computer reset 23hex A bus error caused the watchdog to trip Carry out a host computer reset Please consult Phoenix Contact should the error occur repeatedly 26hex 27 hex 28hex 29hex A hardware error was found on the controller board Please consult Phoenix Contact 2Ahex A firmware error was found on the controller board Please consult Phoenix Contact 2Bhex An error was found in the address lists The bus goes into the stop state without reset the outputs are not reset Check the assignment lists in the application program An attempt was made to send address lists to the controller board while the bus was running Switch the bus into the stop state before sending address lists to the controller board 38hex This error occurs in connection with a local bus error or a remote bus error A test routine determines the defective segment Check the bus configuration Note the following diagnostic indications 3Bhex End of cycle due to external signal The bus configuration is affected by interference PHOENIX PA CONTACT InterBus S Error Diagnostics Remedy Meaning Remedy Meaning Remedy Meaning Remedy Meaning Ursache Remedy Ursache Remedy Meaning Remedy Meaning Remedy Me
204. ry Display of the status of input words hexadecimal Setting of individual outputs binary Setting of output words hexadecimal InterBus S system reset The functionality of this program includes also special functions such as gene rating a data file with all important data on the modules connected to the control ler board Following the installation of your controller board and of the driver software transfer the file POCBMONI EXE from the driver diskette to your hard disk Call the process data monitor program by calling PECCBMON The following screen will appear General Functions Options Help IBS PCCE Monitor Program Interbus 3 Version H 7HR PHOENIX CONTACT Exit Alt X Copyright c 1995 PHOENIX CONTACT GmbH amp Co 5036A820 Figure 4 13 Main menu of the monitor program You may specify the following parameters when calling POCBMONI EXE MONO Monochrome display NOTCOMPATIBLE When your graphics adapter has cursor control pro blems e g there is no cursor WARMSTART The controller board initiates a warm start prior to every InterBus S start PHOENIX ji CONTACT onlinecomponents com THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww The Functions Pull Down Menu SWITCH Indicates the current DIP switch setting The DIP switch settings are only read in when the controller board is booted After the setting has been changed carry out a controller reset to make the
205. s node areas each with 16 Kbytes Three node areas are assigned to the MPM users nodes host PC IBS master board IBS MA and coprocessor board COP The fourth node area is reserved for future expansions Each MPM device may read from and write to its node area but only read from the node areas of the others When opening a data channel the device driver automatically selects the correct node area on the basis of the device name A 16 Kbyte node area consists of 4 DTI transfer areas each with a size of 1 Kbyte for the data interface DTI and another 12 bytes used for the mailbox interface MXI and other purposes PHCENIX ii CONTACT Node area 16 Kbytes Node area 16 Kbytes Node area 16 Kbytes Node area 16 Kbytes Address offset Relative address 5036C onlinecomponents com THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Organization of the MPM MPM 64 Kbytes Reserved node 3 _ DTI transfer area 1 Kbyte 1 DTI transfer area 1 Kbyte IBS master board node 1 _ DTI transfer area 1 kbyte DTI transfer area 1 Kbyte Host PC node 0 _ DTI transfer area 1 kbyte _ DTI transfer area 1 Kbyte 5036C423 Figure 5 3 Organization of the MPM The DTI address of a process data word within a node area consists of two components the address offset of the DTI transfer area the relative address withi
206. s restarted without the faulty group Group number Group number of the group described by this line 00hex to FFhex corresponds to 0 to 255gec Buffer in the programming language C KK KK KK KK KK KK KK KK KK IK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK RARAS Define Groups Error Characteristics Request E for restart afttER error i KKK KKK KK KKK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK KK USIGN16 grp_err_chr 0x0060 Command Code 0x0003 Parameter Count 0x8001 Group 1 028002 Group 2 Ox8003 Group 3 Buffer in the programming language Pascal EIA A ES E SEES ES RN IAS AS A RRS PE E OS A AAN ED EI O SER ES ERE Define Groups Error Characteristics Request ES DOr restart alter all error Sy Lae NER DER KER EAA ETA RRS AR SE SES ESS KRK ES AON A ee A SEE NAAA UV const grp err chr arrayll gt of word S0060 Command Code S0003 Parameter Count 8001 Group 1 8002 Group 2 8003 Group 3 6 34 PHGNIX 5036C CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Section r Error Diagnostics This section provides information on the diagnostic analysis and correction of errors in the InterBus S system controller board bus configuration of errors in the application program 7 Error Diagnostics 2 eee eee eee eee 7 3 7 1 Hardware Diagnostics ew e ee on 0 7 1 1 Diagnostic Indicators on the Controller Board A
207. s to fetch a message a time out error is output after 8 minutes This error message is also a message and overwrites the message entered before If more than one message is supplied the period before a time out occurs Is only 8 1 seconds 5 2 3 3 Data Interface The data interface DTI is used to transfer I O data between the MPM nodes The transfer takes place without an acknowledgment 5 2 3 4 Diagnostic Function In the MPM the IBS controller board has two registers for evaluating error indications by the application program The register for diagnostic bits contains information on the operating and diagnostic state of the IBS controller board The register for diagnostic parameters provides additional information on the error type or the error location Each register occupies one word in the address area of the MPM Both registers can be evaluated with the diagnostic function The diagnostic function is described in detail in the driver software manual PHCENIX ii CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S ER awww ww Use of the Static RAM 5 3 Use of the Static RAM for IBS PC CB COP I T und IBS PC CB RTX486 I T The coprocessor board of the controller IBS PC CB COP I T provides 128 Kbytes of static RAM SRAM The SRAM is backed up by the motherboard batteries When the host is off or no IBS controller board is installed the data stored in the SRAM is retained for up to 2 5 years SRAM on the
208. sor board is booting RTXDOS attempts to establish a connection with the program RFSERVER EXE on the host As the coprocessor boards boots very fast it is likely that RESERVER EXE on the host has not been started when a restart of the complete system is performed Using switch 5 you can now determine whether in such a case the coprocessor board is to continue the boot procedure or whether it is to wait until RESERVER EXE has been started on the host For example it is not recommended to wait for the start of RFSERVER EXE in the stand alone mode of the IBS PC CB RTX486 I T 50364519 Cl 00 0000 Figure 4 7 Switch for setting the RFSERVER boot behavior Table 4 7 RFSERVER boot behavior of the coprocessor board OFF default Coprocessor board waits for the start of RFSERVER when booting ON Coprocessor board does not wait for the start of RFSERVER when booting 4 10 PHOENIX oe CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS EEE G R awww ww DPCON Boot Behavior Wait for DPCON 4 2 6 DPCON Boot Behavior Wait for DPCON Only IBS PC CB RTX486 I T with RTXDOS The program DPCON EXE makes it possible to use the host PC keyboard and monitor as a terminal for the coprocessor board After the start of DPCON EXE on the host a DOS shell is available to the user on the host for the coprocessor board The connection between DPCON EXE and RTXDOS is effected via the MPM The DPCON EXE program is on the tool diskett
209. ssed bus terminal module and it must have been set Code Parameter count Phys bus segment Command code here 0027hex Number of subsequent words here 1 Enter here the physical bus segment number 0 to 255Jec corresponds to 00hex to FFhex of the bus terminal module whose alarm output you want to reset Quit Reset BK Alarm Physical Confirmation 00CEhex BK Alarm Failed Confirmation 005Apex Meaning Invalid local bus address or too many parameters PHCENIX 8 25 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Commands for the IBS Master Board Task syntax Word 1 Word 2 Word 3 Word 4 Bit Key Positive acknowledgment Task RS Syntax Positive acknowledgment 8 26 8 6 Application Interface Commands set_Parameter_Timeout_Constant_Request0034 This command determines the time constant for the command and message time out The controller board monitors the exchange of commands and messages between the host and the controller board with a timeout feature When a message is not fetched within the timeout period or if the internal message memory overflows the controller board generates the error message Controller_Parameter_Timeout_Indication 000Chex without regard of the transmission protocol Code Command code here 0034 Parameter count Number of subsequent words here 2 Reserved This parameter is reserved for future additions Enter the
210. sses process data With physical addressing the controller board automatically addresses the IBS devices anew after the bus configuration has been changed or expanded Take appropriate steps in the application program e g inquiry of the configuration as address shifts may take place In contrast to physical addressing logical addressing allows you to assign the addresses of the IBS devices in your system independent of the actual physical order of their arrangement in the bus system see Section 7 2 2 PHCENIX 6 7 CONTACT onlinecomponents com l nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS InterBus S specific Programming 6 2 1 Addresses in the Physical Addressing Mode 6 2 1 1 Assignment of the Input Addresses by the Controller Board Table 6 2 Assignment of the input words to the IBS devices Module no Modus a BssTaeBKT 2 estana wo s BST2AD ASF a iest 2400163 57 IBST24PT 10044 W1 W2 W3 Wa W5 espo we espo w7 BS 24 BKVO T W8 W 9 TW 70 W 11 IW 12 IW 13 IW 14 Input word 14 001E Input word 14 001 Chex Input word 13 001 Anex Input word 12 0018 hex Input word 11 0016 Input word 10 0014 hex Input word 9 0012 nex Input word 8 0010 Input word 7 000E Input word 6 000C Input word 5 000A ox Input word 4 0008 hex Input word 3 0006 hex Input word 2 0004 hex Input word 1 0002 nex Input word 0 0000 5036A711 Figure 6 3 Inout addresses in the memory
211. st 0027hex Possible error causes are a You specified a non existent bus segment number b You specified an invalid number of parameters Check your application program The message consists only of one word the message code 005A pex No furt her parameters follow PHCENIX oer CONTACT Meaning Remedy syntax Meaning Remedy syntax Meaning Remedy syntax Meaning syntax 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Error Handling Messages Receive_CR_Error_Confirmation0066 This error message is sent in response to a check of the Receive Communication Reference command when an invalid communication reference was used too many parameters were sent or not enough parameters were sent Check the communication relationship list CRL for valid communication references 2 to 62 The assigned communication references must succeed one another without a gap e g 2 3 4 5 The call order is irrelevant e g 4 2 5 3 Is also allowed The message consists only of one word the message code 0066hex No furt her parameters follow Communication_Not_Ready_Confirmation0069 A request or respond command was sent although the communication short PCP has not been initialized Initialize the communication in your application program see the manual for the fundamentals and the use of the Peripherals Communication Protocol BS PCP UM E Ord
212. sued when a pending message was not fetched within the first 8 minutes TIME OUT and therefore blocks the MPM area involved apending message was not fetched and a second one has been pending for 8 1 seconds Remedy Check whether the presence of a message is checked in your program at suf ficiently short intervals IS The Controller Parameter Timeout Indication message overwrites all messages which have occurred after the message that was not fetched from the MPM are ready on the IBS master board for transfer to the MPM but could not be transferred as the first message that was not fetched is blocking the MPM area gt This message disables any further error messages Bus diagnostics are only possible with the Get BSDiagnostics function syntax The message consists only of one word the message code 000Chex No furt her parameters follow Host_Parameter_Timeout_Indication000D ex Meaning The controller board is unable to acknowledge an arrived command as the host has not yet reset the handshake bit for the previous command acknowledgment This handshake bit was sent by the host when the previous command was sent Remedy Check the application program gt This message disables any further error messages Bus diagnostics are only possible with the Get BSDiagnostics function syntax The message consists only of one word the message code 000Dhex No furt her parameters follow 9 16 PHGNIX 5036C CONTACT TH
213. t Bus segment number of the affected bus segment 00hex to FFhex corresponds to 0 to 259yec Power_Fail_Indication80A1 The voltage supply 9 V of a local bus has failed Depending on the addressing type used the parameters indicate the logical or the physical addresses of the affected bus segments 0 Code Message code here 80A1hex Parameter count Number of subsequent words here 1 Bus segment Bus segment number of the affected bus segment 00hex to FFhex corresponds to 0 to 255gec PHCENIX ee CONTACT Meaning syntax Word 1 Word 2 Word 3 Bit Key Meaning syntax Word 1 Word 2 Word 3 Word 4 Bit Key 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Error Handling Messages Battery Indication80A21 ex On some special modules the logic voltage U is backed up by a battery If this supply voltage fails this message indicates switching over to battery operation The parameter specifies the logical or physical bus segment number of the af fected bus terminal module 0 Code Message code here 80A2 Parameter count Number of subsequent words here 1 Bus segment Bus segment number of the affected bus segment 00hex to FFhex corresponds to 0 to 255gec Quit_Module_Error_Not_Possible_Confirmation80FF e This message is the negative acknowledgement of the commands Quit Module Error Request 0064pex and Quit Module Error All Request
214. tartup under physical addressing Place outputs in safe state stop data Alarmstop Request 004Ahex transmission on the bus Clear register for diagnostic bits Clear_Display_Request 004Ehex Configure bus system Configure_BUS_Request 0023hex Check configuration Check Physical Configuration Request 0058hex Start data cycles Start BUS Cycle Request 0001 hex Section 8 describes the commands in detail 6 12 PHGNIX 5036C CONTACT 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS EEE S awww ww Logical Addressing of IBS Devices 6 3 Logical Addressing of IBS Devices Unlike physical addressing logical addressing allows to assign the addresses of the IBS devices independent of the actual physical order of their arrangement in the bus system The desired addresses are assigned by assignment list entries in the order of the physical arrangement of IBS devices The following assigment lists are required for logical addressing List with length and ID codes of all devices of your bus configuration List of the logical bus segments List of the logical input addresses List of the logical output addresses The lists are transferred to the controller board where they are checked and stored in the RAM The controller board addresses the IBS devices according to this list during startup Therefore logical addressing allows an arbitrary assignment of the I O data from the InterBus S system to the memory addresses in the multi
215. tax Word 1 Word 2 Word 3 Bit Key Positive acknowledgment Negative acknowledgment 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS EEE S awww ww Event Processing Commands Meaning The selected event definition remains in the previous state The specified input address does not exist The specified input address is in the area of a disab led group There is no event definition for the specified input address Set_Event_Message_Type_Request004Dhex This command defines the message type initiated after the occurrence of an event Generated message types 1 Event Number Indication 8099 This setting causes all occurred events to be transferred in one word This word is generated by ORing the event IDs of all occurred events 2 Event_Data_Indication 809Bhex This setting causes the event ID and the data word of the input module where the event was initiated to be transferred for each event occurred The default setting after the controller board startup is the message type Event Number Indication 8099 2 Use the message type Event Data Indication 809Bhex if the data at the moment of the event is to be used for further processing This establishes a relationship between the data item and the moment of the event Code Command code here 004Dhex Parameter count Number of subsequent words here 1 Message type Enter here the desired message type 1 Event Number Indication 809916x 2
216. teData and DDI DTI ReadData enter the DTI address parameter see the descriptions of these functions for further details PHCENIX ii CONTACT onlinecomponents com THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS EEE S awww ww General Structure of the Driver Software MPM Reserved node 3 DTA OFFST COP TO PC DTA OFFST IBS MASTER IBS master board node 1 DTA_OFFST_IBS_ MASTER Host PC node 0 DTA OFFST PC TO COP DTA _OFFST IBS MASTER 50360419 Figure 5 5 DTI transfer areas and offset constants 5 2 General Structure of the Driver Software Application program Device driver interface Device driver 50360402 Figure 5 6 Structure of the driver software Driver software for the controller boards is available for the operating systems DOS Microsoft Windows and IBM OS 2 5036C PHOENIX 5 7 CONTACT onlinecomponents com l nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Interfaces Between Hardware and Software The driver software consists of two parts 1 The device driver Interface DDI a compiler specific interface to the applica tion program 2 The operating system specific device driver DD The device driver links the host PC or the coprocessor board COP and the IBS master board MA via the MPM 5036C407 Figure 5 7 Operation of four IBS control
217. terrupts IRQ 10 11 12 and 15 are mostly not used and therefore can be used by the device driver The other interrupts are often used by standard PC components serial ports COM1 and COM2 network adapters etc so that they should not be used by controller boards Ensure that the interrupt has not been assigned to other components of your PC If you do not enter a parameter a default is automatically used for this parame ter 4 6 1 Device Driver under MS DOS The device driver for the controller board is implemented under DOS as a TSR program Terminate and Stay Resident i e as a resident program running in the background The TSR program for the host PC is called BSPCCB EXE The TSR program for the coprocessor board COP is called BSCOP EXE Device driver on the host PC Call BSPCCB to start the device driver on the host PC To call the device driver change from the MS DOS command line into the directory where the device driver is located or specify the complete path with the call Device driver on the coprocessor board Transfer the device driver BSCOP EXE with the development environment TDOS PROto the COP386 of the IBS PC CB COP I T Refer to the develop ment environment manual for a precise description On delivery of the IBS PC CB RTX486 I T the device driver IBSCOP EXE is located on drive A flash EPROM of the COP486 and is automatically star ted via an AUTOEXEC BAT entry The device drive
218. the bus segments under logical addressing PHCENIX CONTACT Figures 6 10 6 11 6 14 6 16 6 17 6 20 6 22 6 23 6 24 6 26 6 27 6 29 6 30 6 32 6 33 6 34 9 7 4 7 5 8 28 8 29 GEN B 5 InterBus S Appendix B B 2 Tables Section 1 Table 1 1 Section 2 Table 2 1 Table 2 2 Table 2 3 Table 2 4 Table 2 5 Section 3 Table 3 1 Table 3 2 Table 3 3 Table 3 4 Table 3 5 Table 3 6 Section 4 Table 4 1 Table 4 2 Table 4 3 Table 4 4 Table 4 5 Table 4 6 Table 4 7 Table 4 8 Table 4 9 Table 4 10 B 6 Ordering data for the documents available Pin assignment of the short AT bus edge connector Pin assignment of the long AT bus edge connector Pin assignment of the diagnostic interface Remote bus interface pin assignment Function of the jumper for the reset button Overview of coprocessor boards COP 486 drives Adapter cable assignment I O address area of the coprocessor board Interrupt assignment of the coprocessor board DRAM segmentation Possible settings for the base address in the I O area Setting of the board number of controller boards Control of the IBS master board by the host or by the COP Definition of the startup behavior Program start from the flash EPROM Selection of the boot drive for the coprocessor board RFSERVER boot behavior of the coprocessor board DPCON boot behavior Setting the terminal mode F
219. the counting mode which is common to programmable logic controllers PLCs As successive words start at even byte addresses they are numbered on the basis of these even byte addresses Thus for example the word consisting of bytes 6 and 7 is given the number 6 Table 6 5 Differences in word numbering modes between programmable logic controllers PLC and PCs Byte n 1 Word n 2 Byte n Therefore use only even addresses when creating address lists with the com mands Receive_Logical_IN_Address_Map_Request 003Aphex and Receive Logical OUT Address Map Request 003Bhex for the start addresses of IBS devices with an address area of 16 bits or more IBS devices with an address area of 8 bits length code 81hex can be placed at either even or odd start addresses Thus you can combine two 8 bit modules into one word in the logical addressing mode I The typical InterBus counting mode for words Table 6 5 left only needs to be observed when creating the logical assignment lists logical addressing pro cess data linkage event definition The driver software functions DDI DTI ReadData and DDI DTI WriteData employs the word counting mode that is usually used by high level languages Table 6 5 right when pla cing the data in the buffer see for example Figure 6 12 ee PHOENIX 6 19 CONTACT InterBus S InterBus S specific Programming 6 20 Word 1 Word 2 Word 3 Word 4 Word n 2 Bit a amp THE ONLIN
220. tion After the start of the IBS system by means of the Start Bus Cycle Request command 0001 pex the IBS master board operates the IBS system on its own and cyclically updates the I O data in the controller board MPM When an error occurs in the IBS system the IBS master board sends a message Depending on the type and the seriousness of the error two different reactions are possible 5036C PHCENIX 7 7 CONTACT InterBus S Error Diagnostics 7 8 THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Minor errors which do not interfere with the operation of the IBS system such as Failure of the I O supply voltage on an IBS device with error indication Overload of an output on an IBS device with error indication In this case the IBS master board responds with for example the Module Error Indication 80A0 2x message Using the diagnostic function GetIBSDiagnostic the bus segment containing the defective IBS device can be determined Using the command Send_Localbus_Module_Error_Request 005Bhex you can determine the faulty IBS device in the bus segment to be entered as a parameter The IBS system keeps operating Serious errors which do not allow any further operation of the IBS system such as Changes to the bus configuration e g by removing a bus connector Bus cable defect e g broken cable Failure of the logic supply voltage not I O supply voltage of a bus terminal module or of an IBS device with bus term
221. tions are not automatically aborted The proces sing of any outstanding services will continue after the restart of the data traffic The message consists only of one word the message code 00C6hex No furt her parameters follow Quit_Alarm_Stop_Confirmation00D8hex The Alarm Stop Request 004Apex was executed successfully The bus is in the STOP state The message consists only of one word the message code 00D8hex No furt her parameters follow Start_Bus_Not_Possible_Confirmation00E3hax This is a negative acknowledgment of the Start_Bus_Cycle_Requestcommand 0001 pex It is sent when no data traffic is possible on the bus Hardware error on the controller board Configuration change on the local bus modules have been removed or added The message consists only of one word the message code 00E3hex No furt her parameters follow PHOENIX ii CONTACT Meaning syntax Meaning syntax Meaning Remedy syntax Meaning Remedy syntax Meaning Remedy syntax Meaning Remedy syntax 5036C Error Handling Messages Quit_Bus_Delay_Confirmation00EChex The Bus Delay Request command 0059hex was executed successfully The message consists only of one word the message code 00EChex No furt her parameters follow 9 5 Error Handling Messages Quit_Clear_Display_Confirmation00E2 The Clear Display Request 004E command was executed The message consists only of one word
222. trisic_Confimaton 98 ep Switch Group Off Conima fee 80C4hex Bus Error Information Indication EEO1 Error type explanation and remedy instructions EEO2 Error type explanation and remedy instructions EE03 Error type explanation and remedy instructions EE04 Error type explanation and remedy instructions EEO5 Error type explanation and remedy instructions EE06 Error type explanation and remedy instructions SOFA Send Physical Configuration Confirmation 199 SOFT Groups Error Characteristic Failed Confirmation 98 9 4 PHGNIX 5036C CONTACT Meaning Cause Remedy syntax Key 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Format of a Message Description 9 1 Format of a Message Description This chapter describes the messages of the IBS master board The messages are word based the message codes are given in hexadecimal notation The description format is as follows Name of the messageMessage codehex Describes the message contents Describes the causes of the message Gives e g in the case of error messages instructions on how to remove the cause of the error Only the message code is specified for a message without parameters The syntax of a message with parameters is given as a parameter block as fol lows Word 1 Word 2 Word 3 Word 4 Word 5 Word n 2 Bit Parameter Description of the individual parameters PHCENIX 9 9 CONTACT nter B us S T
223. ts according to the setting of the MPM address the setting is done by means of the mapping register When the data consistency Is 16 32 or 48 bits multiple 8 bit accesses are carried out Please note the following when accessing the MPM The IBS master board AN places its data in the MPM in the Motorola format 68xxx family whereas the host and COP processors expect data in the Intel format These two formats have opposite orders of byte addresses numbering For MPM accesses use E supplied macros for data conversion which exchange the low byte and the high byte see the Driver Software Manual BS PC CB SWD UM E which is supplied with the driver software IBS PC CB SWD 5036C PHONIX 3 13 CONTACT l nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Technical Description of the Coprocessor Boards 3 4 4 Mapping Register The memory mapper plays a central part in the coprocessor hardware design It is located in the I O area of the coprocessor board It is an 8 bit register which enables the switching over of the individual memory areas to the segment B0000hex BFFFFhe This memory area provides access to the EPROMs the RAM and the MPM window The access is performed by means of driver soft ware functions 3 4 5 Coprocessor Board Serial Interface The serial interface of the coprocessor board allows the software development and the program test without the use of the MPM interface Thus you can for example carry out rem
224. uch rights shall not be excluded however The use of products described in this manual is oriented exclusively to qualified application programmers and software engineers familiar with automation technology and the applicable national standards Phoenix Contact assumes no liability for erroneous handling of or damage to Phoenix Contact or external products resulting from disregard of information contained in this manual THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S ER awww ww IBS PC CB HW UME Table of Contents 1 Introduction and Overview 2 2 1 2 ew ee 1 3 1 1 Quick Start Under DOS 1 3 1 2 Programming Fundamentals 1 4 1 3 Documentation 1 6 1 4 Modular Design of the Controller Board 1 8 2 Technical Description of the Motherboard 2 2 23 2 1 Short Description 2 mm 298 2 2 Mechanical Design o fM BR 2 4 2 2 1 Layout of the Controller Board cc a RA 2 2 2 Function oftheLEDS 2 7 2 3 Controller Board Interfaces So oa gt 2 3 1 Connection of the Motherboard with Your PC o 28 2 3 2 Connection Between Motherboard and the Daughterboards 2 10 2 3 2 1 Interfaces of the IBS Master Board 2 10 2 4 Controller Board Functional Units 2 13 2 4 1 AT Bus Interface Rd ek Er ed o serlo 2 4 1 1 1 0 Base Address in the
225. umber Message code here 80C5hex Number of subsequent words here 1 Number of the group that could not be enabled 00hex to FFhex corresponds to 0 to 255gec PHOENIX 9 7 CONTACT InterBus S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Messages of the IBS Master Board Meaning syntax Meaning syntax Word 1 Word 2 Word 3 Word 4 Bit Key Meaning Remedy syntax 9 8 Quit_Groups_Error_Characteristic_Confirmation00F6 The Define_Groups_Error_Characteristic_Request 0060 command was executed The message consists only of one word the message code 00F6hex No furt her parameters follow Groups_Error_Characteristic_Failed_Confirmation80F7 The Define_Groups_Error_Characteristic_Request 0060 command was not executed without errors The error number identifies the error type The in formation contained in it has not been taken over The parameter number iden tifies the faulty parameter Code Message code here 80F7hax Parameter count Number of subsequent words here 2 Error number The error number parameter identifies the type of the er ror 1 Elements exist more than once 2 The group number does not exist Parameter number The parameter number parameter identifies the faulty parameter in the command Define_Groups_Error_Characteristic_Request 0060p Check_Configuration_Error_Confirmation0068 This error is indicated when with the Check Physical
226. unction of the power supply selection jumper see labelling on the controller board PHOENIX CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS 1 7 2 8 229 2 11 2 12 2 15 3 3 3 4 oer 3 9 3 10 3 12 4 4 4 5 4 6 4 7 4 8 4 9 4 10 4 11 4 12 4 13 5036C Table 4 11 Table 4 12 Table 4 13 Table 4 14 Table 4 15 Table 4 16 Table 4 17 Section 5 Table 5 1 Table 5 2 Table 5 3 Table 5 4 Table 5 5 Section 6 Table 6 1 Table 6 2 Table 6 3 Table 6 4 Table 6 5 Table 6 6 Section 7 Table 7 1 Section 8 Table 8 1 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S w ww ww Tables Function of the jumper for separation from the host hardware reset see labelling on thecontroller board 4 14 Function of the Enable Disable RESET Button see labelling on the controller board 4 14 Pin assignment of the connector for the battery pack 4 15 Controller board power consumption 416 Typical memory mapping of a standard PC 4 17 Examples for parameters supplied when calling the device driver 0 ee eee 4 19 Examples for entering parameters 4 22 Offset constants 5 6 Opening a data channel from the host to the IBS master board 5 11 Opening a data channel from the host to the coprocessor board for IBS PC CB COP I T and IB
227. us Cycle Counter_Request0006hex 32 bit counter that continuously counts the InterBus S data cycles runs inter nally on the controller board This counter is set to 0 when the controller board starts up The command reads out the count The command consists only of a single word the command code 0006 hax No further parameters follow Bus Cycle Counter Confirmation Meaning The message indicates the current counter reading PHCENIX 8 27 CONTACT nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Commands for the IBS Master Board 8 8 Process Data Linkage Commands In some applications input signal transitions should be responded to faster than the host system is able to The host response time to a signal transition depends on the application program cycle time Process data linkage makes it possible to respond to signal transitions at inputs before they are included in the process image of the host When the controller board detects the signal transition of an input it can pass it on in the usual way to the host for further processing quickly effect a direct response to an output using a process data linkage in struction IBS device Controller board Host Process Bus input data input data Host input bit Process data linkage Process output data Bus output bit Application program l Host output bit AnQAAQn1 Figure 8 1 Quick response through process data
228. us S Addressing Modes 66 6 2 Physical Addressing of IBS Devices toe eee we 6 7 6 2 1 Addresses in the Physical Addressing Mode e 6 8 6 2 1 1 Assignment of the Input Addresses by the Controller Board 6 8 6 2 1 2 Assignment of the Output Addresses by the Controller Board 6 10 6 2 2 Command Sequence for Startup Under Physical Addressing 6 12 6 3 Logical Addressing of IBS Devices 6 13 6 3 1 Determining the Currently Connected Bus Configuration 6 13 6 3 2 Checking the Bus Configuration o 6 14 6 3 3 Assignment of Logical Bus Segment Numbers oe es 6 16 6 3 4 Assignment of the Logical Addresses by the Programmer 6 19 6 3 4 1 Assignment of the Logical Input Addresses 6 20 6 3 4 2 Assignment of the Logical Output Addresses 6 24 6 3 4 3 Checking the Validity of the Assignment Lists 6 27 6 3 5 Command Sequence for Startup Under Logical Addressing 6 28 6 4 Group Definition asas AR O29 6 4 1 Creating Functional Groups a 6 29 6 4 2 Swtiching Groups Off 6 32 6 4 3 Enabling Groups On 6 33 6 4 4 Defining the Handling of Groups i in the Event of Errors gt 6 33 mee PHCENIX 6 1 CONTACT 6 2 PHCENIX CONTACT onlinecomponents com THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HENAO w MAA ww InterBus S specific Programming 6 Inte
229. utput word 9 0018p 0016 ne 0014 hex 0012 no 0010 000E ex 000C 000A 0008 0006 hex 0004 hex 0002 hex 0000 5036A712 Output word 8 Output word 7 Output word 6 Output word 5 Output word 4 Output word 3 Output word 2 Output word 1 Output word 0 Figure 6 5 Output addresses in the memory map OUT buffer The start addresses of the modules are in bold type 6 10 PHOENIX ii CONTACT onlinecomponents com THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS SEE S awww ww Assignment of the Output Addresses by the Controller Board Controller board IBSST IBST24 IBST24 IB ST 24 IB ST 24 24 BK T DI 16 4 AO 4 SF DO 16 3 PT 100 4 4 OW 0 OW 4 OW 1 OW 2 OW 3 IBS IP DIO 1 24 IBS IP CBK 1 24 IBS IP CDI 1 24 F IBS IP CDO 1 24 F IBS IP CDI 1 24 F a IIIT IIE ICI ITE MN ZRII IBS f J CI TMS IBS DI 32 50364702 Figure 6 6 Output addresses under physical addressing wee PHOENIX 6 11 CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS InterBus S InterBus S specific Programming 6 2 2 Command Sequence for Startup Under Physical Addressing Table 6 4 Command sequence for s
230. value OO000hex Timeout Enter here the desired timeout period in milliseconds Quit Set Parameter Timeout Confirmation 00CFhex Enable All Messages Request0047 hex This command enables the transfer of messages from the controller board to the host The transfer of messages is enabled until the user disables it Following RESET it is disabled as default The command consists only of a single word the command code 0047hex No further parameters follow Quit Enable All Messages Confirmation 00D6hex PHCENIX peer CONTACT Task RS Syntax Positive acknowledgment Task Prerequisite syntax Positive acknowledgment Task syntax Positive acknowledgment 5036C System Check Commands Disable_All_Messages_Request0048hex The command disables the transfer of messages from the controller board to the host and routes them to the diagnostic interface V24 The Enable All Messages Request 004 7 ex command cancels the redirection The Disable All Messages Request command consists only of a single word the command code 0048hex No further parameters follow Quit_Disable_ All Messages Confirmation 00D6 8 7 System Check Commands Send_Software_Revision_Request0008 The command inquires the firmware version on the IBS master None The command consists only of a single word the command code 0008hex No further parameters follow Software Revision Gonfirmation 8087hex Send B
231. ved 00hex currently with no meaning Event ID where an error was detected PHCENIX peer CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Appendix A Technical Appendix A Technical Appendix 2 2 2 ew ew 3 A 1 Technical Data of the Controller Boards A 3 5036C PHGNIX A 1 CONTACT A 2 PHCENIX CONTACT onlinecomponents com THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS 5036C A Technical Appendix 5036C THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S awww ww Technical Appendix A 1 Technical Data of the Controller Boards General data Permissible temperature range Operation inlet air temperature Storage inlet air temperature Permissible humidity Operation Storage Insulation strength Mechanical design Format Front plate Dimensions Ground IBS PC CB I T IBS PC CB COP I T IBS PC CB RTX486 I T Host interface AT Bus interface Connector Address requirements per controller board see Chapter 4 in the host memory in the I O area Interrupts Permissible number of controller boards Supply Permissible voltage including ripple Permissible ripple Current consumption IBS PC CB I T IBS PC CB COP YI T IBS PC CB RTX486 I T Battery PHCENIX CONTACT 0 C to 455 C 20 C to 70 C 75 non condensing 95 non condensing 0 5 kV Long standard
232. ver Under Microsoft Windows 4 20 4 6 2 1 Installation Assistance for Microsoft Windows 4 21 4 6 3 Device Driver Under IBM OS 2 4 22 4 6 3 1 Installation Assistance for OS 2 4 22 4 7 Installation of the I O Periphery 4 23 4 8 Software Tools for Startup 4 23 4 9 Startup with Process Data Monitor Program 4 24 4 9 1 The Functions Pull Down Menu 4 25 4 9 2 Issuing Commands with PCCBMONI 4 28 4 9 3 The Options Pull Down Menu 4 30 5 Interfaces Between Hardware and Software 5 3 5 1 Multi Port Memory 059 5 1 1 The MPM in the Host Address Area 5 3 5 1 2 Organization of the MPM 5 4 52 General Structure of the Driver Software 5 7 5 2 1 Implementation of the DDI and the DD 5 9 5 2 2 Structure of the Driver Software on the Coprocessor Board 5 9 5 2 3 Explanation of Driver Software Terms 5 10 5 2 3 1 Management of Data Channels 5 10 5 2 3 2 Mailbox Interface 5 12 5 2 3 3 Data Interface 5 12 5 2 3 4 Diagnostic Function 5 12 5036C PHOENIX CONTACT THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS HEE S S awww ww IBS PC CB HW UME 5 3 Use of the Static RAM 5 4 Communication Between Host and COP y 5 4 1 Structure of a Message Between Host and COP 5 5 Monitoring by Watchdogs tae a 5 5 1 IBS Master Board Watchdog 5 5 2 Watchdog for Host Monitoring 5 5 3 Coprocessor Board Watchdog 5 5 4 The SysFail Signal 5 6 Application Program Downloading to the COP
233. w ww Configuration Commands Unknown Bus Module 005Bhex Meaning An invalid number of process data words was specified the first module of the bus configuration is no bus termi nal module Comment Only in this case is the desired configuration not stored in the controller board RAM Receive_Group_Numbers_Request0049 Using this command bus segments that belong together logically are combined into one group by specifying the group number in connection with the bus seg ment numbers Assign all bus segments with the exception of the segments in installation remote busses to one group In the basic condition following power on pressing the reset button or calling the Configure Bus Request 0023 all bus segments are combined in group 0 The bus must be in the STOP state when this command is used The distribution of the bus configuration into groups makes it possible to disable and reenable the bus segments that branch off from the main line remote bus branch line installation remote bus local bus commands Switch Group Off Request and Switch Group On Request A group may consist of one or more bus segments for 1st bus segm for 1st bus segm for xth bus segm for xth bus segm Code Command code here 0049hex Parameter count Number of subsequent words here number of bus segments multiplied by 2 Bus segment Number of the bus segment assigned to the group mentioned in the next line Group Number o
234. x could not be executed The message consists only of one word the message code 00DFhex No furt her parameters follow Quit_Enable_Event_Logical_Address_Confirmation00E0ex The Enable Event Logical Address Request command 0036hex was execu ted The message consists only of one word the message code 00E0 2 No furt her parameters follow Quit_Disable_Event_Logical_Address_Confirmation00E1 The Disable_Event_Logical_Address_Request command 0037hex was execu ted The message consists only of one word the message code 00E1hex No furt her parameters follow PHOENIX 9 35 CONTACT nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Messages of the IBS Master Board Event Number Indication8099hex Meaning By means of bit by bit ORing of the event IDs this message indicates all bits in a word which occurred during a data cycle Prerequisites Use only such event IDs for the 16 possible event definitions which consist of a word where only one bit has been set 0000 0000 0000 O001 1 0000 0000 0000 0010 0000 0000 0000 0100 0000 0000 0000 1000 p p 0000 0000 0001 0000 pin 0000 0000 0010 000055 0000 0000 0100 O0000 0000 0000 1000 0000p in 0000 0001 0000 0000 0100162 0000 0010 0000 O000 0000 0100 0000 0000bin 0000 1000 0000 O000 0001 0000 0000 000055 0010 0000 0000 0000pin 0100 0000 0000 0000 in 1000 0000 0
235. yntax Word 1 Word 2 Word 3 Word 4 Word 5 Bit Key Task syntax Word 1 Word 2 Word 4 Bit Key 5036C Process Data Linkage Commands Bit Copy Instruction 000Dhex This instruction causes a particular bit in the specified input word to be copied to a particular bit in the specified output word Transfer the command to the controller board using the command Receive Processing Instructions Request 005Dhex Code Instruction code here 000Dhex Bit number Enter here the number of the desired bit Ohex to Fhex corresponds to Oye to 15gec Output address Address of the word to which the bit is copied Input address Address of the word from which the bit is copied Word Copy Bit Mask Instruction 000Ehex This instruction causes the bit by bit ANDing of a particular input word with a masking word and writes the result to a particular output word Transfer the command to the controller board using the command Receive Processing Instructions Request 005Dhex e o OPE ene 0 Code Instruction code here 000Ehex Output address Address of the output word to which the ANDing result is copied Input address Address of the input word to be ANDed Mask Masking word PHOENIX 8 37 CONTACT nter B us S THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS Commands for the IBS Master Board 8 9 Event Processing Commands Some applications require specific reactions to particular events With the event definitio
236. you only need to specify the values which you want to change The order of parameters is irrelevant Entering IBSPCCB UNINSTALL de installs all device drivers 4 6 1 1 Installation Assistance for DOS The device driver BSPCCB EXE checks during its installation whether there is a controller board at the specified I O address If no controller board is found at the I O address an error message will be output and the device driver installa tion will not take place Any attempt of a multiple installation of device drivers with identical parameters will also be aborted with an error message Only the device driver installed first remains operative The device driver provides a simple means of checking whether the PC has been installed correctly in the PC The device driver will not recognize any dual assignment of MPM addresses AN I O addresses or interrupts Ensure that the set I O address area the memory area for the 4 Kbyte MPM window and the interrupt for the controller board are not already used by other PC components When the memory manager EMM386 EXE Microsoft is used a 4 Kbyte me mory area in the host PC must be protected from access by the memory mana ger Therefore make an addition to the following line in your host PC s CONFIG SYS 5036C PH NIX 4 19 CONTACT InterBus S Installation and First Startup 4 20 THE ONLINE DISTRIBUTOR OF ELECTRONIC COMPONENTS DEVICE C DOS EMM386 EXE x D000 D100 In this exam

Download Pdf Manuals

image

Related Search

Related Contents

Manual del Propietario e Instrucciones Calefactores Radiantes  manuale solart - Brollo Siet Srl  Nilfisk-ALTO Dynamics 840 User's Manual  HALion Sonic – Operation Manual - Parent Directory  ASUS Q9512 User's Manual  Motorola Moto Q8 Black  [364-679 魎Kー22607R リモコ ンセツメイ シ 打  I.R.I.S. IRIScan + Readiris Pro 8  Mode d`emploi du tableau de calcul tranchée massif  

Copyright © All rights reserved.
Failed to retrieve file