Home
CompoNet Master Board for PCI Bus/CompactPCI Bus User`s Manual
Contents
1. Location o cable stopper 4 Attaching the Housing Reconfirm that the cable wire colors match the cable label colors Temporarily secure the housing to the cover Housing Note Once it is attached the housing cannot be removed from the cover If you attempt to remove it forcibly you may damage the connector 183 Preparing and Mounting F lat Connectors on the Cables Section E 4 5 Pressure Welding the Connector Use a DWT ATO1 Special Tool Pliers to pressure weld and connect the cable 5 1 Align the center See arrow of the connector cover with the center of the pressure welding block on the DWT A01 Pliers Special Tool Pliers Connector cover ai S a J A Sinig 7 0 nina EIN Tt 5 2 Squeeze the Pliers firmly until the lock on the connector clicks into place Precautions for Correct Use eDo not pressure weld the connector cover at the edge eDo not use the back of pressure welding block to pressure weld the connector cover eSet the Connector in the correct orientation 5 3 Confirm that itis properly pressure welded as shown below It must be locked on both right and left No space here 184 Preparing and Mounting F lat Connectors on the Cables Section E 4 E 4 2 Preparing Connectors for Flat Cable Preparing and Names of Flat Connecter Socket components Mounting the DCN4 TR4 Flat Connector Cover Housing Sockets Cable labels Black blu
2. nications Open Type Connector i 1 1 1 1 1 1 j n 4 Slave Unit Open Type Connector Communications Communications Communications power supply 24 VDC power supply 24 VDC power supply 24 VDC 167 Wiring for a CompoN et Network Section E 3 Multidrop Connectors can also be used to connect the Slave Units in parallel Master Board or Repeater Unit Terminating Resistor 121 Q BS Commu nications Open Type Connector ae Communications Communications lt Sa Slave Unit S Towne N AXA KE aaa A Te Slave Unit Slave Unit A JV ANE OQIQIOIO CEEI BDHBDL BDHBDL Open Type Connector Communications Communications Communications power supply 24 VDC power supply 24 VDC power supply 24 VDC E 3 2 Wiring Round Cable Il e The two communications signal lines and the two communications power lines are connected in parallel between the Master Board or a Repeater Unit and multiple Slave Units A DCN4 TB4 Open Type Connector is used to connect the communications cables to the Master Board or a Repeater Unit and to the Slave Units A 24 VDC communications power supply is connected to the communications power supply connector on the Master Board or the Repeater Unit e At the end of the network line you must connect either a DCN4 TR4 Flat Connector Socket with a DCN4 TM4 Terminating Resistor attached to it ora
3. Get Access to I O CPNT_GetAccessTolO Write OUT data CPNT_SetOutData CPNT_SetBitOutData Data Inputs and Outputs A Y Read IN data CPNT_GetlnData CPNT_GetBitInData Release Access to 1 0 CPNT_ReleaseAccessTolO y Loop End y Stop communications cycles o i CPNT_StopCycle fo a y a g Close Board Ww CPNT_Close Precautions for Correct Use The program must be made to implement accesses to I O data in a single thread This includes getting and releasing an access right If multiple threads access to I O data processes may collide and the functions may fail 43 Access to I O Data Section 4 1 4 1 3 Access to I O Data with Initial OUT Data Value Setting Function 44 When the communications cycle is started without making any initial setting for the OUT data it keeps sending 0 data until the OUT write function is executed Take these steps to set the initial value as the OUT data and to start the communications data from the user application va Open Board CPNT_Open Write Initial values of OUT data CPNT_SetOutData CPNT SetBitOutData Initial processing oe y Start communications cycles CPNT_StartCycle y Loop Start y Read Basic status group CPNT_GetStatus An error on the basic status group Error solving NO
4. 0 00 0 02 ee eee Explicit Messages 0 cece cece teen teen eens Detailed Settings at Communications Cycle Startup 3 5 1 Registration Table Function 0 0 3 5 2 Communications Stop Due to Communications Error Function 3 5 3 I O Communications Manual Startup Function 3 5 4 IN Data Zero Clear Due to Communications Error Function SECTION 3 28 28 30 30 35 35 35 36 37 37 37 39 39 40 Functions 27 Settings at Communications Cycle Startup Section 3 1 3 1 Settings at Communications Cycle Startup The function CPNT_StartCycle is used to start the communications cycles for the CompoNet Master Board from the user application The function CPNT_StartCycle uses the data rate and the number of occupied nodes as arguments The command OPEN_SYSTEM is used to start the communications cycles through the shared memory access To enable the superior function and start the communications cycle execute the function CPNT_StartCycleEx in Windows or the command OPEN_SYSTEMEX for shared memory access See Section 3 5 3 1 1 Settings Required for Starting the Communications Cycle 28 Function Description This is used to set the data rate for a network The Slave Units in the same network automatically follow the data rate of the Master Board Data rate is selective among 4 Mbps 3 Mbps 1 5 Mbps and 93 75 kbps Number of occupied The number of nodes can be
5. Repeater Unit 0 to 63 Repeater Unit IN Slave Unit Node e For Word Mixed Slave Units use the same node address type as for a Addresses Are Used Word Input Slave Unit for Mixed Slave Units For Bit Mixed Slave Units use the same node address type as for a Bit Input Slave Unit e If you connect a Word Input Expansion Unit such as the XWT ID16 or XWT ID08 to a Word Output Slave Unit the result is treated as a Mixed Slave Unit Therefore the node address type is a Word MIX Slave Unit instead of a Word OUT Slave Unit 164 Wiring F ormations The Same Address Can Be Used for Different Node Address Types The Same Address Cannot Be Used for the Same Node Address Type You Cannot Use Nodes That Are Allocated the Same Areas at the Same Time Section E 2 You can use the same node address again for different node address types as long as long as the same areas are not allocated You cannot use the same address for a Word Mixed Slave Unit and Word Output Slave Unit because the same areas would be allocated The same is true for a Bit Mixed Slave Unit and Bit Output Slave Unit Example 1 Example 2 Example 3 Example 1 Example 2 You can use a Word Input Slave Unit with node address 0 and a Word Output Slave Unit with node address 0 You can use a Word Mixed Slave Unit with node address 1 anda Bit Mixed Slave Unit with node address 1 You can use a Word Input Slave Unit with no
6. It returns TRUE when the message has been successfully registered It returns FALSE when both the thread ID and the window handle are null or when an error occurs Detailed error content can be obtained with GetLastE rror e The value 0 is stored in both of WPARAM and LPARAM of the notified message e Set either the thread ID or the window handle If both are set an error will be returned and the message will not be registered A 6 4 CPNT_UnRegReceiveE xplicitNotifyMessage Unregister Notice of Explicit Response Message Received Purpose Call Format Argument Returned value Remarks Unregister the message to notify when an Explicit response message is received BOOL CPNT_UnRegReceiveE xplicitN otifyMessage HANDLE Handle ype Parameter Direction Description HANDLE Handle Device handle obtained with the function CPNT_Open It returns TRUE when the notification message has been successfully unregistered It returns FALSE when an error occurs Detailed error content can be obtained with GetLastError The function CPNT_SendE xplicit must be executed in prior to this function 95 Explicit Messaging API Section A 6 A 6 5 CPNT_ReceiveE xplicit Get Explicit Response Message Read the Explicit response message Purpose Call Format Argument Returned value Remarks 96 BOOL CPNT_ReceiveE xplicit HANDLE Handle CPNT_EXPLICIT_RES ExplicitR es Type Parame
7. Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 0 IN data of Word IN MIX Slave Unit 0 1 IN data of Word IN MIX Slave Unit 1 2 IN data of Word IN MIX Slave Unit 2 to to 62 IN data of Word IN MIX Slave Unit 62 63 IN data of Word IN MIX Slave Unit 63 Detailed format IN Data Read Write Stores the word input data from the Word Input Mixed Slave Unit This stores the BitIN data from a Bit IN Slave Unit Data format Offset address 0x0180 Shared M emory Area Specifications Section B 3 Word OUT Data Detailed format Access Descipton Number of the node Read Write Itstores BitIN data from a Bit IN Slave Unit This stores the Word OUT data given to a Word OUT Slave Unit Data format Offset address 0x0200 Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 OUT data for the Word OUT Slave 0 OUT data for the Word OUT Slave 1 OUT data for the Word OUT Slave 2 to OUT data for the Word OUT Slave 62 OUT data for the Word OUT Slave 63 Detailed format Word OUT data Read Write It stores the OUT data given to a Word OUT Slave Unit 115 Shared M emory Area Specifications Section B 3 Bit OUT Data 116 This stores the Bit OUT data given to a Bit OUT Slave Unit Data format Offset address 0x
8. Sub trunk line Flat Cable Il Multi power BE supply are T __3 Terminating NNN Pa Branch i i a WK AT Port 1 Upstream lines AN S S ID Port 2 Downstream AHAH HHA Slave Units with IlF I 17 l I 1 network power supply Terminating Slave Unit Resistor I O power supply Multi power supply Precautions for Correct Use eDo not supply communications power from more than one location for the trunk line or for any one sub trunk line The quality of communications may decrease and normal communications may not be possible eDo not supply communications power from a single power supply to the trunk line and a sub trunk line or to two sub trunk lines Also do not use a single communications power supply for two or more CompoNet networks The quality of communications may decrease and normal communications may not be possible eThe I O power supply to multi power supply Slave Units may be a source of noise depending on the connected devices Even when supplying the communications power supply together to all Slave Units use a separate I O power supply so that noise does not affect the network 202 Wiring for Power Supply Section E 5 Restrictions The following restrictions apply when supplying communications power through a round cable II Flat Cable or Flat Cable ll The communications power supply can be connected at only one location for the trunk line and one location each
9. 172 This section explains the procedures to connect Units that compose a CompoNet network Below is the representative case of connecting the Master Board and cables The Master Board must be connected and located at the end of the trunk line unless the network uses the unrestricted wiring formation The Master Board is connected with the communications cable via the communications connector provided on the Master Board Cable connectors differ by the type of cable used as the communications cable Use a DCN4 TB4 Open Type Connector to connect a round cable or II to the Master Board The Open Type Connector converts the communications connector of the Master Board to a terminal block The terminal block for this purpose must have M3 crimp terminals Round cable or II with DCN4 TB4 Open Type Connector Master Communications connector DCN4 TB4 Open Type Connector for connecting a Unit Wiring for a CompoNet Network Section E 3 When Using Flat Use a Flat Connector Plug to connect Flat Cable or II to the Master Board Cable I or Il with Flat Connector Plugs e Flat Cable with DCN4 BR4 Flat e Flat Cable Il with DCN5 BR4 Flat Connector Plug Connector II Plug Communications connector Master Board Master Board DCN5 BR4 Flat Connector II Plug for sheathed cable Communications connector DCN4 BR4 Flat Connector Plug for unsheathed cable E 3 6 Branching Communicati
10. 33 Board Hardware Error Notification Section 4 8 54 5 1 5 2 5 3 5 4 5 5 5 6 SECTION 5 Operation by Accessing to Shared M emory Operation procedures in other environments other than Windows OS Basic Proc dures m ss sc se bk ed BN BS SA led ve Gas Re a awed oa Ss 5 1 1 Outline of Board Control 0 00 0 00 e eee eee eee 5 1 2 Control of the Interrupt from PC to Board 5 1 3 Control of the Interrupt from Board to PC 5 1 4 Command Access Control 0 00 00 eee eee Communications Cycle Control Procedures 2 0008 5 2 1 Outline of the Communications Cycle 004 5 2 2 Controls from the Initial Process to Communications Cycle Startup 5 2 3 Control of I O Data Access 1 0 0 0 0 0 eee ee 5 2 4 Control of Status Access 0 00 0 0 eee eee eee eee 5 2 5 Control of Event Access 0 0 00 cee eee eee Setting the Time Information 0 00 0 cece eee eee Implementing the Reset Request 0 cece ee eee eee PC Watchdos TIMER eoi gaira bee A RARE Re ek SE SR Board Hardware Error Notification 0 0 0 0 cece ee eee eee eee 56 56 56 57 58 58 58 60 61 61 62 63 63 64 65 55 Basic Procedures Section 5 1 5 1 Basic Procedures 5 1 1 Outline of Board Control In addition to reading from and writing to the Shared memory these functions are used to control the CompoNet Master Board
11. Cumulative CRC reception error It is the cumulative count of CRC errors It stops counting at 0xF FFF Cumulative code reception error It is the cumulative count of Manchester encoding errors It stops counting at 0xF FFF Communication State Indicates the communications state 0 to 2 Initial processing after participation 3 to 4 IDLE state 5 RUN state 7 Communications stop state Communications stop mode It stores 0x0001 when the Communications stop due to Communications Error Function is enabled It stores 0x0000 when the Function is disabled Registration table mode It stores 0x0001 when the Registration Table Function is enabled It stores 0x0000 when the Function is disabled Itis the error counter of the CompoNet Master Board The CompoNet Master Board processes retries when it observes a communications error on a Slave or Repeater Unit 123 Shared M emory Area Specifications Section B 3 124 If the error counter value exceeds the threshold the CompoNet Master Board will deem the relevant Slave or Repeater Unit to have a communications error The error counter can also be used to determine the network quality even when there is no communications error Data format Offset address 0x041A Bit 15 14 13 12 11 10 09 08 Error counter value for Word IN MIX Slave Unit 1 07 06 05 04 03 02 01 00 Error counter value fo
12. Returned value It returns TRUE when the function succeeds It returns FALSE when an error occurs The error details can be obtained with the function GetLastE rror Remarks This is used to get the version of the Device driver DRIVER_VERSION_INFO structure MajorVersion Major revision of the Device driver MinorVersion Minor revision of the Device driver A 4 3 CPNT_GetStatus Read Basic Status Group Purpose Read the Basic status group Call Format BOOL CPNT_GetStatus HANDLE Handle CPNT_STATUS Status Argument twee Parameter Direcion Deveriplon HANDLE Handle Device handle obtained with the function CPNT_Open CPNT_STATU Status Pointer to store the basic status S Returned value It returns TRUE when the function succeeds It returns FALSE when an error occurs The error details can be obtained with the function G etLastE rror Remarks This is used to get the Basic status group See Section 3 3 1 for the group The communications cycles must be running when this function is executed CPNT_STATUS structure Parameter Description J oinList 28 Participation flag AwayList 28 Communications error flag State StateS tatus See Appendix B 3 3 for the data format 86 Status Access API Section A 4 A 4 4 CPNT_GetStatusEx Read Detailed Status Group Purpose Read the Detailed status group Call Format BOOL CPNT_GetStatusE x HANDLE Handle CPNT_STATUSEX StatusEx WO
13. 3 Decide the number of nodes Decide the number of connected nodes WwW 4 Decide the wiring formation and installation Decide following e Wiring formation Trunk line Branch line formation or Unrestricted wiring formation e Wiring distance e Methods to supply the communications power and the I O power to the Slave Units in less wiring effort and e Cable type W 5 Temporarily decide the number of connectable Slave Units and the data rate Note The data rate of 4 Mbps does not support T branch Thus any Slave Unit with pre attached cables will not be usable VW 6 Decide the communications cycle Decide the communications cycle in accordance with the number of connectable Slave Units and the data rate Examine if the required I O response time is obtained in the data rate v 7 Ea Examine the distribution of CompoNet Master Boards If re examination of the communication mode number the data rate and the use of Repeater Units does not ensure the synchronicity of communication cycle and distance provide the CompoNet Master Boards in distributed locations See Appendix E Construction of a CompoNet Network See E 1 3 Maximum Length and Maximum Number of Connectable Slave Units for Each Type of Cables See Appendix C Communications Performance Board Preparation Procedure Section 1 6 1 6 Board Preparation Procedure The following is the basic flo
14. Repeater Units can be used to expand the trunk line for up to two layers The lines downstream from the Repeater Units are called sub trunk lines The maximum number of connectable Repeater Units is 64 per Master Board and 32 per trunk line The power to the sub trunk lines must be supplied from the Repeater Units Overview of the CompoNet Master Board Bit Level Distribution Data Exchange by Explicit Messages Automatic Baud Rate Detection Section 1 2 CompoNet is connectable with industry standard e CON connectors and Slave Units of clamp terminal block type They allow bit level controls of conveyors or at warehouses where many sensors are placed over a wide range Explicit messages are used to access from the PC to the Slave Units and Repeater Units connected to the CompoNet network This feature facilitates the maintenance of the entire network By setting the baud rate on the CompoNet Master Board the Slave Units automatically detect the baud rate of the CompoNet Master Board and follow it There is no need to set the rate individually on the Slave Units 1 2 Overview of the CompoNet Master Board Control by API Functions Control by Shared memory Accesses Flexible Allocation of the Number of Connectable Nodes Registration Table Function to Control Participating Slave Units Optimizing Communications Cycle Synchronous and Asynchronous Access to I O Data Other Functions CompoNet Master Board is a b
15. Write OUT data CPNT_SetOutData CPNT_SetBitOutData Y Read IN data CPNT_GetinData CPNT_GetBitInData y Loop End y Stop communications cycles Data Inputs and Outputs MA aD f CPNT_StopCycle Vv Q fe y pz Close Board w CPNT_Close Detailed Setting at Communications Cycle Startup Section 4 2 4 2 Detailed Setting at Communications Cycle Startup This is the procedure by which to use the detailed setting functions such as the Registration table and to start the communications Use the function CPNT_StartCycleEx and notify the CompoNet Master Board of the detailed settings 2 Open Board p CPNT_Open 8 g Start Communications cycles E in details setting CPNT_StartCycleE x Y Loop Start Y Read Basic status group CPNT_GetStatus Y An error on the basic status group Error solving NO Write OUT data CPNT_SetOutData CPNT_SetBitOutData Y Read IN data CPNT_GetinData CPNT_GetBitInData Data Inputs and Outputs A y Loop End lt a y p Stop Communications cycles 3 CPNT_StopCycle 8 y a 2 Close Board Ww CPNT_Close 45 Explicit Messaging Section 4 3 4 3 Explicit Messaging 4 3 1 Explicit Messaging This is the procedure by which to use periodic polling from the user application
16. HANDLE Handle WORD BitIN WORD WordOffset WORD WordSize 91 I O Data Access API Argument Returned value Remarks Parameter Handle Direction Section A 5 Description Device handle obtained with the function CPNT_Open BitIN Specify the pointer to store Bit IN data Requires the area equivalent to Word size 32 bytes max WordOffset Specify the Word offset for the Bit IN Slave Unit from which the reading of BitIN data will start Settable range 0 to 16 It returns TRUE when the function succeeds WordSize Specify the Word size of the Bit IN data to read Observe the condition for the set value WordOffset WordSize lt 16 Settable range 1 to 16 It returns FALSE when an error occurs The error details can be obtained with the function GetLastE rror To execute this function the I O communications must be running See Appendix B 3 5 for the content of Bit IN data A 5 5 CPNT_SetOutData Set OUT Data in Word OUT Slave Unit Purpose Call Format Argument Returned value Remarks 92 Set the OUT data in Word OUT Slave Units BOOL CPNT_SetOutData HANDLE Handle WORD OUT WORD WordOffset WORD WordSize Parameter Direction Description HANDLE Handle IN Device handle obtained with the function CPNT_Open WORD OUT IN Set the OUT data Set the data equivalent to Word size WORD WordOffset IN Specify the Word offset for t
17. Section C 1 C 1 3 Descriptions of Parameters Tin Input Slave Unit input delay time Tout Output Slave Unit output delay time Tnetcyc Communications cycle time TNetin Time allotted for IN frames in communications cycle time TNnetOut Time allotted for OUT frame in communications cycle time Termin Input processing time at the Master Board Tcrmout Output processing time at the Master Board TrelAcc Processing time to release an access right Tec Time for a PC to process the application Precautions for Correct Use Tjy_ input Slave Unit Input Delay Time Tour Output Slave UT Unit Output Delay Time Tnetc C Communications Cycle Time When you calculate the parameters do not use the actual numbers of Units for values such as the number of Word Output Slave Units connected R ather use the number of occupied nodes that is specified when the communications cycle is started For details on input output delay times for individual Slave Units refer to the input specifications for individual Slave Units in the CompoNet Slave Unit Operation Manual Cat No W457 30 Mbit 93 75 Kos Communications 0 74ms G 10 78 ms G 1 80 ms G 23 82 ms G 1 5S2 S1 S2 S1 S2 S1 S2 0 57ms G 0 57ms G 1 40ms G 16 11ms G S1 5S2 S1 S2 S1 5S2 S1 52 cycle time The figures in parentheses are when message communications are not used G Number of Word Output Slave Units connected x add
18. 01010 128 points 01011 144 points 01100 160 points 01101 176 points 01110 192 points 01111 208 points 10000 224 points 10001 240 points 10010 256 points others prohibited Out setting enabling flag 0 Disabling OUT number setting 1 Enabling OUT number setting Reserved area Don t care Slave Unit enabling flag Enable the relevant flag when a Slave Unit is registered 0 All setting is invalid No Slave Unit is registered 1 All setting is valid The Slave is registered A 3 3 CPNT_StopCycle Stop Communications Cycles Purpose Call Format Stop the communications cycles BOOL CPNT_StopCycle HANDLE Handle 83 Communications Control API Section A 3 Argument Type Parameter Direction Description HANDLE Handle Device handle obtained with the function CPNT_Open Returned value It returns TRUE when the function succeeds It returns FALSE when an error occurs The error details can be obtained with the function GetLastE rror Remarks It stops the communications cycles The function cannot be executed while the communications cycle stops There are two ways to resume the communications cycle after it stops once One is to reset the Board with the function CPNT_Reset and then execute the function CPNT_StartCycle The other is to close it with the function CPNT_Close and open it again with the function CPNT_Open A 3 4 CPNT_ChangeToRunState Transiti
19. 60 59 58 57 56 55 54 53 52 51 50 49 48 12 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 13 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 14 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96 15 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 Flags for Bit OUT Slave Units These values are the corresponding part of each node address 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 17 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 18 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 19 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 20 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 21 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 22 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96 23 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 119 Shared M emory Area Specifications Section B 3 Repeater Configuration Error 120 Detailed format Name
20. BIT OUT 80 BIT OUT 95 BIT OUT 94 BIT OUT 93 BIT OUT 92 BIT OUT 91 BIT OUT 90 BIT OUT 89 BIT OUT 88 BIT OUT 103 BIT OUT 102 BIT OUT 101 BIT OUT 100 BIT OUT 99 BIT OUT 98 BIT OUT 97 BIT OUT 96 BIT OUT 111 BIT OUT 110 BIT OUT 109 BIT OUT 108 BIT OUT 107 BIT OUT 106 BIT OUT 105 BIT OUT 104 BIT OUT 119 BIT OUT 118 BIT OUT 117 BIT OUT 116 BIT OUT 115 BIT OUT 114 BIT OUT 113 BIT OUT 112 BIT OUT 127 BIT OUT 126 BIT OUT 125 BIT OUT 124 BIT OUT 123 BIT OUT 122 BIT OUT 121 BIT OUT 120 Note A single allocation area shall never be occupied by plural nodes However as long as the same words are not allocated to more than one Unit the Bit Input Area and Bit Output Area with numerically the same node address can be allocated to Slave Units with different node addresses For example BIT OUT1 area can be allocated to the 2 outputs for a Bit Output Slave Unit set for node address 1 and BIT IN1 can be allocated to the 2 inputs for a Bit Input Slave Unit set for node address 1 33 Access to I O Data Section 3 2 Precautions for Correct Use When a Slave Unit occupies plural allocation areas other Slave Units which have the occupied node addresses cannot participate Example When a Slave Unit with node address 0 exists in a network and it occupies 2 bits in the Bit IN area and 4 bits in
21. Housing 186 Preparing and M ounting F lat Connectors on the Cables Section E 4 Note Once it is attached the housing cannot be removed from the cover If you attempt to remove it forcibly you may damage the connector 5 Pressure Welding the Connector Use a DWT AO1 Special Tool Pliers to pressure weld and connect the cable 5 1 Align the center see arrow of the connector cover with the center of the pressure welding block on the DWT A01 Pliers Special Tool Pliers Connector cover I earn T 5 2 Squeeze the Pliers firmly until the lock on Connector clicks into place Precautions for Correct Use eDo not pressure weld the connector cover at the edge eDo not use the back of pressure welding block to pressure weld the connector cover eSet the Connector in the correct orientation 5 3 Confirm that itis properly pressure welded as shown below It must be locked on both right and left No space here 187 Preparing and Mounting F lat Connectors on the Cables Section E 4 Preparing and Mounting the DCN4 BR4 Flat Connector Plugs 188 Names of Flat Connector Plug components Cable labels Black Flat cable black blue green white and red Lock lever 1 Cutting the Cable At the tip of the cable cut the cable perpendicular to the cable length To prevent short circuiting use a sharp cutting tool such as a nipper After cutting confirm that there is no remaining wire comin
22. No warning WARNING 1 ON A warning The bit will be 1 or on if the error counter exceeds the threshold Registration table 0 OFF Registration table function is disabled function state 1 ON Registration table function is enabled Reserved area 0 Representative OR condition of the warning status flags of all warning status flag Slave Units Representative OR condition of the alarming status flags of all alarm status flag Slave Units Reserved area 0 B 3 4 Clock in Details Clock information This is the area in which to set the clock information from the PC to the Board Data format Offset address 0x00B4 Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 Minute 00 to 59 Second 00 to 59 Day 01 to 31 Hour 00 to 23 Year 00 to 99 Month 01 to 12 Detailed format Access Description Read Write Setthe second between 00 to 59 Read Write Set the minute between 00 to 59 Read Write Set the hour between 00 to 23 Read Write Setthe day between 01 to 31 Read Write Set the month between 01 to 12 Read Write Set the lower two digits of the year between 00 to 99 113 Shared M emory Area Specifications Section B 3 B 3 5 1 O Data in Details Word IN Data Bit IN Data 114 This stores the IN data from a Word IN Slave Unit Data format Offset address 0x0100
23. Product Code of Bit OUT Slave Unit 127 Product Code of Repeater Unit 0 to Product Code of Repeater Unit 63 Major Revision of Word IN MIX Slave Major Revision of Word IN MIX Slave Unit 1 Unit 0 to to Major Revision of Word IN MIX Slave Major Revision of Word IN MIX Slave Unit 63 Unit 62 Major Revision of Word OUT Slave Major Revision of Word OUT Slave Unit 1 Unit 0 to to Major Revision of Word OUT Slave Major Revision of Word OUT Slave Unit 63 Unit 62 Major Revision of Bit IN MIX Slave Major Revision of Bit IN MIX Slave Unit 1 Unit 0 Shared M emory Area Specifications Section B 3 Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 to to Major Revision of Bit IN MIX Slave Major Revision of Bit IN MIX Slave Unit 63 Unit 62 Major Revision of BitOUT Slave Unit Major Revision of BitOUT Slave Unit 0 to to Major Revision of BitOUT Slave Unit Major Revision of BitOUT Slave Unit 63 62 Major Revision of Repeater Unit 1 Major Revision of Repeater Unit 0 to to Major Revision of Repeater Unit 63 Major Revision of Repeater Unit 62 Serial Number of Word IN MIX Slave Unit 0 Bit0 15 Serial Number of Word IN MIX Slave Unit 0 Bitl5 31 to Serial Number of Word IN MIX Slave Unit 63 Bit0 15 Serial Number of Word IN MIX Slave Unit 63 Bitl6 31 Serial Number of Word OUT Slave Unit 0 Bit0 15 Ser
24. Right click Network Controller and then select Update Driver Software from the menu File Action View Help Ce AMON oo a eS ce l ves E Display adapters ef DVD CD ROM drives Q5 Human Interface Devices ca IDE ATA ATAPI controllers BY Mice anc r E Monitors W Network adapters a p Other devices Dn Network Controll By PCI Seriol Port Update Driver Software Da PC Simple Comr Disable B SM Bus Controlle Uninstall T Ports COM amp LPT B Processors Scan for hardware changes IP Secunty Devices Sound video and ga_ gE System devices Universe Serie Bus controllers Properties Launches the Update Driver Software Wizard for the selected device 17 Installing the Drivers Section 2 2 3 How do you want to search for driver software will be displayed Click Browse my computer for driver software How do you want to search for driver software Search automatically for updated driver software Windows will search your computer and the Internet for the latest driver software for your device unless you ve disabled this feature in your device installation settings gt Browse my computer for driver software i Locate and install driver software manually 4 Place the enclosed CD ROM into the CD ROM drive 5 Browse for driver software on your computer will be displayed Click the Browse Button specify the CD ROM drive see following figure and cli
25. Separating Cables of a CompoNet System from Others for Another System 160 Round cable round cable Il Flat Cable and Flat Cable II are all treated as different types of cables When plural adjacent CompoNet systems use Flat Cables or Il electrical interference may disturb stable system operation To prevent this do not bundle Flat Cables for different CompoNet systems Instead separate the Cable for one network by a distance of at least 5 mm from the cable other for another network CompoNet Network Specifications Component Cable Specifications Section E 1 Round Cable Round Cable Il Flat Cable Flat Cable Il Type Signal Signal Power Signal Power Signal Power Conductors 9 75 mm x2 0 75mm2x 0 75mm2 x 0 5 mm2 x2 0 75 mm x2 10 5 mm x2 10 75 mm x2 2 2 twenty 0 18 thirty 0 18 twenty 0 18 thirty 0 18 mm strands mm strands mm strands mm strands twisted at twisted at twisted at twisted at leastonce to leastonce to leastonce to least once to 25 mm 30 mm 25 mm 30 mm Maximum 25 1 Q km 25 1 Q km 37 5 Q km 25 1 Q km 37 5 Q km 25 1 Q km DCR at 20 C Characteristic 97 Q 15 120 Q 120 Q 10 120 Q 10 E impedance 10 20 at 1 MHz 15 20 C Maximum 60 db km 60 db km 55 db km 59 db km 2 attenuation at4 MHz 20 C Maximum 6 5 ns m 6 5 ns m 5 9 ns m 6 3 ns m p
26. Windows 2000 14 Note 1 2 3 If you are using Windows 2000 Windows XP Windows Vista or Windows 7 use the Add New Hardware Wizard provided by the OS to install the CompoNet Master Board driver Procedures are provided here for Windows 2000 and Windows 7 When you use Windows XP or WindowsVista displays and procedures differ only slightly but you can take the similar steps To perform the following installation steps you must log on as the Administrator 1 Startup the PC after you mounta CompoNet Master Board on the PC The PC will recognizes the Board as a new hardware The Found New Hardware Wizard will starts up Click the Next button Found New Hardware S Network Controller Installing Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install a device driver for a hardware device To continue click Next Next gt Cancel Installing the Drivers Section 2 2 2 On the wizard page of Install Hardware Device Drivers select the button for Search for suitable driver for my device recommended Click the Next button Found New Hardware Wizard Install Hardware Device Drivers So A device driver is a software program that enables a hardware device to work with wy an operating system This wizard will complete the installation for this device oD Network Controller 4 device driver is a software program that makes a hardware device work
27. 06 05 04 03 02 01 00 Node causing a communications stop StateS tatus Data rate Communication cycle time Maximum communications cycle time Cumulative CRC reception errors Cumulative code reception errors Communication State Communication stop mode Registration table mode Error Counter Shared M emory Area Specifications Detailed format Node causing a communications stop Section B 3 Description It stores the MAC address or the address on CompoNet protocol of the Slave Unit or the Repeater Unit that caused a communications stop due to communications error For Word IN MIX Slave Unit MAC address Node address For Word OUT Slave Unit MAC address 64 Node address For Bit IN MIX Slave Unit MAC address 128 Node address For Bit OUT Slave Unit MAC address 256 Node address For Repeater Unit MAC address 384 Node address StateS tatus It stores the same content as ones in StateS tatus of the Basic status group Data rate It stores the data rate 0 4 Mbps 1 3 Mbps 2 1 5 Mbps 3 93 75 kbps Communications cycle time Itstores the present value for the communication cycle time in units of 0 1 ms Maximum communications cycle time It stores the maximum value as the communications cycle time in units of 0 1 ms The maximum communications cycle time must be cleared first in order to measure the maximum network cycle time
28. 207 W Word IN Data 114 Word OUT Data 115 213 Index 214 Revision History A manual revision code appears as a suffix to the catalog number on the front cover of the manual Cat No W485 E1 02 Revision code The following table outlines the changes made to the manual during each revision Page numbers refer to the previous version Revision code Date Revised content J uly 2009 Original production September 2013 Information was added for Windows 7 support e Changes were made to add models and for consistency with information in other manuals 215 Revision History 216 Authorized Distributor
29. A 3 2 CPNT_StartCycleEx Start Communications Cycles in the Detailed Setting Purpose Start the communications cycles in the detailed setting Call Format BOOL CPNT_StartCycleE x HANDLE Handle CPNT_SOFTWARE_TABLE S oftwareTable WORD DataRate CPNT_EX_TABLE xTable WORD EnableList Argument Parameter Direction Description HANDLE Handle Device handle obtained with the function CPNT_Open CPNT_SOFT SoftwareTable Specify the number of occupied WARE_TABLE nodes WORD DataR ate Specify the data rate 0 4 Mbps 1 3 Mbps 2 1 5 Mbps 3 93 75 kbps CPNT_EX_TA ExTable Specify the detailed setting table BLE WORD EnableList Specify the detailed setting to be used Returned value It returns TRUE when the function succeeds It returns FALSE when an error occurs The error details can be obtained with the function GetLasteE rror Remarks This function is used to start the communications in the detailed setting The function cannot be executed during the communications cycles Enable List Description Communications 0 OFF Disabled stop due to 1 ON Enabled communications error function flag I O communications 0 OFF Disabled manual startup 1 ON Enabled function flag IN data zero clear 0 OFF Disabled due to 1 ON Enabled communications error function flag Reserved area Always set to 0 OFF Registration table 0 OFF Disabled function flag 1 ON Enabled When itis enabled se
30. Data format Offset address 0x00B2 Offset Section B 3 Bit Word 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 StateS tatus Detailed format Access Description 00 Communications Read 0 OFF Normal error occurred on 1 ON An error occurred a Slave Unit The bit will be 1 or on even if one of the participating Slave Units has a communications error 01 Registration Table Read 0 OFF Normal comparison error 1 ON An error occurred occurred The flag can be on only when the Registration table function is enabled The flag will be on if any one of the Slave Units i e a node address and model combination of a Slave Unit that participated in the network while the power is on does not conform to the Registration table i e a table that registered the node addresses and the models of the Slave Units or if a non registered Slave Unit is found to have participated 02 Communications Read 0 OFF Normal stop due to 1 ON An error occurred communications This flag can be on only when the error occurred Communications stop due to communications error function is enabled The bit will be 1 or on even if one of the participating Slave Units has a communications error 03 Slave duplication Read 0 OFF Normal error occurred 1 ON An error occurred The bit will be 1 or on if the Slave duplication error occurs or
31. Function Description Interrupt Itis used for these processes PCI interrupt Interrupt by the PC to the Board Notify an Event transmission Acknowledge ACK the Event transmission from the Board e Notify a command transmission e Request to get an access right to I O area e Notify a release of the access right to I O area e Refresh the PC WDT Interrupt by the Board to the PC e Notify an Event transmission Acknowledge ACK the Event transmission from the PC e Notify the command acknowledgment Request to reset the Board e Notify the completion of Board initialization e Notify the completion of getting an access right to I O area e Notify the WDT time out Command Itis used for these processes to the Board e Start the communications cycle e Start the communications cycle in the detailed setting e Start or stop the I O communications Stop the communications cycle Request to read the detailed status group e Clear the detailed status group 5 1 2 Control of the Interrupt from PC to Board Here is the procedure for the user application to interrupt the CompoNet Master Board Operation procedure Access to Shared Memory Set the interrupt cause In the Interrupt Trigger register 0x0002 seta flag of Generate an interrupt interrupt cause to have into 1 Confirm the completion of In the Interrupt Request Confirmation register 0x0003 interrupt process confirm that the in
32. Purpose Open the CompoNet Master Board and let it be ready to be used Code 0x0001 Argument None Set 0x0000 Response code Normal end 0x0000 At an error Hardware error 0x8101 to 0x8109 Error of argument data format 0xC 000 Bit location of an error Error location Software table Data rate Reserved area 0 OFF Errors in argument data format refer to the format errors in the relevant setting area 142 Command Specifications Remarks Command OPEN SYSTEMEX Purpose Code Argument Response code Remarks Section B 4 e To issue this command the setting areas of the software table and data rate must be set Open the CompoNet Master Board and let it be ready to be used 0x0002 Function 1 WORD data specification Set1 ON to enable or 0 OFF to disable Description Communications stop due to communications error function I O communications manual startup function IN data zero clear due to communications error function Reserved area Set 0 OFF Registration Table function Logical error checking item function Network parameter function Slave Unit parameter function Reserved area Set 0 OFF Normal end 0x0000 At an error Hardware error 0x8101 to 0x8109 Error of argument data format 0xC000 Bit location of an error Error location Software table Data rate Reserved area Set 0 OFF Registration Table function Logical error checking item
33. Windows needs driver files for your new device To locate driver files and complete the installation click Next What do you want the wizard to do Display a list of the known drivers for this device so that can choose a specific driver lt Back Cancel 3 On the wizard page of Locate Driver Files check the box for CD ROM drive Click the Next button Be sure to insert the attached CD ROM before you select the drive Found New Hardware Wizard Locate Driver Files a Where do you want Windows to search for driver files Sy Search for driver files for the following hardware device o Network Controller The wizard searches for suitable drivers in its driver database on your computer and in any of the following optional search locations that you specify To start the search click Next If you are searching on a floppy disk or CD ROM drive insert the floppy disk or CD before clicking Next Optional search locations Vv fives Tl Specify a location T Microsoft Windows Update lt Back Cancel 15 Installing the Drivers Section 2 2 4 When the required driver file is found click the Next button Found New Hardware Wizard k Driver Files Search Results So The wizard has finished searching for driver files for your hardware device SY The wizard found a driver for the following device Gy Network Controller Windows found a driver for this device To install the driver
34. execute explicit messaging and confirm the response Initial processing End processing 46 Open Board CPNT_Open y Start Communications cycles CPNT_StartCycle y Loop Start y I O process and so on Y YES An Explicit message request NO ee y Send Explicit Message Loop End CPNT_SendExplicit y Stop Communications cycles CPNT_StopCycle Check Response Received CPNT_PeekExplicit v Close Board CPNT_Close Message process YES Read Explicit Response Message CPNT_ReceiveE xplicit Precautions for Correct Use Explicit messaging may require some time to get a response Therefore it must be operated in any timing where no I O process is required or in threads other than for I O process Insert Time out process if necessary Explicit Messaging Section 4 3 4 3 2 Explicit Messaging by Windows Messages This is the procedure by which to use the Windows messages execute explicit messaging and confirm the response Open Board CPNT_Open Y Start Communications cycles CPNT_StartCycle Initial processing Register Notice of E xplicit Response Message Received CPNT_RegReceiveE xplicitN otifyMessage Notify the E xplicit L response Send Explicit Message CPNT_SendExplicit Windows message process
35. wW TIt BDH Fn Round cable Communications power supply connector BS f es L anena S j j i i Overcurrent Shared communications When complying with UL standards install a A 1 protection and 1 0 power supply device to limit the current between the currentlimit 4 A external power supply and the Unit to 4 A or 1 less for the communications power supply C Round Cable Il Flat Cable or Flat Cable II Sub trunk line Repeater y Unit N To 4 Open Type DK Cohnector yr E ee B52 kek tT TL i Branch D a a a D i Port 1 Upstream lines i i Port 2 Downstream ae ajg i i T ti T I Trunk line i i A i Round Cable Slave Unit Slave Unit Slave Unit Slave Units with network power supply J Overcurrent 7 er 1 protection Shared communications Repeater 1 current limit 4A and I O power supply Unit 1 H d i AX Pori Y Sub trunk line H A Round Cable II Flat Cable or Flat Cable II Open Type PS veseeceneeeseeteennennnenenneentneneeeseeag onnector eer PS a i ONS amns i i Resistor i Te NNN Round cable Port 1 Upstream Branch D T l gi Port 2 Downstream lines BE ajojo I Terminating Slave Unit Slave Units Resistor 1 0 power supply with network power supply Power ads i supply Multi power supply By Note Depending on the I O device to which the Slave Unit is connected an 1 0 power supply connected to a multi power supply S
36. 1 Overview of the CompoNet Network High S peed Communications of Multiple Nodes Greater Flexibility with Repeater Units Note CompoNet is a field network designed for communications between the input and output components on the shop floor and a personal computer or PC or a PLC CompoNet requires less wiring labor but provides high maintainability The PC and the CompoNet Slave Unit exchange input and or output data cyclically through a CompoNet Master Board By using explicit messages users can read data from the CompoNet Slave Unit or write data into it CompoNet Master Board Terminating Resistor M JRepeater Unit Terminating Resistor Repeater Terminating Resistor Slave Unit Slave Unit Slave Unit Here are the main features of CompoNet CompoNet can provide remote I O communications for multiple nodes as many as maximum 2 560 points in a high speed such as 1000 points per millisecond when the data rate is 4 Mbps This allows integration of conventional system configuration with basic I O Units into a CompoNet network The data rate of 4 Mbps does not support T branch connection Thus any Slave Unit with pre attached cables is not usable Repeater Units can expand a network installation in the following ways e Extending the Communications cable Increasing the number of connected nodes e Creating a branch connection from the trunk line and e Converting cable types
37. 22 1 5 Mbps 0 to 14 93 75 kbps 0 to 3 Shared M emory Area Specifications Section B 3 Network Power State This can be used to confirm whether network power is being supplied to the CompoNet Master Board Data format Offset address 0x05DA Offset Bit Word 75 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 StateStatusDetailed format NetPower Read 0 Network power is not supplied 1 Network power is supplied Note The CompoNet Master Board does not use the network power but only supplies the network power to the network No network power supply is required in a network installation where Flat Cable is used Participated Slave This stores the Identity object information of the participating Slave Units Unit Identity Table Data format Offset address 0x05DC Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 0 I O information of Word IN MIX Slave Unit 0 to to 63 I O information of Word IN MIX Slave Unit 63 64 I O information of Word OUT Slave Unit 0 to to 127 I O information of Word OUT Slave Unit 63 128 I O information of Bit IN MIX Slave Unit 0 to to 255 I O information of BitIN MIX Slave Unit 127 256 1 0 information of Bit OUT Slave Unit 0 to to 383 I O information of Bit OUT Slave Unit 127 384 I O information of Repeater Unit 0 to to 447 I O information of Repeater Uni
38. 58 57 56 55 54 53 78 77 76 74 73 71 70 69 94 93 92 90 89 87 86 85 110 109 108 106 105 103 102 101 126 125 124 122 121 119 118 117 Communications error flag for BIT OUT Slave Uni ese values are the corresponding part of each node address 14 12 11 10 9 8 7 6 5 4 30 28 27 26 25 24 23 22 21 20 46 44 43 42 41 40 39 38 37 36 62 60 59 58 57 56 55 54 53 52 78 76 75 74 73 72 71 70 69 68 94 92 91 90 89 88 87 86 85 84 110 108 107 106 105 104 103 102 101 100 126 124 123 122 121 120 119 118 117 116 Communications error flag for Repeater Units ese values are the corresponding part of each node address 12 9 8 7 6 5 30 28 25 24 23 22 21 44 41 40 39 38 37 60 57 56 55 54 53 Detailed format Name Access Description Communications ON A node that has participated in the network error flag has a communications error OFF The nodes that have participated in the network have no communications error 111 Shared M emory Area Specifications StateStatus 112
39. API function and enable the PC WDT on the Board Open Board CPNT_Open y Start Communications cycles CPNT_StartCycle Initial processing DN Enable PC WDT CPNT_EnablePCWDTTimer Loop Start Refresh PC WDT value CPNT_RefreshP CWDTTimer I O process and so on Loop End Disable PC WDT CPNT_EnableP CWDTTimer Stop Communications cycles CPNT_StopCycle Y Close Board CPNT_Close Final processing MA Board Hardware Error Notification Section 4 8 4 8 Board Hardware Error Notification This is the function by which to notify the user application of the error when the CompoNet Master Board has stopped due to a hardware error Here is the procedure by which to use the function Z Initial processing A Final processing A Open Board CPNT_Open y Start Communications cycles CPNT_StartCycle Register Board Hardware Error Message CPNT_RegBDWDTNotifyMessage Loop Start Y I O process and so on y Loop End Unregister Board Hardware Error Message CPNT_UnRegBDWDTNotifyMessage Stop Communications cycles CPNT_StopCycle Y Close Board CPNT_Close Notification of Board Notify a Board Hardware Error a 5 E W g O a Solving the Board I Hardware Error ses
40. Access _____Description dY Registration error ON A Registration error Non registered Slave Non registered participating occurs Slave participating OFF Normal flag This is the Repeater configuration error flag for each node Data format Offset address 0x0398 Flags for Word IN MIX Slave Units These values are the corresponding part of each node addre 14 9 8 76 30 25 24 23 22 21 46 41 40 39 38 37 62 57 56 55 54 53 lags for Word OUT Slave Units ese values are the corresponding part of each no 14 9 8 7 6 5 30 25 24 23 22 21 46 41 40 39 38 37 62 57 56 55 54 53 lags for BitIN MIX Slave Units ese values are the corresponding part of each no 14 12 11 10 91 18 7 6 5 30 28 27 25 24 23 22 21 46 44 43 41 40 39 38 37 62 60 59 57 56 55 54 53 78 76 75 73 72 71 70 69 94 92 91 89 88 87 86 85 110 108 107 105 104 102 101 126 124 123 121 120 118 117 Flags for Bit OUT S Units ese values are the corresponding of each node address 14 13 12 11 10 9 8 716 5 41 3 2 30 29 28 27 25 24 23 22 21 20 19 18 46 44 43 41 40 39 38 37 62 60 59 57 56 55 54 53 78 76 75 73 72 71 70 69 94 92 91 89 88 87 86 85 110 108 107 105 104 103 102 101 126 124 123 121 120 119 118 117 Flags for Repeater Units ese values are the corresponding p
41. Bit OUT area Bit IN Slave Unit whose node address is 0 and Bit OUT Slave Units whose node address is either 0 or 1 cannot participate Image of the above Precautions for Correct Use BIT IN Data Allocation Area Data allocation e 2 Point Bit IN Slave Unit BIT IN area peo eee ee e 4 Point Bit IN Slave Unit BIT IN area pe ere aia ce pee e 2 Point Bit OUT Slave Unit BIT OUT area a ae fie Neat ae 34 Status Section 3 3 e 4 Point Bit OUT Slave Unit BIT OUT area pot hg ee Meee ge ee a e 2 Input and 2 Output Bit MIX Slave Unit BIT OUT area eae ees E BIT IN area eRe sees Pee ra 3 2 2 Access to I O Data Synchronous access Asynchronous access 3 3 Status There are two methods for access to I O data synchronous and asynchronous Synchronous access uses access rights and ensures node by node synchronicity It requires a waiting time of maximum one communications cycle in order to obtain an access right See Section 4 1 2 for the access procedure Asynchronous access does not use access rights Thus it enables high speed access to I O data This type of access however ensures the synchronicity of every 16 bits of I O data See Section 4 1 1 for the access procedures Status comprises two general categories One is the Basic Status Group which is constantly updated in the shared memory while the other is the Detailed Status Group The statuses in the latter group are
42. CLAIM IS BASED IN CON TRACT WARRANTY NEGLIGENCE OR STRICT LIABILITY Further in no event shall liability of Omron Companies exceed the individual price of the Product on which liability is asserted xiii Application Considerations i Suitability of Use Omron Companies shall not be responsible for conformity with any standards codes or regulations which apply to the combination of the Product in the Buyer s application or use of the Product At Buyer s request Omron will provide applicable third party certification documents identifying ratings and limitations of use which apply to the Product This information by itself is not sufficient for a com plete determination of the suitability of the Product in combination with the end product machine system or other application or use Buyer shall be solely responsible for determining appropriate ness of the particular Product with respect to Buyer s application product or system Buyer shall take application responsibility in all cases NEVER USE THE PRODUCT FOR AN APPLICATION INVOLVING SERIOUS RISK TO LIFE OR PROPERTY WITHOUT ENSURING THAT THE SYSTEM AS A WHOLE HAS BEEN DESIGNED TO ADDRESS THE RISKS AND THAT THE OMRON PRODUCT S IS PROPERLY RATED AND INSTALLED FOR THE INTENDED USE WITHIN THE OVERALL EQUIPMENT OR SYSTEM i Programmable Products Omron Companies shall not be responsible for the user s programming of a programmable Product or any consequence thereof Discla
43. Cables E 4 1 Preparing Connectors for Round Cable T E 4 2 Preparing Connectors for Flat Cablel 0 00 E 4 3 Preparing Connectors for Flat Cables T 0 Wiring for Power Supply E 5 1 E 5 2 E 5 3 E 5 4 E 5 5 E 5 6 E 5 7 Communications Power Supply Specifications Wiring the Communications Power Supply Current Consumed by Slave Units and Repeater Units Communications Power Supply Connection Example Precautions in Supplying Power to Slave Units Precautions when Providing the I O Power Supply Other Precautions 165 165 166 167 167 168 170 171 172 173 175 176 179 180 182 185 190 195 197 198 199 199 205 208 209 155 CompoNet Network Specifications Section E 1 E 1 CompoNet Network Specifications E 1 1 Communications Specifications Item Specifications Communications protocol CompoNet Network protocol Types of communications Remote I O communications i e program less constant data sharing with Slave Units and message communications i e occasional as required explicit message communications with Slave Units and occasional as required Explicit message communications with PLC Data rate 4 Mbps 1 3 Mbps 1 5 Mbps or 93 75 kbps Modulation Base band Coding Manchester code Error con
44. CompoNet specifications Ask the cable manufacturer for information on which products are applicable to CompoNet Precautions for Correct Use Selecting applicable cable types Using Different Cable Types eAs for the products conforming the CompoNet specifications and their manufacturers check the ODVA website at the following address http www odva org eThe characteristics of each conductor in Flat Cable and Flat Cable II have been adjusted to the respective application as listed in the table Check the line insulator colors and use them only for the specified application only See the above description regarding cable types and select those that are appropriate for the purpose All cables downstream from the Master Board must be of the same type This means the same type of cable must be used for the trunk line and branch lines for sub trunk lines and branch lines and for branch lines and their sub branch lines However when a Repeater Unit is used the cables can be different upstream and downstream from the Repeater Unit i e for the trunk line and sub trunk lines and for a sub trunk line and another sub trunk line Master Board Cable Trunk line All cables in this range must be same in type Cables upstream the Repeater Unit can be different from those in downstream Cable Sub trunk line Slave Unit Slave Unit All cables in this range must be same in type Precautions for Correct Use
45. Considerations Total cost and other elements as in below must also be included in the consideration of power supply method e Capacity and the number of pour supply units e Cable thickness or allowable current and length or voltage drop e System safety and e Wiring manhours 209 Wiring for Power Supply Section E 5 210 Index A Alarm Information 129 All Registered Slave Participation Standby M ode 39 All Registered Slave Unit Participating Flag 39 Allowable Current 206 API function 3 Asynchronous access 3 35 Basic status group 35 BitIN Data 114 Bit OUT Data 116 Board ID 12 Board ID Switch 4 5 C cable label colors 183 186 cable stopper 183 185 190 Clock information 113 CMD area 132 Command 56 142 Command OPEN_SY STEM 142 Command OPEN_SYSTEMEX 143 Command REQUEST_RESETSTATUS 146 Command REQUEST STATUS 145 Command SET_PC_WDT 146 Command START_IOCYCLE 144 Command STOP_CYCLE 145 Command STOP_IOCY CLE 144 Communication Cycle Optimization Function 39 Communications connector 4 5 Communications Error Flag 111 Communications error flag 36 Communications power supply 195 Communications power supply connector 4 5 Communications stop due to communications error occur rence flag 39 Connecting the M aster Board 172 CPNT_ChangeT oldleState 84 CPNT_ChangeT oRunState 84 CPNT_Close 76 CPNT_EnablePCWDTTimer 97 CPNT_GetAccessTolO 90 CPNT_GetBitInData 9
46. Device handle obtained with the function CPNT_Open Timer Monitoring time 0x0 Disabled the PC WDT 0x1 to OxFFFF 1 to 65535 Enabled the PC WDT Monitoring time The value written on the left x 10 ms Returned value It returns TRUE when the function succeeds It returns FALSE when an error occurs The error details can be obtained with the function GetLastE rror Remarks See Section 4 7 for the PC WDT function A 7 2 CPNT_RefreshPCWDTTimer Refresh PC WDT Purpose Refresh the PC Watchdog Timer value Call Format BOOL CPNT_RefreshPCWDTTimer HANDLE Handle Argument Type Parameter Direction Description HANDLE Handle Device handle obtained with the function CPNT_Open Returned value It returns TRUE when the function succeeds It returns FALSE when an error occurs The error details can be obtained with the function GetLastE rror Remarks e When the PC WDT function is in use execute this function to refresh the timer value within a value smaller than the set timer value If the timer is out without refreshing the communications cycle stops e See Section 4 7 for the PC WDT function 97 Board Request Notification API Section A 8 A 8 Board Request Notification API A 8 1 CPNT_RegBDWDTNotifyMessage Register Board Hardware Error Message Purpose Call Format Argument Returned value Remarks Register the Windows message to notify a Board hardware error BOOL CPNT_RegBDWDTNo
47. I O size information of Bit OUT Slave Unit 127 Vendor Code of Word IN MIX Slave Unit 0 to Vendor Code of Word IN MIX Slave Unit 63 Vendor Code of Word OUT Slave Unit 0 to Vendor Code of Word OUT Slave Unit 63 Vendor Code of Bit IN MIX Slave Unit 0 to Vendor Code of Bit IN MIX Slave Unit 127 Vendor Code of Bit OUT Slave Unit 0 to Vendor Code of Bit OUT Slave Unit 127 Device Type of Word IN MIX Slave Unit 0 to Device Type of Word IN MIX Slave Unit 63 Device Type of Word OUT Slave Unit 0 to Device Type of Word OUT Slave Unit 63 Device Type of Bit IN MIX Slave Unit 0 to Device Type of Bit IN MIX Slave Unit 127 Device Type of Bit OUT Slave Unit 0 to Device Type of BitOUT Slave Unit 127 Product Code of Word IN MIX Slave Unit 0 to Product Code of Word IN MIX Slave Unit 63 Product Code of Word OUT Slave Unit 0 to 137 Shared M emory Area Specifications 138 Bit Section B 3 Product Code of Word 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 OUT Slave Unit 63 Product Code of Bit IN MIX Slave Unit 0 to Product Code of Bit IN MIX Slave Unit 127 Product Code of Bit OUT Slave Unit 0 to Product Code of Bit O UT Slave Unit 127 Major Revision of Word IN MIX Slave Unit 1 Major Revision of Word
48. IN MIX Slave Unit 0 to to Major Revision of Word IN MIX Slave Unit 63 Major Revision of Word IN MIX Slave Unit 62 Major Revision of Word OUT Slave Unit 1 Major Revision of Word OUT Slave Unit 0 to to Major Revision of Word OUT Slave Unit 63 Major Revision of Word OUT Slave Unit 62 Major Revision of Bit IN MIX Slave Unit 1 Major Revision of Bit IN MIX Slave Unit 0 to to Major Revision of Bit IN MIX Slave Unit 127 Major Revision of Bit IN MIX Slave Unit 126 Major Revision of Bit OUT Slave Unit 1 Major Revision of BitOUT Slave Unit 0 to to Major Revision of Bit OUT Slave Unit Major Revision of BitOUT Slave Unit 126 127 Section B 3 Shared M emory Area Specifications Detailed format Function setting Access Read Write Description Sets the Registration table function Bit Flag 0 Registration table enabled flag Description Setitto 1 ON when the Registration tables are used 0 OFF Disabled 1 ON Enabled All Registered Slave Participation Standby flag Reserved area Communications cycle optimization flag Set 0 OFF 0 OFF Disabled 1 ON Enabled 9 to 15 Reserved area Set0 OFF Registered Slave participation time Read Write This is the time in which to monitor the participation of registered Slave Units The value can be se
49. Interrupt Request Indication 106 Interrupt Trigger 104 IRQ 12 L Logical Error Checking Items 136 M Master Status 122 maximum lengths of each cable 161 maximum number of connectable Slave Units 161 MSLED 4 6 M ultidrop connections 174 M ultidrop Connector 170 M ulti power supply 195 Network Parameter 140 Network Power State 125 Network power supply 195 NSLED 6 O Open Type Connector 21 OPEN_SYSTEM 28 OPEN_SYSTEMEX 37 Optimizing Communications Cycle 3 P Participated Slave U nit Identity Table 125 Participation Flag 110 Participation flag 36 PC WDT 52 PCI bus 3 PCI bus slot 12 R Registered Slave U nit Participation Time 38 Registration Error Flag 118 119 Registration Table 136 Registration Table comparison error occurrence flag 38 Registration Table Example 131 Registration Table Function 3 Repeater Configuration Error 120 Repeater Configuration Information 128 Repeater duplication error 70 Repeater Unit 2 Round cablel 157 158 Round cable I1 157 158 Running program ID 108 S Selecting applicable cable types 160 Shared memory Accesses 3 Slave duplication error 70 Slave Parameter 141 Software Table 135 Special Tool 184 187 189 192 194 START_IOCYCLE 40 State Status 36 StateStatus 112 Synchronous access 3 35 Index 7 Terminating Resistor 167 168 170 176 U Using Different Cable Types 160 V Voltage Drop
50. Registration table is now on the network BitIN Slave Unit Bit MIX Slave Unit Bit OUT Slave Unit 0x0374 Communications Error Cause A Slave Unit or Repeater Unit has separated Word IN Slave Unit Word MIX Slave Unit Word OUT Slave Unit BitIN Slave Unit Bit MIX Slave Unit Bit OUT Slave Unit Repeater Unit Node address Hex 71 Error Log 0x0375 Description Communication Stop due to a Communications Error Cause A communications error occurs when the Communications Stop due to Communications Error Function is enabled Section 6 2 Detailed Information 1st byte Word IN Slave Unit Word MIX Slave Unit Word OUT Slave Unit BItIN Slave Unit Bit MIX Slave Unit BitOUT Slave Unit 2nd byte Node address Hex EEPROM 0x0376 Address Duplication Error Cause There are plural Slave Units on the network whose addresses duplicate Or the communications is unstable and Slave Units are in the state of communications fault Word IN Slave Unit Word MIX Slave Unit Word OUT Slave Unit BitIN Slave Unit Bit MIX Slave Unit Bit OUT SlaveUnit Repeater Unit Node address Hex 0x0378 Illegal Repeater or Configuration error Cause Repeater Unit requesting to participate in the network exceed the permitted number of Repeater Unit segments which is 2 Word IN Slave Unit Word MIX Slave Unit Word OUT Slave Unit BitIN Slav
51. Send Explicit Message Purpose Send Explicit Messages Call Format BOOL CPNT_SendE xplicit HANDLE Handle CPNT_EXPLICIT_REQ ExplicitR eq Argument twee Parameter Direction Deveriplon HANDLE Handle Device handle obtained with the function CPNT_Open CPNT_EXPLI ExplicitReq Set the message to send CIT_REQ Returned value It returns TRUE when the function succeeds It returns FALSE when an error occurs The error details can be obtained with the function GetLastE rror 93 Explicit Messaging API Section A 6 Remarks To execute this function the communications cycles must be running CPNT_EXPLICIT_REQ structure Parameter Description This is used to identify to which explicit message a response is addressed The same value is added to the response of a sent explicit message Seta certain value for the user application Settable range 0 to 255 Rsv Reserved area Set 0 DstMacld MAC address or the address over CompoNet protocol of the destination Slave Unit For Word IN Slave Unit MAC address Node address For Word OUT Slave Unit MAC address 64 Node address For BitIN Slave Unit MAC address 128 Node address For Bit OUT Slave Unit MAC address 256 Node address For Repeater MAC address 384 Node address For Master MAC address 448 ServiceC ode Set the service code of the explicit message Classld Set the Class ID of the explicit message Instanceld Set the Instance ID of t
52. To access the shared memory area the command OPEN_SYSTEMEX is used 37 Detailed Settings at Communications Cycle Startup Section 3 5 Behavior 38 Master Board Example Registration table Node address Model 00 CRT1 ID16 01 CRT1 ID16 1 02 CRT1 0D16 lt The model differs Due to this difference the Slave Unit cannot I I I I I I I I I participate Slave Unit IN Slave Unit IN Slave Unit OUT Slave Unit Y Node address 00 Node address 01 Node address 02 SSL CRT1 ID16 CRT1 ID16 1 CRT1 0D16 1 a eee og If the comparison finds out any non conforming Slave Unit the Registration Table comparison error occurrence flag i e the Bit 01 of the StateStatus in the Basic status group comes on When the All Registered Slave Participation Standby Mode as described later is then disabled the remote I O communications starts If itis enabled the remote I O communications will not start Here is the behavior in each case e When all registered Slave Units participate within the Registered Slave Unit Participation Time 1 2 after a power on 3 the All Registered Slave Units participating flag i e the bit 06 of the StateStatus in the Basic status group comes on If no non registered Slave Unit participates then the Registration Table comparison error occurrence flag will be off e If any non registered Slave Unit participates then it is a registra
53. Trunk line Srann or line Slave or Repeater Unit 3 l Note O pen Type Slave or Repeater Unit Connectors cannot be used for Bit Slave Units Master Board Slave Unit Cable branches connections jp ia Unit T branch Multidrop connecuons connections connections Flat Connector Flat Connector Plug Flat Connector Multidrop Plug Word Slave Unit Socket Flat Connector FlatConnector or Repeater Connector Multidrop Master Board Plug Unit Plug Trunk sub trunk Gomector ni or branch line Branch or ac O Ww sub branch line branch line Trunk line Flat Connector Plug Slave or Repeater Unit Bit Slave Unit Flat Connector Plug Flat Cable attachment Bit Slave Unit Note Asa standard delivery style Flat Cable is pre attached to a Bit Slave Unit Flat Connector Plug Flat Connector Plug or Cable attachment Slave or Repeater Unit Slave or Repeater Unit Flat Connector Plug Flat Connector Plug Note Flat Cable II does not support multidrop connection or Mutlidrop Connectors 171 Wiring for a CompoN et Network Section E 3 Cable extension Flat Connector Socket Flat Connector Plug Flat Connector Socket Flat Connector Socket Trunk line or sub trunk line amp Trunk line or sub trunk line Flat Connector Plug Flat Connector Plug E 3 5 Connecting Nodes Connecting the Master Board When Using Round Cable I or Il with Open Type Connectors
54. a DCN4 BR4 Flat Connector Plug T branch DCN4 BR4 Flat Connector DCN4 TM4 Terminating Resistor Plug or DCN4 BR4 Flat Connector Plug Word Slave Unit Bit Slave Unit 24 Connecting the Communications Power Supply Cables Section 2 4 Example of multidrop connection of Flat Cable DCN4 TM4 Terminating Resistor Word Slave Unit 2 4 Connecting the Communications Power Supply Cables When a round cable II Flat Cable or Flat Cable II is used the Slave Units can be supplied with the communications power through the CompoNet Master Board In this case the communications power supply must be connected to the CompoNet Master Board See Appendix E 5 Wiring for Power Supply especially E 5 2 Wiring the Communications Power Supply 25 Connecting the Communications Power Supply Cables Section 2 4 26 3 1 3 2 3 3 3 4 3 5 Settings at Communications Cycle Startup 3 1 1 Settings Required for Starting the Communications Cycle Accesso VO Data sssini eke BR en REA BRN SERS ee BRAID 3 2 1 Allocation of I O Data 0 0 0 cee ee eee 3 2 2 Access to I O Data 00 ee eee StAtUs 4 eoe n e bs takes ee ei eas Sie eal EE liad a Ea tad 6 tink Ca S 3 3 1 Basic Status Group 0 0 eee eee eee eee 3 3 2 Detailed Status Group
55. and in preparation for remote 1 0 communications Itis before the remote I O communications starts or during communication In any state other than the communication stop due to a communications error Red light Fatal communication related error The communications circuit has an error Red flash Non fatal communication related error One of the following applies One or more Slaves or Repeater Units has a communications error One or more Slaves or Repeater Units has a Registration Table error That means a Slave Unit to participate is not participating or a non registered Slave Unit is participating The communications stops due to a communications error Illegal configuration error an error of Repeater levels One or more Slaves or Repeater Units had node address duplications Power off or in preparation One of the following applies Power is off The system is resetting or initializing The indicators flash in 0 5 second interval i e they light for 0 5 second and become unlit for another 0 5 second Network Construction Procedure 1 5 Network Construction Procedure Section 1 5 The following is the basic flow of a network configuration 1 Decide the number of I O points Examine the number of inputs and outputs on the entire system WwW 2 Correspond the I O points to Slave Units Assign each of these inputs and outputs to a Slave Unit v
56. content can be obtained with GetLastE rror Board Request Notification API Section A 8 A 8 3 CPNT_RegRESETNotifyMessage Register Board Reset Request Message Purpose Call Format Argument Returned value Remarks Register the Windows message to request a Board reset BOOL CPNT_RegRESETNotifyMessage HANDLE Handle DWORD Threadid HWND hWnd UINT Msg Parameter Direction Description Handle Device handle obtained with the function CPNT_Open Threadlid ID of the thread to notify No setting NULL hWNd Window handle to notify No setting NULL Msg Notification message Event ID It returns TRUE when the message has been successfully registered It returns FALSE when both the thread ID and the window handle are null or when an error occurs Detailed error content can be obtained with GetLastE rror e A Board reset requestis generated by sending a reset service to the Identity object on the CompoNet Master Board e See Section 4 5 for Board rest requests e The value 0 is stored in both of WPARAM and LPARAM of the notified message e Set either the thread ID or the window handle If both are set an error will be returned and the message will not be registered A 8 4 CPNT_UnRegRESETNotifyMessage Unregister Board Reset Request Message Purpose Call Format Argument Returned value Remarks Unregister the Windows message to request a Board reset BOOL CPNT_UnRegRESE
57. e As forthe procedures to call the BIOS menu and to set the allocation see the operation manual of the PC you are using e You can confirm the IRQs that have been used by ISA bus in the following procedure 1 Start up the PC that has no CompoNet Master Board mounted 2 On the Start menu of the Windows select Start S etting C ontrol Panel from the pop up menu Double click the System Select the Hardware Tab Push the Device Manager button 3 Display the property of the ISA board whose IRQ is to be checked Select the Resource Tab and check the IRQ 2 1 2 Setting the Board ID A Board ID is the ID number given to a Board By this number the PC identifies a Board among the multiple CompoNet Master Boards mounted on it Ge x A small flat blade screwdriver is used to set IDs As long as no duplication occurs any decimal number among 0 and 9 can be set Precautions for Correct Use When you set the Board ID be sure not to duplicate an ID for multiple CompoNet Master Boards mounted on a single PC 12 Mounting a Board Note Section 2 1 In the factory setting the Board ID is set to 0 2 1 3 Mounting the Board on the PC After setting the ID mount the CompoNet Master Board on the PCI slot of the PC Precautions for Correct Use Note eBe sure to turn off the PC and all peripheral devices when you mount or remove a CompoNet Master Board eTake necessary measures to prevent static electricity before
58. e Be sure the Board on the PC is securely mounted All installation and wiring must observe the instructions in this manual e Use correct wiring tools and components for wiring e Confirm the orientation and polarity before connecting the terminal blocks or connectors e Do not supply electricity while a terminal block cover is open e Confirm voltage specifications before wiring the communications lines the power supplies or the I O circuits Incorrect specification may result in a malfunction e Install external breakers and take other safety measures against short circuiting in the external wiring Insufficient safety measures against short circuiting may result in burning e Use crimp terminals for wiring Do not connect bare stranded wires directly to terminals The connection of bare stranded wires may result in burning e Double check all wiring and switch settings before turning ON the power supply Incorrect wiring may result in burning e Be sure no waste metal enters the PC during the installation and wiring work Be certain the terminal blocks connectors expansion cables communications cables and other items with locking devices are properly locked in place Improper locking may result in a malfunction e Always use the power supply voltages specified in the operation manual A malfunction or burning may occur as the result of incorrect voltage e Take appropriate measures to ensure that the specified power wi
59. for the sub trunk lines e Communications power to the trunk line can be supplied only through the communications power supply connector on the Master Board Communications power to a sub trunk line can be supplied only through the downstream port of communications power supply connector on the Repeater Unit Communications power cannot be supplied at any other locations The communications power is supplied to the communications power supply connector on the Master Unit Communications power supply 3 m max Master Board Repeater Unit Trunk line or Round Cable Il Flat Cable sub trunk line or Flat Cable Il sieves dees lelsbdenubveceleeece asked Repeater Unit _ Communications power supply The communications power is supplied to the downstream communications port power supply connector on the Repeater Unit Sub trunk Round Cable Il Flat Cable line or Flat Cable II Master Board The communications power Repeater Unit can be supplied only to the Communications communications power supply D power supply connector on the Master Unit i Round Cable Il Flat Cable or Flat Cable II Trunk line or i ET Sl ub trunk line ste Repeater Unit CeT Slave Unit Sub trunk Round Cable Il Flat Cable line or Flat Cable Il nunn The communications power can be supplied only to the down S
60. function Network parameter function Slave Unit parameter function Reserved area Set 0 OFF Errors in argument data format refer to the format errors in the relevant setting area e To issue this command the following setting areas must be set Mandatory e Software table e Data rate Required when the relevant function is enabled or when the relevant function needs the setting e Logical error checking item e Registration Table 143 Command Specifications Command START_IOCYCLE Purpose Code Argument Response code Remarks Command STOP_IOCYCLE Purpose Code Argument Response code Remarks 144 Section B 4 e Network parameter e Slave Unit parameter Start the I O communications 0x1001 None Set 0x0000 Normal end 0x0000 At an error Status change not allowed 0x8101 e This command is used to start the I O communications when the O communications manual startup function is enabled or after the O communications is explicitly stopped e These are the possible causes of having a situation in which no status change is allowed e The I O communications has already started e The communications cycles have stopped Stop the I O communications 0x1002 None Set 0x0000 Normal end 0x0000 At an error Status change not allowed 0x8101 e These are the possible causes of having a situation in which no status change is allowed e Th
61. if a Slave Unit has an error due to unstable communications 04 Communications Read 0 OFF Normal error occurred on 1 ON An error occurred a Repeater Unit The bit will be 1 or on even one of the participating Slave Units has a communications error 05 Repeater Read 0 OFF Normal duplication error 1 ON An error occurred occurred The bit will be 1 or on if the Repeater duplication error occurs or if a Repeater Unit has an error due to unstable communications 06 All registered Read 0 OFF Notall of the registered Slave Units Slave Units have participated participating 1 ON All of the registered Slave Units have participated This bit will be on only when the Registration table function is enabled 07 II O Read 0 OFF I O communications stops communications started 1 ON I O communications is running Shared M emory Area Specifications Section B 3 Access Description Operation 0 OFF One of the following an error monitoring occurred the I O communications not 1D0 amp D6 amp D7 started or a non registered Slave Unit is participating 1 ON All of the following in normal communications and I O communications and all of the registered Slave Units have participated The content is not Bit 0 and Bit 6 and Bit 7 You can operate the user application when this flag is on in the condition whereby the Registration Table function is enabled Error counter 0 OFF
62. of 4 Mbps No T branchin Item Round cable or Il Flat Cable I or Il allowed 162 Length of a trunk line or a sub trunk line Maximum length when two Repeater Units are used 30 m 90 m 30 m 90 m Length of a branch line Total length of branch lines Branching restriction No T branch connecti allowed on on the trunk line is Only multidrop connections are possible from the trunk line and sub trunk lines Number of connectable Slave and Repeater Units altogether per trunk line or sub trunk line 32 32 Slave Units that are pre connected with cables do not support multidrop connection Therefore they cannot be used at this data rate CompoNet Network Specifications In Data Rate of 3 Mbps In Data Rate of 1 5 Mbps Section E 1 Item Round cable I or Il Flat Cable I or Il Length ofa trunk line or a sub 30 m 90 m 30 m 90 m trunk line Maximum length when two Repeater Units are used Length of a branch line 0 5m 0 5m Total length of branch lines 8m 8m Branching restriction 3 branches m 3 branches m Number of connectable Units and 1 1 Units per branch line Maximum length of a sub branch Not allowed Not allowed line Total length of sub branch lines Not allowed Not allowed Number of connectable Slave and 32 32 Repeater Units altogether per trunk line or sub trunk line This is the maximum number of Sla
63. of the Interrupt Trigger register 0x0002 to 1 Confirm the command set has been notified Confirm the CMD flag of the Interrupt Request Confirmation register 0x0003 changes to 0 Wait fora command acknowledgment Confirm the CMD_ACK flag of the Interrupt Cause register 0x0005 changes to 1 Check it by an interrupt or polling Read a command response Read a command response from the CompoNet Master board which is stored in the Command area BD PC 0x3210 Release a command acknowledgment interrupt Release the Interrupt cause by setting the CMD_ACK flag of the Interrupt Clear register 0x0006 Communications Cycle C ontrol Procedures 5 2 3 Control of I O Data Access Asynchronous access Section 5 2 Constant reads and writes to and from the I O Data Group 0x0100 are supported in the normal communications cycles Synchronous access Follow these steps in order to use synchronous access Operation procedure Notify an access right request Access to Shared Memory Set the REQ ACC flag in the Interrupt Trigger register 0x0002 to 1 Confirm the REQ_ACC completes the process for this Board Confirm by polling the REQ_ACC flag in the Interrupt Request Confirmation register 0x0003 changes to 0 Wait for getting an access right This is the case when the REQ ACC _ACK is confirmed by polling Wait for the REQ_ACC_ACK Interrupt Cause in the In
64. on a Repeater Unit Identify the erroneous Slave or Repeater Unit by the Communications error flag of the Basic status group Registration Table comparison error occurred Identify the erroneous Slave Unit by the Registration error Registered Slave not participating flag or the Registration error Non registered Slave participating flag in the Detailed status group Communications stop due to communications error occurred Identify the erroneous Slave Unit by the Node causing a communications stop of the Master status in the Detailed status group 6 2 Error Log The Error log keeps record of the errors and occurrence time when the CompoNet Master Board detects an error The records or error log can be read or cleared by the Detailed status group 6 2 1 Error Log Table Error Log Table Errors are saved in the Error Log Table in the CompoNet Master Board RAM One error is counted as one record in the table A maximum of 64 records can be saved When the table is full with 64 records the oldest error record is discarded to replace it with the next coming error The Error Log Table saves the following information e Error code Detailed code and Date when the error occurred this data uses the time information notified by the user application 70 Error Log Section 6 2 When an error is detected it is saved along with the time when the error occurred as an error in the CompoNet Master Board RA
65. on the Board A 3 Communications Control API A 3 1 CPNT_StartCycle Start Communications Cycles Purpose Start the communications cycles Call Format BOOL CPNT_StartC ycle HANDLE Handle CPNT_SOFTWARE_TABLE SoftwareTable WORD DataRate 77 Communications Control API Argument Returned value Remarks 78 HANDLE Parameter Handle Section A 3 Direction Description Device handle obtained with the function CPNT_Open CPNT_SOFT WARE TABLE S oftwareTable Specify the number of occupied nodes WORD DataR ate Specify the data rate 0 4 Mbps 1 3 Mbps 2 1 5 Mbps 3 93 75 kbps It returns TRUE when the function succeeds It returns FALSE when an error occurs The error details can be obtained with the function GetLastE rror This function is used to start the communications cycles The function cannot be executed while the communications cycles are running CPNT_SOFTWARE_TABLE structure Parameter Description WORD OutNode Specify the maximum number of occupied Word OUT Slave Units Settable range 0 to 64 WORD InNode Specified the maximum number of occupied Word IN Slave Units Settable range 0 to 64 WORD BitO utNode Specified the maximum number of occupied Bit OUT Slave Units Settable range 0 to 128 WORD BitInNode Specified the maximum number of occupied Bit IN Slave Units Settable range 0 to 128 Communications Control API Section A 3
66. points 01000 96 points 01001 112 points 01010 128 points 01011 144 points 01100 160 points 01101 176 points 01110 192 points 01111 208 points 10000 224 points 10001 240 points 10010 256 points others prohibited IN setting enabling 0 Disabling IN number setting flag 1 Enabling IN number setting Reserved area Set 0 OFF Number of OUT Set the number of OUT points for Slave Units channels Set the Bits 8 to 13 to 0 OFF when the number of OUT points is zero 00000 2 points 00001 4 points 00010 8 points 00011 16 points 00100 32 points 00101 48 points 00110 64 points 00111 80 points 01000 96 points 01001 112 points 01010 128 points 01011 144 points 01100 160 points 01101 176 points 01110 192 points 01111 208 points 10000 224 points 10001 240 points 10010 256 points others prohibited Out setting enabling 0 Disabling OUT number setting flag 1 Enabling OUT number setting Reserved area Don t care Slave enabling flag 0 No Slave or Repeater Unit exists 1 Slave or Repeater Unit does exist Repeater When the communications of a Slave Unit or a Repeater Unit to and from the Configuration Master Board is regarded upstream the Repeater configuration information Information helps understand the node address of the immediate upstream Repeater Unit from the Slave Unit or Repeater Unit and the number of levels from t
67. rOvercurrent 1 tprotection 1 verament TTS i curentimit 4A Round Cable i Communications protection idp B ee ound Cable power supply _ current limit 4 A U a Perr TETS ION Sub A Open Type Ni ee oy Connector p3 e PE TA N 4 D gt Rosi EEE Open Type Connector Multi power supply incl Open Type Connector d GIP Round Cable Terminating I O power supply TT Multi power supply Precautions for Correct Use Depending on the I O device to which the Slave Unit is connected an I O power supply connected to a multi power supply Slave Unit may be a source of noise Even when the communications power is supplied collectively to all Slave Units a separate I O power supply must be provided so that noise does not affect the network Using round cables Il The communications power to Slave Units is supplied through a round cable Flat Cables I or Flat Il Flat Cable or Flat Cable II Cables Il Therefore no separate wiring is required for a communications power supply to Slave Units The communications power supply can be shared by all Slave Units within the same trunk line or sub trunk line The I O power however must be supplied separately to the Slave Units which need I O power i e multi power supply Slave Units 200 Wiring for Power Supply Section E 5 Not using a Repeater Unit Communications power supply pceceescsssess connector Overcurrent Communications prote
68. read by the application whenever necessary The PC application issues a read request to the CompoNet Master Board and read the status 3 3 1 Basic Status Group To access to the Basic status group in the Windows operation systems the function CPNT_GetStatus is used In an OS other than Windows the status group can be read directly from the shared memory access 35 Status 36 Section 3 3 Status Description Participation flag When a Slave Unit participates in the network the bit corresponding to the node address will be on Once the target Slave Unitis participating the bit remains on It stays on even the Slave Unit separates due to a communications error Communications error flag The bit will be on if a communications error occurs to the once participated Slave Unit whose participation flag is on and its communications with the CompoNet Master Board is prevented The bit will be off when the error is resolved State Status Precautions for Correct Use It shows the entire network status and the CompoNet Master Board status See Appendix B 3 3 For a Word Mixed Slave Unit use the status for the node address of the Word Input Slave Unit For a Bit Mixed Slave Unit use the status for the node address of the Bit Input Slave Unit 3 3 2 Detailed Status Group To access to the detailed status group in the Windows operation systems the functions CPNT_GetStatusEx is used To read the detailed
69. set individually for Word IN Slave nodes Units Word OUT Slave Units Bit IN Slave Units and Bit OUT Slave Units 1 Every 16 points of a Word IN Slave Unit or a Word OUT Slave Unit occupies 1 node 2 Every 2 points of a Bit IN Slave Unit or a Bit OUT Slave Unit occupies 1 node 3 Node addresses are allocated to Slave Units in ascending order starting from 0 Unused addresses are also included in this allocation order They cannot be skipped 4 Only the Slave Units in this set range are to participate Not all of the occupied areas are necessarily allocated by a Slave Unit Example When a system consists of Slave Units as shown in the table below the number of nodes occupied by each type of Slave Units are 8 by Word IN Slave Units 3 by Word OUT Slave Unit 3 3 by BitIN Slave Unit 10 by Bit OUT Slave Units 3 Slave type atidta e of points Remarks Word IN Slave Unit Word IN Slave Unit Word IN Slave Unit Word IN Slave Unit Word OUT Slave Unit BitIN Slave Unit BitIN Slave Unit Bit OUT Slave Unit BitOUT Slave Unit p rR p3 ej eJl w WIa NTRID av Baers Pile N oO as pa N NIN IN O Settings at Communications Cycle Startup Section 3 1 Note e Every 16 points of a Word IN Slave Unit ora Word OUT Slave Unit occupies 1 node For example when a Word Slave Unit has 64 points and is allocated with the node address 10 it actually occupies the n
70. status group from accessing the shared memory area the command REQUEST_STATUS is used and a read request is issued See Appendix B 3 6 for the procedures Status Description Duplication error flag It shows a duplication error for each applicable node The error occurs not only due to duplication but also if the Slave Unit stops by unstable communications Registration error Registered Slave not participating flag It shows a registration error i e The registered Slave Unit has not participated for each applicable node Registration error Non registered Slave participating flag It shows a registration error i e A non registered Slave Unit is to participate for each applicable node Repeater configuration error It shows a Repeater configuration error for each applicable node Event Only EO Slave Unit It means the Slave Unit cannot participate but can only use explicit messages Master status It stores detailed status of the mastering functions Error counter It is the error counter for the CompoNet Master Board Network power state It shows the state of network power supply Participated Slave Unit identity table It stores the identity information of participating Slave Units Repeater configuration information It stores the Repeater configuration information Alarm information It stores the alarm information collected by each applic
71. supply shared 24 VDC Communications power supply connector on Master Unit or downstream port s communications power supply connector on Repeater Unit E 5 1 Communications Power Supply Specifications The communications power supply must meet the following specifications Commercially available power supply units can be used An OMRON S82 series Power Supply Unit is recommended however as to supply communications power to CompoNet system Item Specification Output voltage 24 VDC 10 Output ripple 600 mVp p Output current Use a power supply that has a capacity equivalent or exceeding the following total current consumption The current consumption of all of Word Slave Units and Repeater Units and The current consumption of all of Bit Slave Units and the external I O devices Insulation Between outputs and AC power and between outputs and enclosure grounding 197 Wiring for Power Supply Section E 5 Precautions for Correct Use With the Slave Units of network power supply type the external I O devices are also supplied power through the communications power supply connected to the Master Board or a Repeater Unit via Flat Cables Therefore the output current of communications power supply must include the consumption current and the actual load current of the external I O devices into calculation Below is a calculation example of the consumption current for a Bit Slave Unit s comm
72. the actual I O time out value is four times of the set value Settable range 0 to 50 ms in data rate of 4 M 3 M or 1 5 Mbps 0 to 163 ms in data rate of 93 75 kbps When 0 or a value beyond the settable range is set it operates at the maximum value of the settable range 141 Command Specifications Section B 4 B 4 Command Specifications B 4 1 Command List See Appendix B 3 7 for the command format Command name Description OPEN_SYSTEM 0x0001 This starts the system with the basic setting of data rate and number of occupied nodes Then it starts the communications cycles OPEN_SYSTEMEX 0x0002 It starts the system with the detailed setting and starts the communications cycles Communications START_IOCYCLE 0x1001 It starts the I O communications control Itis used to start the I O communications when the I O Communications Manual Startup function is enabled or after the I O communications is explicitedly stopped STOP_IOCYCLE 0x1002 It stops the I O communications STOP_CYCLE 0x1003 It stops the communications cycles To resume the communications the CompoNet Master Board must be reset REQUEST_STATUS 0x2001 It issues a request to read the Detailed status group REQUEST_RESET 0x2002 It issues a request to clear the STATUS Detailed status group Maintenance SET_PC_WDT 0x3001 Itsets the PC WDT B 4 2 Command in Detail Command OPEN SYSTEM
73. you start the procedures to mount a CompoNet Master Board Otherwise the electricity may break the Board or the PC eBe sure not to damage any memories or other components in the PC when you work on mounting or removing a CompoNet Master Board eDo not touch any surface or components of the CompoNet Master Board by hand The procedure to mount a Board for PCI bus differs by PCs Refer to the Operation Manual of the PC you use in order to follow the correct procedures Follow the mounting procedure given below 1 Disconnect all cables from the CompoNet Master Board This includes the communications cables and power supply cables 2 Turn off the PC to which a Board is mounted Disconnect the electrical cord 3 Remove the package of the PC as instructed in the Operation Manual and prepare it to mount or remove a CompoNet Master Board 4 Place the PCI bus connecter on the PC and the connector on the CompoNet Master Board in the correct positions and orientations Push the CompoNet Master Board to the end Be sure the connector on the CompoNet Master Board is pushed evenly onto the connector on the PC 5 Do not apply an excessive load to the Board while mounting it Pull the CompoNet Master Board lightly to confirm that it won t come out 7 Tighten the screws on the left side of the CompoNet Master Board panel with 0 5 N m torque and secure the Board 13 Installing the Drivers Section 2 2 2 2 Installing the Drivers
74. 00014 Cannot change the state CPNT_PARAM_ERROR 0x20001000 Argumentis out of the range Specify a correct argument CPNT_RES_NOT_RECEIVED 0x20001001 No response CPNT_RES_SIZEOVER 0x20001002 Response message size is over the limit CPNT_REQ SIZEOVER 0x20001003 Request message size is over the limit CPNT_BUSY 0x20001004 The destination is in the state that cannot receive an explicit message CPNT_OTHER_ERROR 0x20020000 Other error 100 APPENDIX B Shared M emory Interface Bel PCI ReSOurCes ssc 53 neti ea ladon dee gd atid peu goa A sd gn es 102 B 1 1 PCI Configuration Register Information 102 Be1 2 Memory Area cies 6 cas tanith E SSR OAR ERS ARES 8 102 B 2 PCI Register Specifications 00 0 cece cee eee eee 103 B 2 1 PCI Register Map 0 0 2 eee eoi ni ee eee 103 B 2 2 Board ID Offset Ox0000 00 0222 eee 103 B 2 3 Board Reset Offset OxXO001 0 0 0 eee eee 103 B 2 4 Interrupt Control Register Interrupt from PC to Board 104 B 2 5 Interrupt Control Register Interrupt from Board to PC 105 B 3 Shared Memory Area Specifications 0 000 002 e eee eee 107 B 3 1 Shared Memory Area Map 20 00 0002 cee eee eee ee 107 B 3 2 Board Information 0 0 0 c eee eee ee eee 108 B 3 3 Basic Status Group in Detail 000 00 00000 110 B 3 4 Clock in DetallS s d ccs bi ee a ee a ee sae 113 B 3 5 I O Da
75. 0280 Detailed format Number of the node Read Write Itstores the Bit OUT data of a Bit OUT Slave Unit Shared M emory Area Specifications Section B 3 B 3 6 Detailed Status Group in Details Duplication Error Flag This is the duplication error flag for a node This error occurs not only due to a duplication but also when a Slave Unit stops because of unstable communications Data format Offset address 0x0300 Flags for Word IN MIX Slave Units These values are the corresponding part of each node addre 14 9 8 76 30 25 24 23 22 21 46 41 40 39 38 37 62 57 56 55 54 53 Duplication Error flags for Word OUT Slave Units ese values are the corresponding part of each node address 14 9 8 7 6 5 30 25 24 23 22 21 46 41 40 39 38 37 62 57 56 55 54 53 lags for BitIN MIX Slave Units ese values are the corresponding part of each node address 14 13 12 11 10 9 8 7 6 5 4 34 2 30 29 28 27 26 25 24 23 22 21 20 19 18 46 45 44 43 42 41 40 39 38 37 35 34 62 61 60 59 58 57 56 55 54 53 78 77 76 75 74 73 72 71 70 69 94 93 92 91 90 89 88 87 86 85 110 109 108 107 106 105 104 103 102 101 126 125 124 123 122 121 120 119 118 117 Duplication Error flags for BIT OUT Slave Units e
76. 1 CPNT_GetBoardV ersion 85 CPNT_GetDriverVersion 85 CPNT_GetInData 91 CPNT_GetStatus 86 CPNT_GetStatusEx 36 50 87 CPNT_IsExistBoard 77 CPNT_Open 76 CPNT_PeekExplicit 37 94 CPNT_ReceiveE xplicit 37 96 CPNT_RefreshPCWDTTimer 97 CPNT_RegBDWDTNotifyM essage 98 CPNT_RegReceivek xplicitN otifyM essage 94 CPNT_RegRESETNotifyM essage 99 CPNT_ReleaseA ccessTolO 90 CPNT_ Reset 76 CPNT_ResetStatusE x 88 CPNT_SendExplicit 37 93 CPNT_SetBitOutData 93 CPNT_SetDateTime 89 CPNT_SetOutData 92 CPNT_StartCycle 28 77 CPNT_StartCycleEx 28 37 39 79 CPNT_StopCycle 83 CPNT_UnRegBDWDTNotifyM essage 98 CPNT_UnRegReceiveE xplicitN otifyM essage 95 CPNT_UnRegRESETNotifyM essage 99 D detailed status group 36 driver 14 Duplication Error Flag 117 EO Slave Unit 121 Error Code 71 Error Counter 123 Error Log 130 Error Log Saving Area 71 Error Log Table 70 Event Area 134 Event area 133 211 212 Index F Flags of Interrupt from Board to PC 105 Flags of Interrupt from PC to Board 104 Flat Cable 157 159 Flat Cable ll 157 159 Flat Connector Plug 23 173 174 176 188 Flat Connector Socket 170 174 175 182 185 190 1 0 power supply 195 Identity information 109 Identity Object 49 IN Data Zero Clear Due to Communications Error mode 40 Initialization end notification 108 Interrupt 56 Interrupt Clear 106 Interrupt M ask 105 Interrupt Request confirmation 104
77. 3 BIT IN 112 BIT IN 127 BIT IN 126 BIT IN 125 BIT IN 124 BIT IN 123 BIT IN 122 BIT IN 121 BIT IN 120 BIT OUT Data Allocation Area BIT OUT 7 BIT OUT 6 BIT OUT 5 BIT OUT 4 BIT OUT 3 BIT OUT 2 BIT OUT 1 BIT OUT 0 BIT OUT 15 BIT OUT 14 BIT OUT 13 BIT OUT 12 BIT OUT 11 BIT OUT 10 BIT OUT 9 BIT OUT 8 BIT OUT 23 BIT OUT 22 BIT OUT 21 BIT OUT 20 BIT OUT 19 BIT OUT 18 BIT OUT 17 BIT OUT 16 BIT OUT 31 BIT OUT 30 BIT OUT 29 BIT OUT 28 BIT OUT 27 BIT OUT 26 BIT OUT 25 BIT OUT 24 BIT OUT 39 BIT OUT 38 BIT OUT 37 BIT OUT 36 BIT OUT 35 BIT OUT 34 BIT OUT 33 BIT OUT 32 BIT OUT 47 BIT OUT 46 BIT OUT 45 BIT OUT 44 BIT OUT 43 BIT OUT 42 BIT OUT 41 BIT OUT 40 BIT OUT 55 BIT OUT 54 BIT OUT 53 BIT OUT 52 BIT OUT 51 BIT OUT 50 BIT OUT 49 BIT OUT 48 BIT OUT 63 BIT OUT 62 BIT OUT 61 BIT OUT 60 BIT OUT 59 BIT OUT 58 BIT OUT 57 BIT OUT 56 BIT OUT 71 BIT OUT 70 BIT OUT 69 BIT OUT 68 BIT OUT 67 BIT OUT 66 BIT OUT 65 BIT OUT 64 BIT OUT 79 BIT OUT 78 BIT OUT 77 BIT OUT 76 BIT OUT 75 BIT OUT 74 BIT OUT 73 BIT OUT 72 BIT OUT 87 BIT OUT 86 BIT OUT 85 BIT OUT 84 BIT OUT 83 BIT OUT 82 BIT OUT 81
78. 3909 0x390A to 0x390B 0x390C to 0x4691 0x4692 to 0x469B 0x469C to 0x469D 0x469E to Ox1F FFF Setting area group S oftware table OPEN Data rate OPEN Logical error checking item OPENEX Registration table OPENEX Network parameter OPENEX Slave Unit parameter OPENEX Reserved B 3 2 Board Information Initialization end notification Running program ID 108 This specifies the Board state after a power on Data format Offsetaddress 0x0010 Offset Bit Word 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 IniEndCode Detailed format IniEndCode Read 0x1703 Normal operation Others Before the Board is started up This specifies the mode of the firmware to be run Data format Offsetaddress 0x0012 Offset Bit Word 35 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 Shared M emory Area Specifications Section B 3 Data in detail Name Access Description Progld Read OxFFFF Waits for the command OPEN_SYSTEM 0x0001 The system firmware is running OxEEEE The PC WDT is out and stops This is the Identity Object information of the CompoNet Master Board Identity information Data format Offset address 0x0014 Bit Vendor Code 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 Device Type Product Code Mino
79. 5 Explicit Messaging API Functions To set the Bit OUT data in Bit OUT Slave Unit These provide Explicit messaging services API function Description CPNT_SendE xplicit To send an Explicit message CPNT_PeekE xplicit To confirm an Explicit message response CPNT_RegReceive xplicitN otifyM essage To register the notice that an Explicit response message is received CPNT_UnRegReceiveE xplicitN otif yMessage To unregister the notice that an Explicit response message is received CPNT_ReceiveE xplicit A 1 6 PC Watchdog Timer API Functions To read the Explicit response message These provide the PC Watchdog Timer function C Atunci OO J Description O O CPNT_EnableP CWDTTimer To enable or disable the PC Watchdog Timer CPNT_RefreshP CWDTTimer To refresh the PC Watchdog Timer value A 1 7 Board Request Notification API Functions These notify messages from CompoNet Master Board API function Description CPNT_RegBDWDTNotifyMessage To set that a hardware error of the Board is notified via a Windows message CPNT_UnRegBDWDTNotifyMess age To release the setting where a hardware error of the Board is notified via a Windows message CPNT_RegRESETNotifyMessage To set that a reset request made by the Board is notified via Windows message CPNT_UnRegRESETNotifyMessa ge To release the setting where a reset request made by the Board is notified via Windows messa
80. 6 25 24 23 22 21 41 40 39 38 37 57 56 55 54 53 Detailed format Name Aecess_ Description O O Participation Read ON It participates in the network flag OFF It does not participate in the network 110 Shared M emory Area Specifications Section B 3 Communications This indicates the communications error flag of each node Error Flag Data format Offset address 0x007A Word IN MIX Slave Unit Communications These values are the corresponding part of ea 14 9 8 7 6 5 30 25 24 23 22 21 46 41 40 39 38 37 62 57 56 55 54 53 Communications error flag for Word OUT Slave Units ese values are the corresponding part of each node address 14 13 12 11 10 9 8 7 6 5 4 34 2 30 29 28 27 26 25 24 23 22 21 20 19 18 46 45 44 43 42 41 40 39 38 37 36 35 34 62 61 60 59 58 57 56 55 54 53 52 51 50 Bit IN MIX Slave Unit Communications Error Flags ese values are the corresponding part of each node address 14 13 12 10 918 716115 30 29 28 26 25 24 23 22 21 46 45 44 42 41 40 39 38 37 62 61 60
81. 61 60 59 58 57 56 55 54 53 52 78 77 76 75 74 73 72 71 70 69 68 94 93 92 91 90 89 88 87 86 85 84 110 109 108 107 106 105 104 102 101 100 126 125 124 123 122 121 120 118 117 116 Flags for Bit OUT S Units ese values are the corresponding of each node addre 14 13 12 11 10 9 8 6 5 4 3 30 29 28 27 26 25 24 22 21 20 19 46 45 44 43 42 41 40 38 37 36 35 62 61 60 59 58 57 56 54 53 52 51 78 77 76 75 74 73 72 70 69 68 67 121 Shared M emory Area Specifications Section B 3 Master Status 122 89 88 87 86 85 105 104 103 102 121 120 119 118 117 Flags for Repeater Units s are the corresponding part of each node address 9 8 7 6 5 25 24 23 22 21 41 40 39 38 37 57 56 55 54 53 Detailed format Name Access Description Event only Read ON A node that can use event only SlaveUnit flag OFF Normal This stores the status of the CompoNet Master Board Data format Offset address 0x0408 Bit 15 14 13 12 11 10 09 08 07
82. BS are for communications power supply The terminals BDH and BDL are for communications data The BS and BS can be used only for round cable II or Flat Cable or Il They output the communications power from the power supply connected to the communications power supply connector Note By attaching an Open Type Connector for Unit connection the communications connector can be converted to a terminal block type LED Indication 1 4 LED Indication MS Module Status To indicate the node status green and red NS Network Status To indicate the communications status green and red LED Name Green light Indicating state Normal state Section 1 4 Meaning The Master Board is in normal operation Green flash Stand by It waits for a start up by the application Red light Fatal error Master Board hardware error including Watchdog Timer WDT error Red flash Non fatal error EEPROM read error or PC WDT error Unilit Power off or in preparation One of the following applies Power is off The system is resetting or initializing Green light Online and in remote I O communications All of the followings apply Power is supplied Remote I O communications starts up None of the Slave and Repeater Units has communications error No Registration Table error exists None of the Slave and Repeater Units has node address duplication Green flash Online
83. Bit OUT data As needed 0x0300 to 0x0337 0x0338 to 0x0367 0x0368 to 0x0397 0x0398 to 0x03CF 0x03D0 to 0x0407 0x0408 to 0x0419 Detailed status group Duplication error flag As requested Registration error Registered Slave not participated flag As requested Registration error Non registered Slave Unit Participating flag As requested Repeater configuration error As requested EO Slave Unit As requested Master status As requested 0x041A to 0x05D9 0x05DA to 0x05DB 0x05DC to 0x1C 9B Ox1C9C to 0x201B 0x201C to 0x20FB 0x20FC to 0x237D 0x237E to 0x238B 0x238C to 0x3111 Detailed status group Error counter As requested Network power state As requested Participated Slave Unit Identity table As requested Repeater configuration information As requested Alarm information As requested Error log As requested Reserved Registration table example As requested 107 Shared M emory Area Specifications 0x3200 to 0x3203 0x3210 to 0x3213 CMDarea group Section B 3 Word size Byte size Access Update timing CMD area PC gt BD CMD CMD area BD PC CMD 0x3300 to 0x3521 0x3600 to 0x3821 Event area group Explicit Message Eventarea PC BD E xplicit Message Event area BD PC 0x3900 to 0x3907 0x3908 to 0x
84. BitOUTO size 1W to Set BitOUT127 size 1W 82 Section A 3 Communications Control API Parameter VendorC ode 3 84 Description These items must be set when the relevant flags for RegSet are selected to check DeviceType 38 4 Set the values of Slave Unit Identity object information P roductC ode 384 MajorR evision I O size information format Number of IN channels points Description Set the number of IN points of Slave Units Set the Bits 0 to 5 to 0 OFF when the number of IN points is zero 00000 2 points 00001 4 points 00010 8 points 00011 16 points 00100 32 points 00101 48 points 00110 64 points 00111 80 points 01000 96 points 01001 112 points 01010 128 points 01011 144 points 01100 160 points 01101 176 points 01110 192 points 01111 208 points 10000 224 points 10001 240 points 10010 256 points others prohibited IN setting enabling flag 0 Disabling IN number setting 1 Enabling IN number setting Reserved area Set 0 OFF Number of OUT channels Set the number of OUT points for Slave Units Set the Bits 8 to 13 to 0 OFF when the number of OUT points is zero 00000 2 points 00001 4 points 00010 8 points 00011 16 points 00100 32 points 00101 48 points 00110 64 points 00111 80 points 01000 96 points 01001 112 points
85. Board has been set up properly Identifying Errors An error is identified in the following sequence 1 Knowing the error Monitor the lightning pattern of the LED Indicators Know whether the error is on the CompoNet Master Board MS LED or the Network NS LED 4 2 Identifying the error content Read the Basic status group and the Detailed status group in the CompoNet Master Board Identify the error location and the content In the Windows operation systems use the API functions to read the status groups In other environments access to the Shared memory area 4 3 Detecting the error cause Compare the Error occurrence factors and the on site situation Detect and eliminate the cause 4 Solving the error Confirm the system state on the Board operation after detecting an error and the required operation for solving the error on the Action to be taken Reset the system operation to normal The subsequent sections explain the error identifying function on the CompoNet Master Board the operation after detecting an error and the actions to be taken LED Indications and Error Handling Section 6 1 6 1 2 LED Indication During Normal Operation o P ower not supplied The power is not supplied FARI Wait for startup It waits for a startup by the user application reen The communications stops 9 Communications stopped The state is achieved when the user application explicitly requests a Green comm
86. CN4 TM4 Terminating Resistor attached with a DCN4 TR4 Flat Connector Socket Master Board or Repeater Unit Communications power supply connector Communications Commu power supply 24 VDC Flat Cable or Flat Cable II nications Communications power supply lines BS red BS black power Communications signal lines BDH white BDL blue Terminating Resistor 121 Q Communications connector Slave Unit Slave Unit When Flat Cable is used Slave Units can be connected in parallel also by multidrop connections A DCN4 MD4 Multidrop Connector is used for this connection Master Board or Repeater Unit Communications power supply 24 VDC Flat Cable Slave Unit Terminating Resistor 121 Q Communications Multi drop connector connectors Slave Unit 170 Wiring for a CompoNet Network Section E 3 E 3 4 Connectors Round cable or Il Flat Cable l or Il Master Board Slave Unit Cable branches connections Repeater Unit T branch Multidrop connections connections connections Open Type Open Type Commercially Open Type Connector Connector available relay Connector Open Type gt terminal Trunk sub trunk Open Type Master Board Connector Branch line or sub branch line block or branch line Connector Open Type Connector Relay terminal Trunk sub trunk block j or branch line g Slave or Repeater Unit
87. Cat No W485 E1 02 3G8F7 CRM21 for PCI Bus 3G8F8 CRM21 for CompactPCI Bus CompoNet Master Board for PCI Bus CompactPCI Bus USER S MANUAL OMRON Trademarks and Copyrights Microsoft Windows Windows 2000 Windows XP Windows Vista Windows 7 Visual Basic and Visual C are registered trademarks of the Microsoft Corporation C Builder is the registered trademark of the Embarcadero Technologies Inc ODVA CIP CompoNet DeviceNet and EtherNet IP are trademarks of the Open DeviceNet Vendor Association Inc Other product names and company names in this manual are trademarks or registered trademarks of their respective companies The copyright of the CompoNet Master Boards for PCI Bus and for CompactPCI Bus and related software belongs to OMRON Corporation 3G8F7 CRM21 for PCI Bus 3G8F8 CRM21 for CompactPCI Bus CompoNet Master Board for PCI Bus CompactPCI Bus User s Manual Revised September 2013 Notice OMRON products are manufactured for use according to proper procedures by a qualified operator and only for the purposes described in this manual The following conventions are used to indicate and classify precautions in this manual Always heed the information provided with them Failure to heed precautions can result in injury to people or damage to property Z DANGER Indicates an imminently hazardous situation which if not avoided will result in death or serious injury Ad
88. DRS1 T Terminating Resistor 168 Wiring for a CompoNet Network Section E 3 Master Board or Communications power supply connector Repeater Unit Communications power supply 24 VDC Communications power supply Communications power supply lines 2 Terminating Resistor 121 Q Relay terminal block fo a li Open Type Connector BS BDH BDL BS BS BDH BDL BS BS BDH BDL BS Open Type Connector Multidrop Connectors can also be used to connect the Slave Units in parallel Master Board or Repeater Unit Communications Terminating Resistor 121 Q Communications power Open Type Connector supply lines 2 BS BDHBDLBS BS BDHBDLBS Slave Unit Slave Unit BS BDHBDLBS Slave Unit Open Type Connector BS Terminating Resistor 121 Q BDH BDL BS Insulated You can also use the DRS1 T Terminating Resistor for termination If you do insulate the ends of the BS and BS lines 169 Wiring for a CompoN et Network Section E 3 E 3 3 Wiring Flat Cable or Il e Flat Cables are used as the two communications signal lines and the two communications power supply lines that connect the Master Board or a Repeater Unit with the Slave Units A 24 VDC communications power supply is connected to the communications power supply connector on the Master Board or Repeater Unit e At the end of the network line there must be a D
89. Get Explicit Response Message CPNT_ReceiveE xplicit Unregister Notice of Explicit Response Message Received CPNT_UnRegR eceiveE xplicitN otifyMessage Stop Communications cycles to f CPNT_StopCycle oO 8 Y a 2 Close Board Ww CPNT_ Close 47 Setting the Time Information Section 4 4 4 4 Setting the Time Information The CompoNet Master Board saves the error occurrence time at the same time when it saves the error history in the internal non volatile memory Time data must be notified periodically from the user application to the Board so that the correct time is recorded Open Board CPNT_Open Y Start Communications cycles CPNT_StartCycle y Loop Start Initial processing y I O process and so on Write Time data CPNT_SetDateTime Loop End Y Stop Communications cycles CPNT_StopCycle Y Close Board CPNT_Close End processing 48 Implementing the Reset Request 4 5 Implementing the Reset Request Section 4 5 To use the Reset Service of Identity Objects a logic must be programmed so that the CompoNet Master Board requests a reset and the user application resets the Board The logic is not required if you do not use the Reset service of Identity Objects Initial processing A Final processing Precautions for Correct Use Open Board CPNT_Open
90. M Some errors are fatal and they are also saved in the EEPROM Those error logs saved in the EEPROM are retained even after the CompoNet Master Board is shutdown or reset The logs in the EEPROM are copied in the RAM when the CompoNet Master Board is started up The logs in the EEPROM are copied in the RAM when the CompoNet Master Board is started up It is only the error logs in RAM that can be read by reading function But the error logs both in RAM and in the EEPROM are cleared by clearing function Error Log Saving Area Reading or Clearing the The Error Log Tables can be read or cleared by the Detailed status group Error Log Table Precautions for Correct Use To keep the time of error occurrence the Board uses the time information notified periodically by the user application When no time information is given by the user application 0 is entered as the time of error occurrence in the error log 6 2 2 Error Code and Description List Detailed Information EEPROM 1st byte Description 2nd byte 0x0001 PC_WDT Error Cause PC WDT is timed out 0x0370 Registration Error Registered Slave not participating Cause A Slave Unit that was registered to the Registration table has not participated yet 0x0372 Registration Error Non registered Slave participating Word IN Slave Unit Word MIX Slave Unit Word OUT Slave Unit Node address Hex Cause A Slave Unit that was not registered to the
91. Offset 0x0004 Flag INIEND Unused REQ_RES SND_ACK CMD_ACK Access rule R W R W R W R W R W Initial value 0 0 0 0 0 105 PCI Register Specifications Section B 2 Interrupt Request Indication Offset 0x0005 Flag INIEND Unused REQ_RES SND_ACK CMD_ACK Access rule Initial value Interrupt Clear Offset 0x0006 Flag INIEND Unused REQ_RES SND_ACK CMD_ACK Access rule W W W Ww Ww Initial value 106 Shared M emory Area Specifications B 3 Shared Memory Area Specifications B 3 1 Shared Memory Area Map Offset address 0x0010 to 0x0011 0x0012 to 0x0013 0x0014 to 0x0041 Group Board information group Name Initialization end notification Word size Byte size Access R Section B 3 Update timing Initialization Running program ID R Initialization Identity information Initialization 0x0042 to 0x0079 0x007A to 0x00B1 0x00B2 to 0x00B3 Basic status group Participation flag As needed Communications error flag As needed StateS tatus As needed 0x00B4 to 0x00BF Clock group Clock data As needed 0x0100 to 0x017F 0x0180 to 0x019F 0x0200 to 0x027F 0x0280 to 0x029F I O data group IN data As needed Bit IN data As needed OUT data As needed
92. PPENDIX A API Function Reference cccccccccccceee 73 Aad Function Tisti eeri neame ab eta iee eo ee Eee i E a eh ede 74 A 2 Board ControlAPl sorasa iss waa ew eh eA a we A GaN A he Rats 76 A 3 Communications Control API 0 eect ene e eens 77 A4 Stat s Access API soccer ies ap Bus sapecnle satsoenn GS eceub bubs eve pl td dle beaten A E 6th 85 A 5 I O Datt Access API oc anei n ER R EE dae ee ee as eae ae Pe 90 A 6 Explicit Messapimg APIo 23 ice dc nok sett Se ok ye 34d See a eee Soe ee Oa whe ee 93 A 7 PC Watchdog Timer API eeno pe eect e ene eee 97 A 8 Board Request Notification API 0 ec eee eens 98 A 9 Errors Detectable by Functions 1 0 0 0 0 cece eee 100 APPENDIX B Shared Memory Interface ceeeeeeeeeees IOI Bel POLRESOUTC OSa Geek sis Wee Ges E ee dy Pa Oh Re Re 102 B 2 PCI Register Specifications o sose so 0 05 c ssc b ede ebb abe eb edds be bee eee e ee eo 103 B 3 Shared Memory Area Specifications 2 2 0 0 0 eee eee nee 107 B 4 Command Specifications 00 0 ee cc eect eens 142 APPENDIX C Communications Performance eeeee2 147 C 1 Remote I O Communications Performance 0 0000 cece eee eee ees 148 TABLE OF CONTENTS APPENDIX D Sample Program ia 0susoekevowed seense esas exsavewdes 153 D 1 Sample Program APPENDIX E Installation and Setup ccceceeeccceseeceee 155 E 1 E 2 E 3 E 4 E 5 CompoNe
93. RD StatusE xInfo Argument Parameter Direction Description HANDLE Handle Device handle obtained with the function CPNT_Open CPNT_STATU StatusEx Pointer to store the detailed status SEX WORD StatusE xInfo Specify the detailed status to read Returned value It returns TRUE when the function succeeds It returns FALSE when an error occurs The error details can be obtained with the function GetLasteE rror Remarks This is used to read the Detailed status group See Section 3 3 2 for the group To execute this function the communications cycles must be running CPNT_STATUSEX structure Parameter Description CommunicationF ault 28 Duplication error flag None xistentE rror 24 Registration error Registered Slave not participating flag UnR egisteredE rror 24 Registration error Non registered Slave participating flag R epeaterE rror 28 Repeater configuration error EventO nly 28 EO Slave Unit MasterS tatus 9 Master status ErrorC ounter 224 Error counter NetworkP ower 1 Network power state J oinldentityTable 2912 Participated Slave Unit identity table R epeaterS tructure 448 Repeater configuration information Alarm 112 Alarm information ErrorLog 321 Error log TmplI7 Reserved area Content is indefinite RegistrationTableS ample 17 Registration table example 31 See Appendix B 3 6 for the data format 87 Status Access API Section A 4 Stat
94. Register Board Mess Reset Request age CPNT_RegRESETNotifyMessage y Notify the Board reset request Start Commun CPNT_Sti cations cycles artCycle Wait for 1 second y Loop Start y I O process and so on y Loop End y Stop Communications cycles CPNT_StopCycle Y Close Board CPNT_Close Reset Board CPNT_Reset A program must ensure that the Board is reset no earlier than 1 second after a Board reset request is received 49 Access to Detailed Status Group Section 4 6 4 6 Access to Detailed Status Group 4 6 1 Reading the Detailed Status Group The function CPNT_GetStatusEx is used to read out the detailed status group gt Open Board G CPNT_Open fo y ke Start Communications cycles CPNT_StartCycle y Loop Start y I O process and so on Y Read Detailed status group CPNT_GetStatusEx Loop End Y Stop Communications cycles CPNT_StopCycle x i Close Board CPNT_Close Final processing Precautions for Correct Use The function CPNT_GetStatusEx may take a long time to be processed It must be operated in any timing when no I O processing is required or in threads other than where the I O process is implemented 50 Access to Detailed Status Group Section 4 6 4 6 2 Clearing the Detailed St
95. Specifications Command REQUEST RESETSTATUS Purpose Code Argument Response code Remarks Command SET _PC_WDT Purpose Code Argument Response code Remarks 146 Section B 4 Issue a request to clear the Detailed status group 0x2002 Clearing status 1 WORD data items Set the bits to clear to 1 ON and the bits not to clear to 0 OFF Flag name Reserved area Set 0 OFF Master status Error counter Reserved area Set 0 OFF Error log Reserved area Set 0 OFF Normal end 0x0000 e It is cleared at the time a normal end is the response e When the Master status is set to be cleared the Maximum communication cycle time the Cumulative CRC reception error and the Cumulative code reception error in the Master status are cleared Set the PC Watchdog Timer 0x3001 Timer value 1 WORD data Unit 10 ms Range 0x0000 0x0001 to OxFFFF 1 to 655350 ms Setting 0x0000 will disable the PC WDT function Normal end 0x0000 e When the PC WDT is enabled be sure to refresh it before it times out e See Section 5 5 for the usage of PC WDT APPENDIX C Communications Performance C 1 Remote I O Communications Performance 00 cece eee 148 C 1 1 Input time Slave Unit Master Board 148 C 1 2 Output time Master Board Slave Unit 148 C 1 3 Descriptions of Parameters 0 00 00 ce eee ee eee 149 147 Rem
96. Start Communications Cycles in the Detailed Setting 79 A 3 3 CPNT_StopCycle Stop Communications Cycles 83 A 3 4 CPNT_ChangeToRunState Transition to RUN 84 A 3 5 CPNT_ChangeToldleState Transition to IDLE 84 status Access APD oeren tn Seth See eee ARG oR eee GER 85 A 4 1 CPNT_GetBoardVersion Get Board Version 85 A 4 2 CPNT_GetDriverVersion Get Driver Version 85 A 4 3 CPNT_GetStatus Read Basic Status Group 86 A 4 4 CPNT_GetStatusEx Read Detailed Status Group 87 A 4 5 CPNT_ResetStatusEx Clear Detailed Status Group 88 A 4 6 CPNT_SetDateTime Write Time Data 89 T DatasAccess APl fora stot tee ih bk oe ame CERE EEES 90 A 5 1 CPNT_GetAccessTolIO Get Access to I O 0 0005 90 A 5 2 CPNT_ReleaseAccessToIO Release Access to I O 90 A 5 3 CPNT_GetInData Get IN Data from Word IN Slave Unit 91 A 5 4 CPNT_GetBitInData Get Bit IN Data from Bit IN Slave Unit 91 A 5 5 CPNT_SetOutData Set OUT Data in Word OUT Slave Unit 92 A 5 6 CPNT_SetBitOutData Set Bit OUT Data to Bit OUT Slave Unit 93 Explicit Messaging API 00 eee cee eee 93 A 6 1 CPNT_SendExplicit Send Explicit Message 93 A 6 2 CPNT_PeekExplicit Check Response Received 94 A 6 3 CPNT_RegReceiveExplicitNotifyMessage Register Notice of Explicit Response Mes
97. TNotifyMessage HANDLE Handle Type Parameter Direction Description HANDLE Handle Device handle obtained with the function CPNT_Open It returns TRUE when the function succeeds It returns FALSE when an error occurs The error details can be obtained with the function GetLastE rror It returns TRUE when the message has been successfully unregistered It returns FALSE when an error occurs Detailed error content can be obtained with G etLastE rror 99 Errors Detectable by Functions Section A 9 A 9 Errors Detectable by Functions If an error occurs while an AP I function is executed details of the error can be obtained with the function GetLastE rror Error code Error content and Action to be taken CPNT_INVALID_ HANDLE 0x20000001 Driver handle value is invalid Specify the correct driver handle and redo the operation CPNT_NOT_OPEN_DRIVER 0x20000003 Driver handle value is invalid Specify the correct driver handle and redo the operation CPNT_NOT_EXIST_DEVICE 0x20000004 Board of specified ID does not exist A board with an identical Board ID does exist Specify a correct Board ID CPNT_CMD_TIMEOUT 0x20000005 The command times out Reset the Board and redo the operation CPNT_EVENT_TIMEOUT 0x20000006 The explicit message times out Set the time to monitor the events addressed to Slave Units longer The monitoring time is one o
98. Unable to use supply Round Cable II Both of communications power and I O power are supplied Flat Cable and II collectively through the communications cable Multi power supply type Round Cable e Communications power Supplied individually to each power terminal on the communications connectors of the Units Supplied individually to each power terminal on the PORT1 connectors of the Repeater Units e O power Supplied separately from the communications power to each I O power supply terminal on the Units To prevent noise generation the power must be supplied separately from the communications power supply 195 Wiring for Power Supply Section E 5 Communications I O power power supply terminals supply terminals Master Board Overcurrent protection t current limit 4A Communica tions power supply 24 VDC When complying with UL standards install a device to limit the current between the external power supply and the Unit to 4 A or less for the communications power supply Round Cable II Flat Cable and Flat Cable II e Communications power Supplied through the communications power supply connector on the Master Board Supplied through the downstream port of communications power supply connector on the Repeater Unit e O power Supplied separately from the communications power to each I O power supply terminal on the Unit Communic
99. Windows found click Next aa a cn3g8f inf Cancel 5 The installation is complete when the following page is shown and the Finish button is clicked Found New Hardware Wizard Completing the Found New Hardware Wizard gt CompoNet PCI Master Windows has finished installing the software for this device To close this wizard click Finish lt Back F i Cancel 16 Installing the Drivers Section 2 2 Windows 7 Note For Windows 7 you must log as the administrator to install the driver 1 2 3 1 After the Board is installed in the computer start the Device Manager New hardware will be detected automatically Open the Device Manager and double click Other devices 1 To open the Device Manager click the Windows Start Button and select Control Panel Hardware and Sound and Device Manager in that order esin 8 om 4 OMRON PC J amp E Computer cea Disk drives E Display adapters ef DVD CD ROM drives 05 Human Interface Devices og IDE ATA ATAPI controllers Keyboards FA Mice and other pointing devices E Monitors a Network adapters 4 J Other devices Lm Network Controller Da PCI Serial Port Ta PCI Simple Communications Controller Ia SM Bus Controller TP Ports COM amp LPT BB Processors IP Security Devices a Sound video end game controllers M8 System devices Universal Serial Bus controllers 2 The Network Controller will appear under Other devices
100. able Slave Unit Explicit Messages Section 3 4 Error log It stores the error log Registration table It stores the registration table example made from the example information of the Slave Units currently participating Precautions for Correct Use For a Word Mixed Slave Unit use the status for the node address of the Word Input Slave Unit For a Bit Mixed Slave Unit use the status for the node address of the Bit Input Slave Unit 3 4 Explicit Messages Explicit messages are general purpose messages specified by CompoNet protocol The messages are used to rewrite a Slave Unit parameter or to read out any data from a Slave Unit In the Windows operation systems explicit messages are used by functions CPNT_SendExplicit CPNT_PeekE xplicitand CPNT_ Receive xplicit To use the message by accessing the shared memory area see Section 4 3 3 5 Detailed Settings at Communications Cycle Startup 3 5 1 Registration Table Function Outline This is the function used to register the model of a Slave Unit to participate along with the corresponding node address and to check whether a Slave Unit that is actually participating is registered or not It identifies any Slave Unit that is not on the list or whose allocated node address or model differs from the information on the list and prevents it from participating in the network In the Windows operation systems the function CPNT_StartCycleEx enables the Registration Table function
101. able communications One of the following occurs All system operations Identify which error it is e Communications error on continue among the StateStatus of Slave Unit Communications stops only the Basic status group e Configuration error on when a communications Repeater Unit stop due to communications e Registration comparison error occurs error e Communications stop due to communications error LED indication O Light Flash Unlit Not applicable Communications error 69 Error Log Section 6 2 6 1 4 Error Identification by StateStatus The errors monitored by NS Indicator lighting or flashing are identifiable by StateStatus of the Basic status group In the Windows operation systems use the function CPNT_GetStatus to access the Basic status group In other environment access to the shared memory area directly StateStatus NS Red light Error Slave duplication error occurred Repeater duplication error occurred How to identify the errors Identify the erroneous Slave or Repeater Unit by the Duplication error flag of Detailed status group Note This error occurs not only due to a duplication but also when a Slave Unit stops because of unstable communications If the address duplication is not the cause check the wiring or the terminators around the erroneous Slave Unit NS Red flash Communications error occurred on a Slave Unit Communications error occurred
102. acids e Locations subject to shock or vibration 5 Application Precautions Observe the following precautions when using a CompoNet Network e When more than one CompoNet system use Flat Cables always separate the Flat Cables from each other by at least 5 mm regardless of whether Flat Cable or Il is used Do not bundle the Flat Cables This is to prevent unstable operation of the system due to interference xvii Application Precautions xviii 5 e Fail safe measures must be taken by the customer to ensure safety in the event of incorrect missing or abnormal signals caused by broken signal lines momentary power interruptions or other causes e Configure the control circuits so that the power to the PC near the CompoNet Master Board will be on after the power to the I O Slave Units If the PC power supply is turned on first normal operation will not be ensured even temporarily e Use the Boards within the communications distance and the number of connectable Units as defined in the specifications Do not attempt to disassemble repair or modify any Units Any attempt to do so may result in a malfunction fire or electric shock e When installing the Unit ground to 100 Q min e Be certain all screws to fix the Board to the PC as well as the screws on connectors cables and terminal blocks are tightened to the torque specified in the corresponding manuals Incorrect tightening torque may result in a malfunction
103. al DCN4 TB4 Open Type Connector block for connecting a Unit Communications connector Connectors 174 u S lave or Repeater Unit Wiring for a CompoN et Network Section E 3 Using Flat Cable with Multidrop Connectors DCN4 BR4 Flat Connector Plug DCN4 MD4 U Multidrop Connector Slave or Repeater Unit Using Flat Cable Il Flat Cables II does not support multidrop connections E 3 7 Extending Communications Cables The cable length for the trunk line sub trunk lines branch lines and sub branch lines can be extended by up to 10 levels with the use of Flat Connectors The maximum extendable length however is the maximum trunk line length See Section 1 2 1 Flat Connector Socket Flat Connector Socket E Trunk or sub trunk line Flat Connector Plug Terminating Resistor Extensions can be done up to 10 levels Thatis up to 10 sets of Connectors can be used Flat Cable I Attach a DCN4 BR4 Flat Connector Plug to a DCN4 TR4 Flat Connector Socket that has already been equipped with a cable stopper DCN4 TR4 Flat DCN4 BR4 Connector I Socket Flat Connector Plug 175 Wiring for a CompoN et Network Section E 3 Flat Cable Il Attach a DCN5 BR4 Flat Connector II Plug to a DCN5 TR4 Flat Connector II Socket having an internal stopper Mi DCN5 TR4 Flat DCN5 TR4 Flat Connector Il Socket Connector II Plug E 3 8 Connection Locations for Terminating Resis
104. art of each node address 14 12 11 10 9 8 7 5 4 3 2 30 28 27 26 25 24 23 22 21 20 19 18 Shared M emory Area Specifications Section B 3 EO Slave Unit Detailed format Name Access Description Repeater Read ON A Repeater configuration error occurs configuration error OFF Normal flag This indicates the list of Slave Units that cannot participate due to a reason such as being a non registered Slave Unit when the Registration table function is enabled but it can send explicit messages Data format Offset address 0x03D0 Flags for Word IN MIX Slave Units These values are the corresponding part of each node addre 14 12 9 8 76 2 30 28 25 24 23 22 18 46 44 41 40 39 38 34 62 60 57 56 55 54 50 Flags for Word OUT Slave Uni ese values are the corresponding part 14 12 9 8 7 6 5 30 28 25 24 23 22 21 46 44 41 40 39 38 37 62 60 57 56 55 54 53 Flags for Bit IN MIX Slave Units ese values are the corresponding part of each node address 14 13 12 11 10 9 8 7 6 5 4 3 2 30 29 28 27 26 25 24 23 22 21 20 19 18 46 45 44 43 42 41 40 39 38 37 36 35 34 62
105. at Cable II KOMP R Round Cable KOMP R II Round Cable II 157 CompoNet Network Specifications Section E 1 Model number Specification Available from UNICOMPO FC I T Flat Cable Nichigoh Communication Electric Wire UNICOMPO FC II T Flat Cable II Co Ltd UNICOMPO RC I T Round Cable UNICOMPO RC II T Round Cable II Dyden Corporation CNS F Round Cable stationary use CNS F Il Round Cable II stationary use CNM Round Cable robot use CNM Il Round Cable II robot use KCNF manufactured by Daiko Flat Cable Kanetsu Co Ltd Denkosha Corporation KCNF J manufactured by Taiyo Flat Cable II Cabletec Corporation MRC 4 manufactured by Hanshin Round Cable II Electric Wire amp Cable Co Ltd resists oil and bending VCTF0 75 2C manufactured by Round Cable Onamba Co Ltd VCTF0 75 4C manufactured by Round Cable Il Onamba Co Ltd VCTF0 75 2C manufactured by Round Cable Kawai Cable VCTF0 75 4C manufactured by Round Cable Il Kawai Cable Round cable Round cable Il 158 Use commercially available round cables each with two 0 75 mm2 thick conductors that meet the CompoNet specifications Ask the cable manufacturer for information on which products are applicable to CompoNet os Black or Blue BDL White BDH Use commercially available round cables each with four 0 75 mm thick conduct
106. ater Unit an upstream port Method 3 line cable Connect a Terminating Resistor to the trunk line or a sub trunk When the line is round cable or Il When the line is round cable Il Round cable DRS1 T 2 conductor cable Terminating Resistor a Round Cable II DCN4 TR4 DCN4 TM4 Flat Connector Socket Terminating Resistor DRS1 T Round Cable Il Terminating Resistor Insulate the ends of the BS red and BS black lines Precautions for Correct Use When you connect the cable conductors to the terminal block first attach the following M3 crimp terminals to the conductors 6 0 mm max 178 Wiring for a CompoNet Network Section E 3 E 3 9 Connection Locations for Communications Power Supplies This section explains the locations to connect the communications power supplies Using Round Cable Il Example Flat Cables or Il Flat Cable or Flat Cable Il 24 VDC communications power supply j Master Board Terminating Flat Cable or Il Resistor Supplies communications power Communications connector Slave Unit Slave Unit Slave Unit The BS and BS terminals of a 24 VDC communications power supply are connected to the communications power supply connector provided on the Master Board This connection provides all Slave Units on the trunk line which are connected to the Master Board via
107. ations power supply terminals 1 0 power supply terminals 1 0 power supply Master Board or 24 VDC Repeater Unit L Round Cable Il Flat aS Ss _ Ir Cable or Flat Cable Il Meena eee codes clchone When complying with UL standards install a device to limit the current a Overcurrent protection between the external power supply current limit 4 A and the Unit to 4 A or less for the communications power supply l tions power supply 24VDC Communications power supply connector on Master Unit or downstream port s communications power supply connector on Repeater Unit 196 Wiring for Power Supply Section E 5 Network power supply type The communications power supply and the I O power supply are common That is there is no need to provide supply units separately The power is supplied commonly through the communications power supply connector on the Master Board or through the downstream port of communications power supply connector on the Repeater Unit Bit Slave Units have Flat Cables attached Master Board or Repeater Unit Round Cable Il Flat Cable or Flat Cable II part Peo eet eG When complying with UL standards Overcurrent protection install a device to limit the current current limit 4 between the external power supply i 1 and the Unit to 4 A or less for the communications power supply Communications power supply and I O power
108. ations Section B 2 B 2 PCI Register Specifications B 2 1 PCI Register Map Access rule 0x0000 Board ID Read 0x0001 Board reset Write 0x0002 Interrupt control register Interrupt trigger Write 0x0003 __ Interrupt from PC to Board Interrupt request Read confirmation 0x0004 Interrupt control register Interrupt mask Read Write 0x0005 Interrupt from Board to PC interrupt cause Read indication 0x0006 Interrupt clear Write 0x0007 Reserved to 0x000F B 2 2 Board ID Offset 0x0000 Flag Reserved Reserved Reserved Reserved BD_ID Access rule R Initial value The value set by the rotary switch BD_ID bit0 to bit3 The Board ID set by the rotary switch on the Board is read A value from 0 to 9 can be read Board ID bit3x23 bit2x22 bit1x21 bit0x2 B 2 3 Board Reset Offset 0x0001 Flag Reserved Reserved Reserved Reserved Reserved Reserved Reserved Access rule Initial value BD_RST bit0 When you set this flag to 1 you can have a hardware reset on the CompoNet Master Board 103 PCI Register Specifications B 2 4 Section B 2 Interrupt Control Register Interrupt from PC to Board This register is used to make an interrupt request from the PC to the Board When you use the Interrupt Trigger register and set the flag to cause into 1 an interrupt occurs on the Boa
109. atus Group The Master Status Error Counter and Error Log in the Detailed Status Group can be cleared or reset This is the procedure by which to clear them Open Board CPNT_Open y Start Communications cycles CPNT_StartCycle y Loop Start Initial processing oN y I O process etc A request to reset the YES Detailed Status Group NO a y Clear Detailed status group CPNT_ResetStatusEx Loop End y Stop Communications cycles CPNT_StopCycle y Close Board CPNT_Close End processing Precautions for Correct Use The function CPNT_ResetStatusEx may take a long time to process It must be operated in any timing when no I O processing is required or in threads other than where the I O process is implemented 51 PC Watchdog Timer 4 7 PC Watchdog Timer 52 Section 4 7 The CompoNet Master Board has the PC Watchdog Timer PC WDT function This is used to stop the communications automatically whenever the user application by which the Board is controlled stops While the PC WDT function is enabled the communications automatically stops unless the user application updates the timer value within a specified timeframe The user application must be set so that the timer value for the PC WDT is refreshed periodically and the correct operation is notified to the Board Here is the procedure by which to use the
110. ave Units Word OUT Slave Units Bit IN Slave Units and Bit OUT Slave Units It is allocated in the shared memory of the CompoNet Master Board e Every 16 points of a Word IN Slave Unit or a Word OUT Slave Unit occupies 1 word in allocation area For example a 32 point IN Slave Unit occupies 2 words in allocation area for Word IN Slave Units e The offset address that is allocated to the shared memory is determined by the node address e Word MIX Slave Units occupy the allocation areas for both of Word IN Slave Units and Word OUT Slave Units For example when a Word MIX Slave Units has 16 inputs and 64 outputs it occupies 1 word in the allocation area for Word IN Slave Units and 4 words in the allocation area for Word OUT Slave Units e An 8 point Slave Unit also occupies 1 node or 1 word It is allocated to the lower byte of the 1 word while the upper byte remains open Allocation area for IN Data of a Word IN Slave Unit Word address Bit 15 BitO 0 IN data of Word IN Slave Unit with node address 0 1 IN data of Word IN Slave Unit with node address 1 IN 2 IN data of Word IN Slave Unit with node address 2 area 62 IN data of Word IN Slave Unit with node address 62 63 IN data of Word IN Slave Unit with node address 63 Allocation area for OUT Data of a Word OUT Slave Unit Word address Bit 15 Bit 0 0 OUT data of Word OUT Slave Unit with node address 0 1 OUT data o
111. c Time for a PC to Process the Application 152 Slave Units Data rate 4 0 Mbit s 3 0 Mbit s 1 5 Mbit s 93 75 kbit s E a ec can Word Output Unit 4 06 us 5 37 us 10 88 us 170 93 us Bit Output Unit 4 06 us 5 37 us 10 88 us 170 93 us K Calculation Example Conditions Data rate Word Outputs Word Inputs zombius 7uns Unis puns Duns K 7 x 5 37 us 2 x 5 37 us 0 048 ms 3 0 Mbit 93 75 Kb Torin 0 47 ms M 0 52 ms M 0 77 ms M 7 32 ms M M Number of Word Output Slave Units connected x 1 09 us Number of Word Input Slave Units connected x 4 53 us Number of Bit Output Slave Units connected x 0 56 us Number of Bit Input Slave Units connected x 5 23 us M Calculation Example Conditions Data rate Word Outputs Word Inputs 50 Mbps Buns eunes 16 Units M 8 x 1 09 us 16 x 4 53 us 16 x 0 56 us 8 x 5 23 us 0 132 ms Tcrmout 24 74 us Number of Word Output Slave Units x 0 46 us Number of Bit Output Slave Units 7 8 x 0 55 us Trelacc 6 91 us Number of Word Output Slave Units x 0 46 us Number of Bit Output Slave Units 7 8 x 0 55 us Measure the process time for an actual application APPENDIX D Sample Program D 1 Sample Programs scsi ose sce eh ese ee ke eee ae ad poe 154 153 Sample Program Section D 1 D 1 Sample Program The CD packaged with the product contains the sample program The program corresponds to the descr
112. ccidents may result from abnormal operation if proper measures are not provided Provide safety measures in external circuits i e notin the personal computers that ensure safety of the system in any event of an abnormality due to malfunction of the PC or another external factor affecting the PC operation The failure to do so may result in serious accidents Emergency stop circuits interlock circuits limit circuits and similar safety measures must be provided in external control circuits Confirm safety at the destination Slave Unit before changing it or transferring parameters to another node Changing or transferring any of these without confirming safety may result in unexpected equipment operation A Slave Unit may change the output content if it faces a communications failure When you use outputting devices confirm their operation specification on an event of communications failure and take the necessary safety measures 4 Operating Environment Precautions A Caution Do not operate the products in the following locations e Locations subject to direct sunlight e Locations subject to temperatures or humidity outside the range specified in the specifications e Locations subject to condensation as the result of severe changes in temperature e Locations subject to corrosive or flammable gases e Locations subject to dust especially iron dust or salts Locations subject to exposure to water oil or chemicals including
113. center See arrow of the connector cover is aligned with the center of the pressure welding block on the Pliers 4 2 Squeeze the Pliers firmly until the lock on the Connector clicks into place S pecial Tool Pliers Connector cover 4 192 Preparing and Mounting F lat Connectors on the Cables Section E 4 Preparing and Mounting the DCN5 BR4 Flat Connector Plugs 4 3 Confirm that the cable is properly pressure welded as shown below It must be locked S Z Names of Flat Connector Plug components 1 Cutting the Cable At the tip of the cable cut the cable perpendicular to the cable length To prevent short circuiting use a sharp cutting tool such as a nipper After cutting confirm that there is no remaining wire coming out O x 2 Mounting the Cable 2 1 Place the Cable on the Connector with its white line facing upward near the cover opening White line Confirm that the line colors at the end of the cable are in the following order starting from Pa the left red white blue and black x lt Cover opening 193 Preparing and Mounting F lat Connectors on the Cables Section E 4 2 2 Hold the Cable to prevent dislocation Close the cover to sandwich the Cable Lb pean 3 Pressure welding the Connector Use a DWT A02 Special Tool Pliers to pressure weld and connect the Cable 3 1 Place the Connector on the p
114. ck the Next Button The following figure shows an example for which drive D is the CD ROM drive Browse for driver software on your computer Search for driver software in this location DA V Include subfolders Let me pick from a list of device drivers on my computer This list will show installed driver software compatible with the device and all driver software in the same category as the device 18 Installing the Drivers Section 2 2 6 The following dialog box will be displayed Click Install this driver 7 software anyway to start installation ix amp Windows can t verify the publisher of this driver software Don t install this driver software You should check your manufacturer s website for updated driver software for your device _ gt Install this driver software anyway i Only install driver software obtained from your manufacturer s website or disc Unsigned software from other sources may harm your computer or steal information V See details The installation will start Installing driver software oe 19 Installing the Drivers Section 2 2 8 A completion message see the following figure is displayed after the installation process is completed Click the Close Button to complete driver installation eS Ww I Update Driver Software CompoNet PCI Master Windows has successfully updated your driver softwa
115. cription Communications Itis used to control start and stop of communications cycles Cycle Control Access to I O Data Through asynchronous access it merely reads or writes the O data area in the shared memory Through synchronous access it uses an interrupt controls the access rights and reads or writes the I O data area Access to Status When it accesses to the Basic status group it merely reads or writes the basic status area in the shared memory To obtain the basic status synchronous with the I O data the access right is controlled at the same time when the I O data area is accessed When it accesses to the Detailed status group it uses the command Request to Read the Detailed Status Group to read it Access to Event It is to transmit and receive Explicit messages Area It uses interrupts as access procedure 59 Communications Cycle C ontrol Procedures Section 5 2 5 2 2 Controls from the Initial Process to Communications Cycle 60 Operation procedure Confirm the PCI resources Access to Shared Memory Get the base address of shared memory space and the Interrupt line from the Board ID and the contents in the PCI configuration register Set the interrupt mask Write 0x0000 in the Interrupt Mask 0x0004 of Board gt PC Interrupt to prevent any interrupts Confirm the INIEND or Notification of Initial process ends Poll the Interrupt Cause 0x0005 in Board gt PC I
116. ction i power supply When comolyi 3 R 1 ner 1 plying with UL standards install a current limit 4 A 1 device to limit the current between the external power supply and the Unit to 4 A or less for the communications power supply Master Board Round Cable Il Flat Cable or Flat Cable II erminating Slave Units with network power supply Slave Unit 201 Wiring for Power Supply Section E 5 Using a Repeater Unit Communications power supply connector Pg Overcurrent Ld protection a a current limit 4 A 1 1 Communications power supply Master Board When complying with UL standards install a device to limit the current between the external power supply and the Unit to 4 A or less for the communications power supply Downstream port communications power supply connector eae meeeenee eani Shared communications H current limit 4 A i and 1 0 power supply Round Cable Il Flat Cable or Flat Cable II fF 3 Terminating Resistor Branch f Pope pe p e p Port 1 Upstream Jines Sub trunk Port 2 Downstream w Jo To To line v o o To w o vojo alojo Hn ujo m i Slave Unit Slave Unit Slave Unit Trunk line Round Cable ll Flat Cable or Flat Cable Il 2 1 Overcurrent a Sharad icati t protection area communications 1 1 current limit 4A _and I O power supply supply Round Cable Il Flat Cable
117. d set has been notified Confirm the CMD flag of the Interrupt Request Confirmation register 0x0003 changes to 0 Wait for a command acknowledgment Confirm the CMD_ACK flag of the Interrupt Request Indication register 0x0005 changes to 1 Confirm it by an interrupt or by polling Read the command response SET_PC_WDT The command response SET_PC_WDT form CompoNet Master Board is stored in Command BD PC 0x3210 Read it Release the command acknowledgment interrupt Set the CMD_ACK flag of the Interrupt Clear register 0x0006 to 1 to clear the interrupt cause Refreshing the PC Watchdog Timer The PC Watchdog Timer must be refreshed within the certain time interval set in the Timer Operation procedure Set the PC_WDT interrupt Access to Shared Memory Set the PC_WDT flag of the Interrupt Trigger register 0x0002 to 1 Confirm that the interrupt completes This step can be skipped without causing a problem Confirm the PC_WDT flag of interrupt Request Confirmation register 0x0003 changes to 0 5 6 Board Hardware Error Notification The Board Hardware Error Notification is intended to notify the user application of an operation stop due to a hardware error on the CompoNet Master Board Initial process Set the Interrupt Mask Step Operation procedure Access to Shared Memory Set the BD_WDT of the Interrupt Mask register 0x0004 tol Set it
118. de address 2 anda Repeater Unit with node address 2 You cannot use two Word Input Slave Units with node address 1 You cannot use a Bit Input Slave Unit with node address 2 anda Bit Mixed Slave Unit with node address 2 Refer to 3 1 1 Settings Required for Starting the Communications Cycle and 3 2 1 Allocation of I O Data for information on allocated areas Example 1 Example 2 E 2 Wiring Formations A CompoNet Network can employ either of two possible wiring formations A 64 point Word Output Slave Unit with node address 2 uses node addresses 2 3 4 and 5 for the Word OUT Slave Unit node address type Therefore you cannot use node addresses 2 to 5 for any other Word Output Slave Unit at the same time A Word Mixed Slave Unit with 32 inputs and 32 outputs with node address 0 uses node addresses 0 and 1 for the Word MIX Slave Unit the Word OUT Slave Unit node address types Therefore you cannot use node addresses 0 or 1 for any other Word Input or Mixed Slave Unit at the same time E 2 1 Trunk Line Branch Line Formation In this wiring formation the trunk line is differentiated from the branch lines There are restrictions on the number of branches and the number of connecting Units Master Board Slave Unit Trunk line Terminating Resistor Branch line Branch line Slave Unit Slave Unit 165 Wiring F ormations E 2 2 Unrestricted Wiring Formation In this formation there is no
119. distinction between the trunk line and branch lines There are no wiring restrictions as long as the total cable length per segment does not exceed 200 m There is also no limit in the number of branches Master Board Slave Unit Slave Unit 166 Repeater Unit Slave Unit Slave Unit f Section E 2 Terminating Resistor Terminating Resistor Slave Unit The formation to be used is determined automatically by the type of cable used and the required data rate Cable type Data rate 4 Mbps 3 Mbps 1 5 Mbps 93 75 kbps Round cable Trunk Branch Trunk Branch Trunk Branch Trunk Branch Round cable II Trunk Branch Trunk Branch Trunk Branch Unrestricted Flat Cable and Il Trunk lines cannot have T branch connections when the data rate is 4 Mbps Only multidrop connections can be used The following table shows the conditions and restrictions for each formation Item Wiring formation Trunk line branch line formation Unrestricted wiring formation Master Board location End of network Anywhere in network not necessarily at the end Slave Units connectable to a single branched line Maximum number of 1 or 3 depending on the cable type and data rate No restrictions location Terminating Resistor On the opposite end of the trunk line or a sub trunk line from the Master Board ora Repeater Unit respectivel
120. ditionally there may be severe property damage WARNING Indicates a potentially hazardous situation which if not avoided could result in death or serious injury Additionally there may be severe property damage A Caution Indicates a potentially hazardous situation which if not avoided may result in minor or moderate injury or property damage OMRON Product References All OMRON products are capitalized in this manual The word Unit is also capitalized when it refers to an OMRON product regardless of whether or not it appears in the proper name of the product The abbreviation Ch which appears in some parts of this manual and on some displays and on OMRON products has two meanings which must be distinguished in context In one case it means word as an aggregation of data and is abbreviated Wd In other case it refers to a physical input or output channel In latter case when a model has two input channels they are referred to as Input 1 and Input 2 The abbreviation PC refers to personal computers while PLC means Programmable Controller Visual Aids The following headings appear in the left column of the manual to help you locate different types of information Precautions for Safe Use Supplementary comments on what to do or avoid doing to use the product safely Precautions for Correct Use Supplementary comments on what to do or avoid doing to prevent failure to operate or undesirable effect on product p
121. e I O communications has already stopped e The communications cycles have stopped Command Specifications Command STOP_CYCLE Purpose Code Argument Response code Remarks Command REQUEST STATUS Purpose Code Argument Response code Remarks Section B 4 Stop the communications cycles 0x1003 None Set 0x0000 Normal end 0x0000 At an error Status change not allowed 0x8101 e To resume the communications the CompoNet Master Board must be reset e These are the possible causes of having a situation in which no status change is allowed e The communications cycles have stopped Issue a request to read the Detailed status group 0x2001 Reading status 1 WORD data items Set the bits to read to 1 ON and the bits not to read to 0 OFF Flag name Duplication error flag Registration error Registered Slave not participated flag Registration error Non registered Slave participating flag Repeater configuration error EO Slave Unit Master status Error counter Network power state Participating Slave Unit identity table Repeater configuration information Alarm information Error log Reserved area Set 0 OFF Registration table example Reserved area Set 0 OFF Normal end 0x0000 e The Detailed status in the shared memory that has been requested to read is reflected at the time a normal end is the response 145 Command
122. e Unit Bit MIX Slave Unit Bit OUT Slave Unit Repeater Unit Node address Hex 0x0601 Illegal Interrupt Cause A hardware error occurs Indefinite value 0x0602 72 Memory Error Cause An error occurs in access to EEPROM Read error Write error 0x06 Error log 0x09 Identity information Yes No for Error log only A 2 A 3 A 5 A 6 A 7 A 8 APPENDIX A API Function Reference FUunCHOn Dr chat TE S Ae atone hd eae G3 ed oh Ae RE 74 A l 1 Board Control API Functions 0 000 eee e eee 74 A 1 2 Communications Control API Functions 74 A 1 3 Status Access API Functions 000 ce eee eee eens 74 A 1 4 TO Data Access API Functions 0 000 cece eee eens 75 A 1 5 Explicit Messaging API Functions 0 75 A 1 6 PC Watchdog Timer API Functions 0 75 A 1 7 Board Request Notification API Functions 75 Board Control API c posre he r e ee ee 76 A 2 1 CPNT_Open Open Board 0 00 rrna rn eee 76 A 2 2 CPNT_Close Close Board 0 0000 c eee eee 76 A 2 3 CPNT_Reset Reset Board 002 cece eee eee 76 A 2 4 CPNT_IsExistBoard Check Board Existence 71 Communications Control API 0 0 0 0 00 00 ccc eee eee 77 A 3 1 CPNT_StartCycle Start Communications Cycles 77 A 3 2 CPNT_StartCycleEx
123. e green white and red 1 Cutting the Cable required only when the cable is extended or when a Terminating Resistor is connected At the tip of the cable cut the cable perpendicular to the cable length To prevent short circuiting use a sharp cutting tool such as a nipper After cutting confirm that there is no remaining wire coming out O X SS 2 Setting the Cable Stopper required only when the cable is extended or when a Terminating Resistor is connected For extending cables or connecting a Terminating Resistor the cable can end within the Connector Thus place a cable stopper in advance Close the cover of the Flat Connector Socket Secure the hook Press down the cable stopper until it clicks into place and does not return Cable stopper 185 Preparing and Mounting F lat Connectors on the Cables Section E 4 3 Mounting the Cable For T branch connections 3 1 Confirm that the cable colors match the cable label colors Place the cable in the cover For Cable extension or connecting a Terminating Resistor Insert the tip of the cable all the way into the cable stopper in the cover JE a P i Location of cable stopper 4 Attaching the Housing Reconfirm that the cable wire colors match the cable label colors Temporarily secure the housing to the cover
124. ee Appendix E 5 for detailed wiring procedures for a communications power supply E 4 Preparing and Mounting Flat Connectors on the Cables 180 This section explains the procedures to prepare Flat Connectors and to mount them on the cables The procedures are required for the following purposes For connecting round cable II to a Terminating Resistor For connecting Flat Cable or Il to a Unit and For branching or extending the line Preparing and M ounting F lat Connectors on the Cables Section E 4 Precautions for Correct Use eA Flat Connector cannot be reworked once it has been prepared eHold the connector body to plug in or pull out the connector eAfter connecting the connector pull it lightly to confirm the connection is Required Flat Connectors secured Name Appearance Model Purpose Flat Connector Socket DCN4 TR4 For the following purposes itis used in combination with a DCN4 BR4 Flat Connector Plug eTo extend the trunk line or a sub trunk line eTo have a T branch connection on the trunk line or a sub trunk line and to make a branch line eTo have a T branch connection on a branch line and make a sub branch line It is used alone for the following purpose eTo connect a DCN4 TM4 Terminating Resistor to the trunk line ora sub trunk line Flat Connector Plug DCN4 BR4 For following purposes itis used in combination with a DCN4 TR4 Flat Connector S
125. eee eee eee 2 1 1 Confirmation 0004 2 1 2 Setting the Board ID 2 1 3 Mounting the Board on the PC Installing the Drivers 0 02 00 e eee ee Connecting the Communications Cables 2 3 1 Connecting a Round Cable 2 3 2 Connecting a Flat Cable Connecting the Communications Power Supply Cables SECTION 2 Installation and Setup 12 12 12 13 14 21 21 23 25 11 Mounting a Board Section 2 1 2 1 Mounting a Board 2 1 1 Confirmation Before you mount a CompoNet Master Board on the PC confirm the following Note CompoNet Master Boards support Windows Plug amp Play Description Unused PCI bus slot Be sure that the PC you will use has an unused PCI bus slot Duplication of CompoNet Master Boards use IRQs IRQ are automatically interrupt requests allocated for PCI bus In a PC which mounts an ISA bus an IRQ IRQ for PCI bus may overlaps with that for ISA bus This prevents the PC from starting up To avoid this take one of the following measures and be sure the IRQ for PCI bus does not overlap with the IRQ that has been used by the ISA bus Call up the BIOS menu of the PC and set it not to use Plug amp Play Call up the BIOS menu of the PC and on the setting step for IRQ allocation for the PCI bus set the IRQ that has been used by ISA bus to Reserved to prevent automatic allocation Note
126. eee xvii 5 Application Precautions s eesi nse a e a a E a A C E E E E eae xvii 6 Conformance with the EC Directives 0 0 cece ereere XX SECTION 1 Outline of CompoNet and CompoNet Master Board 1 1 1 Overview of the CompoNet Network 0 0 00 eee ee eee 2 1 2 Overview of the CompoNet Master Board 0 00 eee eee eee 3 1 3 Component Name and Function 0 0 cee eee eee 4 124 TED Indications se ois eens teen ETE TE bate Sa GER baa Ee Sakae eae 6 1 5 Network Construction Procedure 2 0 0 00 cece cece eens 7 1 6 Board Preparation Procedure 0 0 eee eee eens 8 127 Specificatonsnas un oron eee at thane eeu E R thar beneharnete E EEA 9 SECTION 2 Installation and Setup cccceceeeccceeeeee Il 2 Mountinga Boards ha orrae senn eon ep aena e E E E E E pE PARE E PE E E A os 12 2 2 Installing the Drivers a EE E E E GHA a A E E RS 14 2 3 Connecting the Communications Cables 0 0 0 ee eee eee 21 2 4 Connecting the Communications Power Supply Cables 04 25 SECTION 3 PUNCHONS 0656 bvindaw tated Sule ta Kaas ewww aa A 3 1 Settings at Communications Cycle Startup 0 00 eee eee eee 28 3 2 Access to VO Data s oiek paa a aaah sits ea ees 30 33 SAUS wets Sou iw GR Ge ew Aa eee aie ee E AA E A eet 35 3 4 Explicit Messages s 2 kv ene accede ede A Saad de eae aed Shas da aw ores a ig 37 3 5 Detailed Settings at Communications Cycle S
127. erformance Note Notes in the document refer to equivalent content to the Precautions for Correct Use or to Precautions for Safe Use It also indicates information of particular interest for efficient and convenient operation of the product 1 2 3 1 Indicates lists of one sort or another such as procedures checklists etc OMRON 2009 All rights reserved No part of this publication may be reproduced stored in a retrieval system or transmitted in any form or by any means mechanical electronic photocopying recording or otherwise without the prior written permission of OMRON No patent liability is assumed with respect to the use of the information contained herein Moreover because OMRON is constantly striving to improve its high quality products the information contained in this manual is subject to change without notice Every precaution has been taken in the preparation of this manual Nevertheless OMRON assumes no responsibility for errors or omissions Neither is any liability assumed for damages resulting from the use of the information contained in this publication TABLE OF CONTENTS PRECAUTIONS ssisaiss eeeciieecc ecriwieeide ek OXY Intended Audience sc 2 eek SARS ARTES OG ARE WRN Saou ee hogs xvi 2 General Precautions ieoi iea n a E E eds anya ee thang oth E OEE xvi 3 Safety Preca ti nS rasni o besni noe Oba sees E Sadek poe AEE E EEEE xvii 4 Operating Environment Precautions 0 0 00 cece eee eee
128. es the byte size after the node address a node address with with attributes 8 to 542 attributes Node address with Read Write It stores the node address with attributes of the attributes responder See the previous pages for the node address with attributes ServiceC ode Read Write This specifies the service code defined by an explicit message Settable range 0x0000 to 0x00F F ServiceData Read Write It stores the data defined by the service code Effective byte size 0 to 532 End code MRES SRES End code hex Description MRES SRES Normal end The destination has not participated The counterpart station does not respond the monitoring timer has timed out The command exceeds the maximum length The command is shorter than the minimum length 134 Shared M emory Area Specifications Section B 3 End code hex Description MRES SRES The command is not in the specified format Header error The response exceeds the maximum length The destination is in the state that cannot receive an explicit message CompoNet Master Board is in initialization process The service cannot be executed Itis in a state where no event can be used B 3 9 Setting Area in Detail Software Table Data Rate This is the area in which to set the information to be notified to the CompoNet Master Board when a command OPEN_SYSTEM or OPEN_SYSTEMEX is is
129. ess BIT IN 7 BIT IN 6 BIT IN 5 BIT IN 4 BIT IN 3 BIT IN 2 BIT IN 1 BIT IN 0 BIT IN 15 BIT IN 14 BIT IN 13 BIT IN 12 BIT IN 11 BIT IN 10 BIT IN 9 BIT IN 8 BIT IN 23 BIT IN 22 BIT IN 21 BIT IN 20 BIT IN 19 BIT IN 18 BIT IN 17 BIT IN 16 BIT IN 31 BIT IN 30 BIT IN 29 BIT IN 28 BIT IN 27 BIT IN 26 BIT IN 25 BIT IN 24 BIT IN 39 BIT IN 38 BIT IN 37 BIT IN 36 BIT IN 35 BIT IN 34 BIT IN 33 BIT IN 32 BIT IN 47 BIT IN 46 BIT IN 45 BIT IN 44 BIT IN 43 BIT IN 42 BIT IN 41 BIT IN 40 BIT IN 55 BIT IN 54 BIT IN 53 BIT IN 52 BIT IN 51 BIT IN 50 BIT IN 49 BIT IN 48 BIT IN 63 BIT IN 62 BIT IN 61 BIT IN 60 BIT IN 59 BIT IN 58 BIT IN 57 BIT IN 56 BIT IN 71 BIT IN 70 BIT IN 69 BIT IN 68 BIT IN 67 BIT IN 66 BIT IN 65 BIT IN 64 BIT IN 79 BIT IN 78 BIT IN 77 BIT IN 76 BIT IN 75 BIT IN 74 BIT IN 73 BIT IN 72 BIT IN 87 BIT IN 86 BIT IN 85 BIT IN 84 BIT IN 83 BIT IN 82 BIT IN 81 BIT IN 80 BIT IN 95 BIT IN 94 BIT IN 93 BIT IN 92 BIT IN 91 BIT IN 90 BIT IN 89 BIT IN 88 BIT IN 103 BIT IN 102 BIT IN 101 BIT IN 100 BIT IN 99 BIT IN 98 BIT IN 97 BIT IN 96 BIT IN 111 BIT IN 110 BIT IN 109 BIT IN 108 BIT IN 107 BIT IN 106 BIT IN 105 BIT IN 104 BIT IN 119 BIT IN 118 BIT IN 117 BITIN 116 BITIN 115 BIT IN 114 BIT IN 11
130. f Word OUT Slave Unit with node address 1 OUT 2 OUT data of Word OUT Slave Unit with node address 2 area i 62 OUT data of Word OUT Slave Unit with node address 62 63 OUT data of Word OUT Slave Unit with node address 63 A single allocation area shall never be occupied by plural nodes However as long as the same words are not allocated to more than one Unit the Input Area and Output Area with numerically the same node address can be allocated to Slave Units with different node addresses For example OUT1 can be allocated to the 16 outputs for a Word OUT Slave Unit set for node address 1 and IN1can be allocated to the 16 inputs for a Word IN Slave Unit set for node address 1 Access to I O Data Section 3 2 Precautions for Correct Use When a Slave Unit occupies plural allocation areas other Slave Units which have the occupied node addresses cannot participate Example When a Slave Unit with node address 0 exists in a network and it occupies 2 words in the IN area and 4 words in OUT area Word IN Slave Units whose node addresses are 0 or 1 and Word OUT Slave Units whose node addresses are 0 1 2 or 3 cannot participate Image of the above Precautions for Correct Use Allocation area for IN Data of a Word IN Slave Unit Word address Bit 15 IN data of Word MIX Slave Unit with node address 0 IN area Allocation area for OUT Data of a Word OUT Slave Unit Word address Bit 15 Bi
131. f the network parameter CPNT_SOFTWARETABLE_ERROR 0x20000007 Format error in software tables Check the content of the software table CPNT_RATE_ERROR 0x20000008 Format error in data rate Check the set value as the data rate CPNT_REGTABLE_ERROR 0x20000009 Format error in registration tables Check the content of the registration table CPNT_LOGICALPARAM_ERROR 0x2000000A Format error in logical error checking items Check the set value in the checking items CPNT_NETPARAM_ERROR 0x2000000B Format error in network parameters Check the set value for the network parameters CPNT_SLAVEPARAM_ERROR 0x2000000C Format error in Slave Unit parameters Check the set value for the Slave Unit parameters CPNT_EXNETPARAM_ERROR 0x2000000D Illegal parameter is set Check the set parameters CPNT_INVALID_BOARDID 0x2000000E Illegal Board ID is specified Set the Board ID with a number between 0 and 9 CPNT_NOT_SYSTEM 0x2000000F Communications cycle stops This API cannot be used unless the communications cycles are in operation CPNT_SYSTEM 0x20000010 Communications cycle is in operation This API cannot be used unless the communications cycle stops CPNT_BOARD_RAMERROR 0x20000011 RAM checking found an error Replace the Board CPNT_BOARD_ERROR 0x20000012 Hardware error is found Replace the Board CPNT_ENABLELIST_ERROR 0x20000013 Invalid EnableList is specified by the function CPNT_StartCycleE x Check the set value for EnableList CPNT_STATE_ERROR 0x200
132. for communications data The BS and BS can be used only for round cable II or Flat Cable or Il They output the communications power from the power supply connected to the communications power supply connector Note By attaching an Open Type Connector for Unit connection the communications connector can be converted to a terminal block type Component Name and Function Section 1 3 1 3 2 3G8F8 CRM21 for CompactPCI Bus LED Indicators MS and NS Board ID Switch They indicate the Module Status MS This is used to set the board ID It is set as a and Network Status NS that are decimal number The number must not defined in the CompoNet protocol overlap the IDs for other CompoNet Master Boards mounted on the same personal computer B 5 5 6 Communications power supply connector This is used to connect a 24 VDC power supply when either round cable II or Flat Cable or II is used The communications power is supplied through this connector and the round cable II Flat Cable or Flat Cable II to the Slave Units and Repeater Units on the trunk line Note Do not connect anything to this connector when a round cable is used Communications connector This is used to connect to the communications cable The terminals BS and
133. g out O X E 2 Mounting the Cable Confirm that the cable colors match the cable label colors shown on the Flat Connector Plug Insert the cable tip all the way into cover until the line shown below Through the transparent cover confirm it is surely inserted all the way into the back Preparing and M ounting F lat Connectors on the Cables Section E 4 3 Pressure Welding the Connector Use a DWT AO1 Special Tool Pliers to pressure weld and connect the cable 3 1 Align the center see arrow of the connector cover with the center of the pressure welding block on the DWT A01 Pliers S pecial Tool Pliers Connector cover 3 2 Squeeze the Pliers firmly until the lock on the Connector clicks into place Note eDo not pressure weld the connector cover at the edge eDo not use the back of pressure welding block to pressure weld the connector cover eSet the Connector in the correct orientation 3 3 Confirm that itis properly pressure welded as shown below No space here ah T T 189 Preparing and Mounting F lat Connectors on the Cables Section E 4 E 4 3 Preparing Connectors for Flat Cables Il Preparing and Names of Flat Connector Socket components Mounting the DCN5 TR4 Flat Connector Sockets 1 Cutting the Cable required only when the cable is extended or when a Terminating Resistor is connected At the tip of the cable cut the cable perpendicular to the cable length To preve
134. ge 75 Board Control API Section A 2 A 2 Board Control API A 2 1 CPNT_Open Open Board Purpose Open the Board that has the specified ID and enable it for use Call Format HANDLE CPNT_Open WORD Boardld Argument Type Parameter Direction Description WORD Boardld ID of Board to be opened Specified range 0x0 to 0x9 0 to 9 Returned value When the function succeeds the open device handle is returned If it fails or when no Board with the specified ID exists INVALID_ HANDLE_VALUE is returned Then use the function GetLastError to obtain detailed error content Remarks e The Board must be opened first in order to be used e One Board can be opened only by one application or one process e The Board ID is the value set by the rotary switch on the Board A 2 2 CPNT_Close Close Board Purpose Close the Board which has the specified ID and disable it to use Call Format BOOL CPNT_Close HANDLE Handle Argument Type Parameter Direction Description HANDLE Handle Device handle obtained with the function CPNT_Open Returned value It returns TRUE when the function succeeds It returns FALSE when an error occurs The error details can be obtained with the function GetLastE rror Remarks With this function the Board is reset at the same time when the device handle is closed All data that has been set is cleared Be sure to complete any processes required for the application prior to this funct
135. he function CPNT_Open 90 I O Data Access API Section A 5 Returned value It returns TRUE when the function succeeds It returns FALSE when an error occurs The error details can be obtained with the function GetLastE rror Remarks To execute this function the I O communications must be running A 5 3 CPNT_GetinData Get IN Data from Word IN Slave Unit Purpose Read the IN data from Word IN Slave Units Call Format BOOL CPNT_GetInData HANDLE Handle WORD IN WORD WordOffset WORD WordSize Argument Parameter Direction Description Handle Device handle obtained with the function CPNT_Open IN Specify the pointer to store the IN data Requires the area equivalent to Word size 128 bytes max WordOffset Specify the Word offset for the IN Slave Unit from which the IN data is started to read Settable range 0 to 63 WordSize Specify the Word size of the IN data to read Observe the condition for the set value WordOffset WordSize lt 64 Settable range 1 to 64 Returned value It returns TRUE when the function succeeds It returns FALSE when an error occurs The error details can be obtained with the function GetLasteE rror Remarks To execute this function the I O communications must be running See Appendix B 3 5 for the content of IN data A 5 4 CPNT_GetBitinData Get Bit IN Data from Bit IN Slave Unit Purpose Read the Bit IN data from Bit IN Slave Units Call Format BOOL CPNT_GetBitInData
136. he API functions and access the I O data Read the Basic status group and confirm that the expected Slave Unit is participating and that no communications error has occurred Open Board CPNT_Open Y Start communications cycles CPNT_StartCycle Initial processing y Loop Start y Read Basic status group CPNT_GetStatus An error on the basic status group Error solving NO Write OUT data CPNT_SetOutData CPNT_SetBitOutData Y Read IN data CPNT_GetlnData CPNT_GetBitInData y Loop End a y Stop communications cycles CPNT_StopCycle y Close Board CPNT_Close Data Inputs and Outputs AM End processing Precautions for Correct Use The program must be made to implement accesses to I O data in a single thread If multiple threads access I O data processes may collide and the functions may fail 42 Access to I O Data Section 4 1 4 1 2 1 O Data Access Synchronous with CompoNet Communications This is the procedure by which to use the API functions and access the I O data while maintaining node by node synchronicity 2 Open Board p CPNT_Open y kc Start communications cycles T CPNT_StartCycle Loop Start y Read Basic status group CPNT_GetStatus An error on the basic status group Error solving
137. he Master Board This information is used to understand the network configuration That is you can understand under which Repeater a target Slave Unit or a Repeater Unit is connected 128 Shared M emory Area Specifications Alarm Information Section B 3 Data format Offset address 0x1C9C Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 Repeater configuration info of Word IN MIX Slave Unit 0 to Repeater configuration info of Word IN MIX Slave Unit 63 Repeater configuration info of Word OUT Slave Unit 0 to Repeater configuration info of Word OUT Slave Unit 63 Repeater configuration info of BitIN MIX Slave Unit 0 to Repeater configuration info of Bit IN MIX Slave Unit 127 Repeater configuration info of Bit OUT Slave Unit 0 to Repeater configuration info of it Bit OUT Slave Unit 127 Repeater configuration info of Repeater Unit 0 to Repeater configuration info of Repeater Unit 63 Detailed format Name Access Description Repeater Bits 0 to 7 Node address of immediate configuration upstream Repeater Unit from a Slave information or another Repeater Unit Bits 8 to 15 Number of levels by Repeater Units This is the list of alarm information notified by Slave Units Data format Offset address 0x201C Bit 15 14 13 12 Alarm information of Word IN MIX Slave Unit 3 11 10 09 08 Alarminformation
138. he OUT Slave Unit to which the OUT data is written Settable range 0 to 63 WORD WordSize IN Specify the Word size of the OUT data to write O bserve the condition for the set value WordOffset WordSize lt 64 Settable range 1 to 64 It returns TRUE when the function succeeds It returns FALSE when an error occurs The error details can be obtained with the function GetLastE rror See Appendix B 3 5 for the content of OUT data Explicit Messaging API Section A 6 A 5 6 CPNT_SetBitOutData Set Bit OUT Data to Bit OUT Slave Unit Purpose Set the Bit Out data in Bit OUT Slave Units Call Format BOOL CPNT_SetBitO utData HANDLE Handle WORD BitOUT WORD WordOffset WORD WordSize Argument Parameter Direction Description Handle Device handle obtained with the function CPNT_Open BitOUT Set the Bit OUT data Set the data equivalent to Word size WordOffset Specify the Word offset for the Bit OUT Slave Unit to which the OUT data is written Settable range 0 to 15 WordSize Specify the Word size of the Bit OUT data to write O bserve the condition for the set value WordOffset WordSize lt 16 Settable range 1 to 16 Returned value It returns TRUE when the function succeeds It returns FALSE when an error occurs The error details can be obtained with the function GetLastE rror Remarks See Appendix B 3 5 for the content of Bit OUT data A 6 Explicit Messaging API A 6 1 CPNT_SendExplicit
139. he causes to be confirmed by the polling into 0 EJ Operation procedure Access to Shared Memory Confirm the interrupt In the Interrupt Cause Indication register 0x0005 causes periodically confirm the interrupt cause periodically Clear the interrupt In the Interrupt Clear register 0x0006 set the flag causes after confirming corresponding to the generated interrupt causes into 1 them and clear the causes 57 Communications Cycle C ontrol Procedures Section 5 2 5 1 4 Command Access Control Operation procedure Access to Shared Memory Set the command Set the command to notify to the CompoNet Master Board in the Command Area PC BD 0x3200 Notify the command set In the Interrupt Trigger register 0x0002 set the CMD flag to 1 Confirm that the In the Interrupt Request Confirmation register 0x0003 command sethas been __ confirm that the CMD flag turns to 0 notified Wait for a command In the Interrupt R equest Indication register 0x0005 acknowledgment ACK confirm that the CMD_ACK flag turns to 1 Confirm it by an interrupt or by polling Read the command In the Command Area BD PC 0x3210 the response command response from the CompoNet Master Board is stored Read the response Release the command In the Interrupt Clear register 0x0006 set the acknowledgment CMD_ACK flag into 1 and clear the interrupt cause interrupt 5 2 Communications Cycle Con
140. he explicit message ServiceDataS ize Set the Service data size in bytes of the explicit message Specified range 0x0000 to 0x0214 0 to 532 ServiceData 532 Set the Service data of the explicit message A 6 2 CPNT_PeekE xplicit Check Response Received Purpose Check Explicit message responses Call Format BOOL CPNT_PeekE xplicit HANDLE Handle Argument Type Parameter Direction Description HANDLE Handle Device handle obtained with the function CPNT_Open Returned value It returns TRUE when there is an explicit message response It returns FALSE when an error occurs or when there is no response The error details can be obtained with the function GetLasteE rror Remarks The function CPNT_SendE xplicit must be executed prior to this function A 6 3 CPNT_RegReceiveE xplicitNotifyMessage Register Notice of Explicit Response Message Received Purpose Register the Windows message which notifies that an Explicit response message is received 94 Explicit Messaging API Call Format Argument Returned value Remarks Section A 6 BOOL CPNT_RegReceiveE xplicitN otifyM essage HANDLE Handle DWORD Threadid HWND hWnd UINT Msg Parameter Direction Description Handle Device handle obtained with the function CPNT_Open Threadld ID of the thread to notify No setting NULL hWNd Window handle to notify No setting NULL Msg Notification message Event ID
141. hen the Logical error checking item function is enabled The command OPEN_SYSTEMEX is used to enable the function as well as the checking items Data format Offset address 0x390A Offset Bit Word 35 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 Logical error checking items Detailed format of Logical error checking items Access Description Not checked Checked Not checked Checked Not checked Checked Not checked Checked Vendor Code Device Type Product Code Major Revision o lereo lereojero r o Reserved area The table is set when the Registration Table function is enabled The command OPEN_SYSTEMEX is used to make the setting See Section 3 5 1 for information on the table function Shared M emory Area Specifications Section B 3 Data format Offset address 0x390C Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 Function setting Time to wait for a registered Slave Unit to participate Reserved 0x00 Checking items for the R egistration Table I O size information of Word IN MIX Slave Unit 0 to I O size information of Word IN MIX Slave Unit 63 I O size information of Word OUT Slave Unit 0 to I O size information of Word OUT Slave Unit 63 I O size information of Bit IN MIX Slave Unit 0 to I O size information of BitIN MIX Slave Unit 127 I O size information of Bit OUT Slave Unit 0 to
142. ial Number of Word OUT Slave Unit 0 Bit16 31 to Serial Number of Word OUT Slave Unit 63 Bit0 15 Serial Number of Word OUT Slave Unit 63 Bit16 31 Serial Number of Bit IN MIX Slave Unit 0 Bit0 15 Serial Number of Bit IN MIX Slave Unit 0 Bit16 31 to Serial Number of Bit IN MIX Slave Unit 127 Bit0 15 Serial Number of Bit IN MIX Slave Unit 127 Bit16 31 Serial Number of Bit OUT Slave Unit 0 Bit0 15 Serial Number of Bit OUT Slave Unit 0 Bit16 31 to Serial Number of Bit OUT Slave Unit 127 Bit0 15 Serial Number of Bit OUT Slave Unit 127 Bit16 31 Serial Number of Repeater Unit 0 Bit0 15 Serial Number of Repeater Unit 0 Bit16 31 to Serial Number of Repeater Unit 63 Bit0 15 Serial Number of Repeater Unit 63 Bitl6 31 Detailed format Access Description 10 information I O size VendorC ode Vendor code DeviceType Device type ProductCode Product code MajorR evision Major revision SerialNumber Serial number 127 Shared M emory Area Specifications Section B 3 I O size information format Description Number of IN Set the number of IN points of Slave Units channels points Set the Bits 0 to 5 to 0 OFF when the number of IN points is zero 00000 2 points 00001 4 points 00010 8 points 00011 16 points 00100 32 points 00101 48 points 00110 64 points 00111 80
143. imers xiv i Performance Data Data presented in Omron Company websites catalogs and other materials is provided as a guide for the user in determining suitability and does not constitute a warranty It may represent the result of Omron s test conditions and the user must correlate it to actual application requirements Actual per formance is subject to the Omron s Warranty and Limitations of Liability i Change in Specifications Product specifications and accessories may be changed at any time based on improvements and other reasons It is our practice to change part numbers when published ratings or features are changed or when significant construction changes are made However some specifications of the Product may be changed without any notice When in doubt special part numbers may be assigned to fix or establish key specifications for your application Please consult with your Omron s represen tative at any time to confirm actual specifications of purchased Product i Errors and Omissions Information presented by Omron Companies has been checked and is believed to be accurate how ever no responsibility is assumed for clerical typographical or proofreading errors or omissions PRECAUTIONS This section provides general precautions for use of the CompoNet Master Boards The information contained in this section is important for the safe reliable application of the CompoNet Master Board You must read this section and
144. in a control panel 2 DC power supply unit as well as DC power connected to I O Units must have reinforced insulation or double insulation 3 Compliance to the EC Directives means conformity to the Emission Standards EN 61000 6 4 Radiated emission characteristics 10 m regulations may vary however depending on the configuration of the control panel used the compatibility with other devices connected to the control panel the effects of wiring and other conditions The user must confirm that the overall machine or equipment complies with the EC Directives SECTION 1 Outline of CompoNet and CompoNet Master Board 1 1 Overview of the CompoNet Network 0 00 0 00 0002 2 1 2 Overview of the CompoNet Master Board 000 3 1 3 Component Name and Function 0 00 c eee eee eee 4 1 3 1 3G8F7 CRM21 for PCI Bus 0 0 00 000000008 4 1 3 2 3G8F8 CRM21 for CompactPCI Bus 20 5 1 4 LED Indication iss seisan heen CSAS el 34 wad ee E ee URES 6 1 5 Network Construction Procedure 0 0 0 0 e eee eee eee 7 1 6 Board Preparation Procedure 0 0 0 0 eee eee ee eee 8 1 7 Specifications sc seeen S45 GNA ws BAe Baas ety Seles 9 1 7 1 General Specifications 0 0 0 9 1 7 2 Development Environment 00 02 0002 00008 9 1 7 3 Dimensions ranman ea n here bheec E NEE EE ENS 10 Overview of the CompoNet Network Section 1 1 1
145. ints 10010 256 points others prohibited IN setting enabled 0 Disabled IN number setting flag 1 Enabled IN number setting Reserved area Set 0 OFF Number of OUT Set the number of OUT channels for Slave Units channels Set the Bits 8 to 13 to 0 OFF when the number of OUT channels is zero 00000 2 points 00001 4 points 00010 8 points 00011 16 points 00100 32 points 00101 48 points 00110 64 points 00111 80 points 01000 96 points 01001 112 points 01010 128 points 01011 144 points 01100 160 points 01101 176 points 01110 192 points 01111 208 points 10000 224 points 10001 240 points 10010 256 points others prohibited Out setting enabled 0 Disabled OUT number setting flag 1 Enabled OUT number setting Reserved area Don t care Slave UnitEnabled Enable the relevant flag when a Slave Unit is flag registered 0 The All setting is invalid No Slave Unit is registered 1 The All setting is valid The Slave is registered Network Parameter This is the network setting for the CompoNet Master Board Normally no setting is required It is set when the network parameter is enabled The command is used to make the setting Data format Offset address 0x4692 Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 Event function enabling Monitoring time of event addressed to Slave Units Reser
146. ion A 2 3 CPNT_Reset Reset Board Purpose Rest the Board of the specified device handle Call Format BOOL CPNT_Reset HANDLE Handle Argument Type Parameter Direction Description HANDLE Handle Device handle obtained with the function CPNT_Open 76 Communications Control API Section A 3 Returned value It returns TRUE when the function succeeds It returns FALSE when an error occurs The error details can be obtained with the function GetLastE rror Remarks e With this function the Board is reset All data that has been set is cleared Handle is not closed e With this function the communications cycles have stopped To resume the communications execute the function CPNT StartCycle or CPNT_StartCycleE x A 2 4 CPNT_IsExistBoard Check Board Existence Purpose Check if the Board which has the specified Board ID is installed Call Format BOOL CPNT_IsExistBoard WORD Boardld Argument Type Parameter Direction Descripton WORD Boardld ID of Board whose existence is checked Specified range 0x0 to 0x9 0 to 9 Returned value It returns TRUE when the Board of specified ID exists It returns FALSE when an error occurs when no Board with specified ID exists or when the Board of specified ID is opened by other process The error details can be obtained with the function GetLastE rror Remarks e This function is used to check the IDs of mounted Boards e The Board ID is set by the rotary switch
147. ions Word Inputs OMbps S1 60 x 3 38 us 0 202 ms S2 is the correction coefficient that is used when more than 64 Bit IN Slave Units are connected S2 Number of connected Bit IN Slave Units x Correction coefficient for each Bit IN Slave Unit Slave Unit 4 0Mbps 93 75kbps Type BitIN Slave 7 47 us 0 40 us 4 46 us I S2 Calculation Example Conditions Data rate Bitinputs 3 0Mbps 120 Units S2 120 x 0 4 us 0 048 ms Data rate TNetin 0 010 ms x Number of Bit Input Slave Units S2 0 011 ms x Number of Word Input Slave Units S1 0 020 ms x Number of Bit Input Slave Units S2 0 022 ms x Number of Word Input Slave Units S1 0 044 ms x Number of Bit Input Slave Units S2 0 051 ms x Number of Word Input Slave Units S1 0 531 ms x Number of Bit Input Slave Units 0 657 ms x Number of Word Input Slave Units 30 Mbit 93 75 Kbit 0 013ms K 0 018ms K 0 035ms K 0 567 ms K K Number of Word Output Slave Units connected x additional time per Word Output Slave Unit Number of Bit Output Slave Units 7 8 x additional time per 8 Bit Output Slave Units Additional time per Word Output Slave Unit Additional time per 8 Bit Output 151 Remote I O Communications Performance Section C 1 Tc rmin_ input Processing Time at Master Board Tcrmout Output Processing Time at Master B oard TReiacc Processing Time to Release an Access Right Tp
148. iptions in Section 4 and 5 Read the text document Readme txt in the CD to understand the sample program in detail The program is created to explain the API and the shared memory access It is not intended for operational use It must be used as a reference because there is no guarantee of proper operation 154 E 1 E 2 E 3 E 5 CompoNet Network Specifications 00 0 0 ee eee eee E 1 1 Communications Specifications 00000005 E 1 2 Communications Cables 0 0 00 c cee ees E 1 3 APPENDIX E Installation and Setup 156 156 157 Maximum Length and Maximum Number of Connectable Slave Units for Each Type of Cable 161 Wiring Formations E 2 1 Trunk Line Branch Line Formation 00000 00s E 2 2 Unrestricted Wiring Formation 000 Wiring for a CompoNet Network 0 00 eee eee eee Wiring Round Cablel 0 00 0 eee ee eee Wiring Round Cable II 0 0 0 eee eee Wiring Flat Cable lorID 0 0 eee ee eee E 3 1 E 3 2 E 3 3 E 3 4 E 3 5 E 3 6 E 3 7 E 3 8 E 3 9 Connectors Connecting Nodes Branching Communications Cables 0 Extending Communications Cables 0 00 Connection Locations for Terminating Resistors Connection Locations for Communications Power Supplies Preparing and Mounting Flat Connectors on the
149. irming it Set the SND_ACK flag of the Interrupt Clear register 0x0006 to 1 to clear the interrupt cause Wait for an E xplicit message response This is the case when the BD_SNDis confirmed by polling Confirm by polling the BD_SND Interrupt cause of the Interrupt Cause Indication register 0x0005 changes to 1 periodically Clear the Interrupt cause after confirming it Set the BD_SND flag of the Interrupt Clear register 0x0006 to 1 to clear the interrupt cause Notify the reception completed Set the BD_SND_ACK flag of the Interrupt Trigger register 0x0002 to 1 Confirm the BD_SND_ACK has been completely processed on this Board Confirm by polling the BD_SND_ACK flag of Interrupt Request Confirmation register 0x0003 changes to 0 Read the Explicit message response Explicit message response is stored in the Event areas BD PC 0x3600 Read it 5 3 Setting the Time Information CompoNet Master Board can save the error occurrence time at the same time when it saves the error log in its internal nonvolatile memory To keep the correct time the time information must be notified from the user application to the Board periodically The time information can be written at any time Implementing the Reset Request To use the Reset Service of Identity Objects a logic must be programmed so that the user application can reset the Board after the CompoNet Master Board reques
150. ite Definition of a node address with attributes Word Slave Unit 0 to Repeater 0 to 0x3F It specifies the data defined by a service code Number of effective bytes 0 to 532 bytes Master Board Fixed to 0 0x3F Bit Slave Unit 0 to 0x7F 133 Shared M emory Area Specifications Section B 3 Event Area BD PC This is the area in which to store an explicit response message for the explicit request message Data format Offset address 0x3600 Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 0 Byte length size after Offset 1 2 to 542 1 Reserved 0x00 SID 42 0x02 0x28 3 SRES MRES 4 Low of Byte length size after a node High of Byte length size after a node address with attributes address with attributes 5 Low of Node address with attributes High of Node address with attributes 6 Low of ServiceCode High of ServiceCode 7 ServiceData 1 ServiceData 0 to to to 4272 ServiceData 531 ServiceData 530 Detailed format Access Description SID Read Write It stores the SID set by an explicit request message MRES Read Write It stores the corresponding error code when an End code error occurs Stores 0x00 during the normal State SRES Read Write It stores the corresponding detailed errorcode End code when an error occurs Stores 0x00 during the normal state Byte length size after Read Write Itstor
151. itional time per Word Output Slave Unit Number of Word Input Slave Units x additional time per Word Input Slave Unit Number of Bit Output Slave Units x additional time per Bit Output Slave Unit Number of Bit Input Slave Units x additional time per Bit Input Slave Unit Additional Time per Unit by Slave Unit Type Data rate Slave Unit Type Word Output Unit 4 0 Mbit s 4 06 us 3 0 Mbit s 5 37 us 1 5 Mbit s 10 88 us 93 75 kbit s 170 93 us Word Input Unit 11 81 us 22 56 is 51 53 us 657 50 us Bit Output Unit 0 57 us 0 74 us 1 42 us 21 25 us Bit Input Unit G Calculation Example 10 25 us 20 64 is 44 37 us 531 09 us 149 Remote I O Communications Performance Section C 1 150 Conditions Word Outputs Word inputs 4 0 Mbit s 16 Units 32 Units 32 Units G 16 x 4 06 us 32 x 11 81 us 64 x 0 57 us 32 x 10 25 us 0 81ms S1 is the correction coefficient that is used when more than 32 Word IN Slave Units are connected S1 Number of connected Word IN Slave Units x Correction coefficient for each Word IN Slave Unit Slave Unit 4 0Mbps 93 75kbps Type Woran sve 338us ose boe i Remote I O Communications Performance Section C 1 Tnetin Time Allotted for IN Frames in Communications Cycle Time Tnetout Time Allotted for OUT Frame in Communications Cycle Time S1 Calculation Example Condit
152. l line current is within the allowable current range of the cable The following measures can be considered to keep the voltage drop within the allowable range in a network with a single power supply e Increase the thickness of the cables Increase the output voltage of the power supply e Shorten the wiring e Locate the power supply in the middle of the network Slave Unit Slave Unit Slave Unit Slave Unit Load Load Load esign the wiring so that AF AE et ee It X 24 VDC Power stable power voltage is Supply WW A MAW supplied to the end load gt gt I 24 VDC Power Ifa stable power voltage cannot be supplied to the end load Supply place the power supply in the middle of the network Supplying I O Power from Multiple Sources Supplying the I O power from multiple sources instead of a single source is effective to reduce the line current the voltage drop and the cable size This method should be considered to ensure system safety at power errors Power supply a Power supply 24 VDC 24 VDC 208 Wiring for Power Supply Section E 5 E 5 7 Other Precautions Power Supply Errors A system can be stopped entirely if a power supply error occurs When you want to avoid the full system stop to assure the system security you may consider providing several power supplies in a network and group the Slave Units with individual power supplies Cost
153. lave Unit may be a source of noise Even when the communications power is supplied collectively to all Slave Units a separate I O power supply must be provided so that noise does not affect the network E 5 5 Precautions in Supplying Power to Slave Units Attentions should be paid for allowable currents of cables and Connectors as well as for voltage drop and for capacity and location of power supplies when the communications power or the I O power is supplied 205 Wiring for Power Supply Allowable Current Restrictions limit for the communications cables and connectors Flat Connector Plug 5 A max E Flat Connector Socket 5 A max Terminating Resistor Master Board Slave Unit current consumption 13 Slave Unit current consumption l2 Slave Unit current consumption hh Slave Unit man current consumption In Allowable Currents for Cables The communications cable must have a larger capacity than the total current consumed by all Slave Units Section E 5 The total current consumption of all Slave Units must not exceed the allowable Allowable current on the communications cable gt l4 lo Ig In The current for the part a on the above diagram Allowable Currents for Connectors The communications power supply connectors on the Master Board and Repeater Units as well as Flat Connector Sockets Flat Connector Plugs and Multidr
154. lave Unit stream port communi cations power supply Communications connector on the Re power supply peater Unit 203 Wiring for Power Supply Section E 5 Using Round Cable with Round Cable Il Flat Cable I or Flat Cable Il 204 e Provide a separate power supply each for the Master Board trunk line for the upstream and for the downstream trunk line of a Repeater Unit Use separate power supplies for the trunk line and the sub trunk line downstream from a Re peater Unit Round Cable II Flat Cable or Flat Cable Il Trunk line or sub trunk line PE E EAE IONE EORPA sees Repeater UNE bunuda l Communications power supply Sub trunk Round Cable Il Flat Cable line or Flat Cable II The same power supply cannot be used for the trunk line and the sub trunk line downstream from a Repeater Unit Communications power supply Trunk line or Round Cable II Flat Cable sub trunk line or Flat Cable II Repeater Unit Sub trunk Round Cable Ill Flat Cable line or Flat Cable Il If these precautions are not observed transmission may deteriorate and communications error may occur In a CompoNet network round cable can be installed under the same Master Board Unit as round cables II Flat Cables or Il are used as long as they are separated by a Repeater Unit Wiring for Power Supply Section E 5 Master Board
155. les Section 3 describes the functions of the CompoNet Master Boards There are basic and special functions Section 4 describes the operations by API functions to control the Board in the Windows operation systems Section 5 describes the operations by shared memory access to control the Board in operation systems other than Windows Section 6 describes the troubleshooting It is recommended to read them first to prevent any errors from occurring Appendix A describes the AP I functions Appendix B describes the shared memory interfaces Appendix C explains the communications performance Appendix D describes the sample program provided in the product package Appendix E describes the construction of a CompoNet Network It includes the network specifications the wiring procedures and the preparation of Flat Connectors xi Related Manuals W485 3G8F7 CRM21 this manual 3G8F8 CRM21 CompoNet Master Board for PCI Bus and for CompactPCI Bus Operation Manual Description Provides the specifications of the CompoNet Master Board W457 CRT1 CR1 series CompoNet Slave Units and Repeater Unit Operation Manual Provides the specifications of CompoNet Slave Units and Repeater Units W456 CS1W CRM21 CJ 1WCRM21 WARNING CS CJ series CompoNet Master Units Operation Manual Provides an overview of CompoNet Networks communications specifications wiring methods and CompoNet Master Unit fu
156. me data 89 I O Data Access API Section A 5 Returned value It returns TRUE when the function succeeds It returns FALSE when an error occurs The error details can be obtained with the function GetLastE rror Remarks To execute this function the communications cycles must be running CPNT_DATETIME structure Parameter Description Second Settable range 00 to 59 Minute Settable range 00 to 59 Hour Settable range 00 to 23 Date Settable range 01 to 31 Month Settable range 01 to 12 Year The lower two digits in the Western calendar Settable range 00 to 99 A 5 I O Data Access API A 5 1 CPNT_GetAccessTolO Get Access to I O Purpose Get the access right to I O Call Format BOOL CPNT_GetAccessTolO HANDLE Handle Argument ype Parameter Direction Description Device handle obtained with the function CPNT_Open Returned value It returns TRUE when the function succeeds It returns FALSE when an error occurs The error details can be obtained with the function GetLastE rror Remarks To execute this function the I O communications must be running It takes a maximum of one communications cycle to exit this function A 5 2 CPNT_ReleaseAccessTolO Release Access to I O Purpose Release the access right to I O Call Format BOOL CPNT_ReleaseAccessTolO HANDLE Handle Argument Type Parameter Direction Description HANDLE Handle Device handle obtained with t
157. munications stop due to communications error occurrence flag i e the Bit 02 of the StateStatus in the Basic status group comes on To recover the communications the CompoNet Master Board must be reset This function is enabled by the function CPNT_StartCycleEx in the Windows operation systems and by the command OPEN_SYSTEMEX for shared memory access 3 5 3 1 0 Communications Manual Startup Function This function is used to manually start up the I O communications Slave Units can participate even while the I O communications stop The function is used when one wants to start exchanging I O data explicitly from the application The function is enabled by the function CPNT_StartCycleEx in the Windows operation systems and by the command OPEN_SYSTEMEX for shared memory access 39 Detailed Settings at Communications Cycle Startup Section 3 5 The I O communications can be started by the function CPNT_ChangeToRunState in the Windows operation systems and by the command START_IOCYCLE for shared memory access 3 5 4 IN Data Zero Clear Due to Communications Error Function This function is used to clear to zero all the input data or IN data of any IN or MIX Slave Units that have communications error When the IN Data Zero Clear Due to Communications Error mode is not selected the input data or IN data of a Slave Unit that has a communications error is retained The function can restrain triggered behaviors due to a communication
158. n of an interrupt by a certain cause The cause that is 1 in the Interrupt Mask register will generate an interrupt The applicable flag in the Interrupt Mask register must be set to 0 when you want to confirm the cause not by an interrupt but by polling When an interrupt occurs the interrupt cause can be confirmed in the Interrupt Cause Indication register The cause of the interrupt can be cleared by setting the relevant flag in the Interrupt Clear register to 1 When all interrupt causes are cleared the interrupt itself is cleared Flags of Interrupt from Board to PC Description CMD_ACK The acknowledgment made by the Board against the command request made by the PC to the Board BD_SND Used when the Board notifies the PC of an event transmission SND_ACK The acknowledgment made by the Board against the event transmission request made by PC to the Board REQ_RES Used when the Board requests the PC of a Board reset Reserved INIEND The Board notifies the PC that the firmware initialization has been completed The completion cause is stored in the Initialization completion notification of the shared memory area The acknowledgment made by the Board against the cyclic area access right request made by the PC to the Board a notification that the access right has been successfully obtained The interrupt cause that is generated when the Board WDT times out REQ_ACC_ACK Interrupt Mask
159. n the specified ambient storage temperature e Circuit boards have sharp edges such as leads of electric components Do not touch the parts where such components are mounted or the backs of circuit boards by hand e Use only the specified communications cables e Do not extend connection distances beyond the ranges given in the specifications e Observe the given precautions when wiring the communications cable e Separate the communications cables from the power lines or high tension lines Do not bend the communications cables past their natural bending radius Do not pull on the communications cables Do not place heavy objects atop the communications cables e Always lay communications cables inside ducts e Take appropriate and sufficient countermeasures when installing systems in the following locations e Locations subject to static electricity or other forms of noise e Locations subject to strong electromagnetic fields e Locations subject to possible exposure to radioactivity Locations close to power supplies Do not use the computer s standby or sleep function while you are using the CompoNet Master Board If the computer s standby or sleep function is activated during CompoNet Master Board usage communications may be broken or other unexpected errors may occur e The CompoNet Master Board does not support computer standby or sleep functions Do not use the computer s standby or sleep function while you are
160. nating Resistors Type Connector type Terminal block type Name Terminating Resistor Model DCN4 TM4 DCN5 TM4 DRS1 T Resistance 1210 121Q 121Q Power rating 1 4W 1 4 W 1 4 W Accuracy 1 max 1 max Power handling 0 01 uF 0 01uF Capacity Applicable cable Round cable Il Flat Flat Cable II Round cable Cable Round Cable II Precautions for Correct Use If you connect a Terminal Block type Terminating Resistor to a Round Cable Il insulate the ends of the BS and BS power lines Connecting A Terminating Resistor can be connected using one of three different Terminating Resistors methods as shown below Method 1 Connecta Flat Connector Socket to the trunk line of a sub trunk line cable Mounta Terminating Resistor onto the Connector Socket When the line is Flat Cable When the line is Flat Cable II Socket Terminating Resistor mamng Method 2 Attach a Multidrop Connector on the communications connector or an upstream port provided on a Slave Unit or Repeater Unit Connect a Flat Connector Plug to which the trunk lines or sub trunk line is connected to the Multidrop Connector Also connect a Terminating Resistor to the Multidrop Connector 177 Wiring for a CompoN et Network Section E 3 When the line is Flat Cable DCN4 TM4 Terminating Resistor Flat Connector Plug Ua DCN4 MD4 Multidrop Connector B Communications connector of a Slave or Repe
161. nctions The failure to read and understand the information provided in this manual may result in personal injury or death damage to the product or product failure Please read each section in its entirety and be sure you understand the information provided in the section and related sections before attempting any of the procedures or operations xii Terms and Conditions Agreement Read and understand this Manual Please read and understand this catalog before purchasing the products Please consult your OMRON representative if you have any questions or comments Warranty Limitations of Liability i Warranties Exclusive Warranty Omron s exclusive warranty is that the Products will be free from defects in materials and work manship for a period of twelve months from the date of sale by Omron or such other period expressed in writing by Omron Omron disclaims all other warranties express or implied Limitations OMRON MAKES NO WARRANTY OR REPRESENTATION EXPRESS OR IMPLIED ABOUT NON INFRINGEMENT MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE OF THE PRODUCTS BUYER ACKNOWLEDGES THAT IT ALONE HAS DETERMINED THAT THE PRODUCTS WILL SUITABLY MEET THE REQUIREMENTS OF THEIR INTENDED USE Omron further disclaims all warranties and responsibility of any type for claims or expenses based on infringement by the Products or otherwise of any intellectual property right Buyer Remedy Omron s sole obligation hereu
162. nder shall be at Omron s election to i replace in the form origi nally shipped with Buyer responsible for labor charges for removal or replacement thereof the non complying Product ii repair the non complying Product or iii repay or credit Buyer an amount equal to the purchase price of the non complying Product provided that in no event shall Omron be responsible for warranty repair indemnity or any other claims or expenses regarding the Products unless Omron s analysis confirms that the Products were properly handled stored installed and maintained and not subject to contamination abuse misuse or inappropriate modifi cation Return of any Products by Buyer must be approved in writing by Omron before shipment Omron Companies shall not be liable for the suitability or unsuitability or the results from the use of Products in combination with any electrical or electronic components circuits system assem blies or any other materials or substances or environments Any advice recommendations or information given orally or in writing are not to be construed as an amendment or addition to the above warranty See http www omron com global or contact your Omron representative for published information i Limitation on Liability Etc OMRON COMPANIES SHALL NOT BE LIABLE FOR SPECIAL INDIRECT INCIDENTAL OR CON SEQUENTIAL DAMAGES LOSS OF PROFITS OR PRODUCTION OR COMMERCIAL LOSS IN ANY WAY CONNECTED WITH THE PRODUCTS WHETHER SUCH
163. nfirmation register 0x0003 changes to 0 Wait fora command acknowledgment Confirm the CMD_ACK flag of the Interrupt Request Indication register 0x0005 changes to 1 Check it by an interrupt or polling Read a command response REQUEST _ RESETSTATUS The REQUEST_RESETSTATUS command response from the CompoNet Master Board is stored in the Command area BD PC 0x3210 Read it Release the command acknowledgment interrupt 5 2 5 Control of Event Access Follow these steps to transmit and or receive Explicit messages 62 Operation procedure Setan Explicit message Set the CMD_ACK flag of the Interrupt Clear register 0x0006 to 1 to clear the interrupt cause Access to Shared Memory Store an Explicit message in the Event area PC BD 0x3300 Notify an event transmission Set the SND flag of the Interrupt Trigger register 0x0002 to 1 Confirm the SND completes the process for this Board Confirm by polling the SND flag of the Interrupt Request Confirmation register 0x0003 changes to 0 Operation procedure Wait the notice to tell event capturing completes This is the case when the SND_ACK is confirmed by polling Section 5 3 Setting the Time Information Access to Shared Memory Wait that the SND_ACK Interrupt cause of the Interrupt Cause Indication register 0x0005 changes to 1 periodically Clear the Interrupt cause after conf
164. ng Flag Detailed format Name Access ____Description d Registration error ON A Registration error Registered Slave not Registered Slave participating occurs not participating flag OFF Normal This is the Registration error Non registered Slave participating flag for each node Data format Offset address 0x0368 Flags for Word IN MIX Slave Units These values are the corresponding part of each node address 0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 1 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 2 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 3 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 Flags for Word OUT Slave Units These values are the corresponding part of each node address 4 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 5 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 6 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 7 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 Flags for Bit IN MIX Slave Units These values are the corresponding part of each node address 8 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 9 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 10 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 11 63 62 61
165. nge 0 to 128 Description Set it when the Registration table function is enabled WORD LogicalCheck Set it when the Logical error checking item flag is enabled CPNT_NET P ARAM NetParam Set it when the Network parameter function flag is enabled CPNT_SLAVE _PARAM SlaveParam Set it when the Slave Unit parameter function flag is enabled Section A 3 Communications Control API LogicalC heck Bit Flag Description 0 0 OFF Not Checked VendorCode DeviceType ProductCode MajorR evision 1 ON Checked Reserved area Always set 0 OFF CPNT_NET_PARAM structure Parameter EventEnable Description 0x0000 Event enabled 0x0001 Event disabled When the event function is disabled the communications cycle becomes shorter E xplicit messages however cannot be sent to Slave Units or Repeater Units SlaveEveTime This is the time to monitor events forwarded to Slave Units Settable range 0 to 65535 ms 0 is to select the default 2000ms CPNT_SLAVE_PARAM structure Parameter PollTimeOut Description This is the time for the Slave Unit to monitor the event The Master Board notifies the Slave Unit when a Slave Unit participates Settable range 0 to 65535 s 0 is to select the default 2s loTimeO ut This is the time for the Slave Unit to time out the communications The Master Board notifies
166. ns cycle and changing the communications state i e starting or stopping the I O cycles API function Description CPNT_StartCycle To start the communications cycle CPNT_StartC ycleE x To start the communications cycle in detailed setting CPNT_StopCycle To stop the communications cycle CPNT_ChangeToR unS tate To make a transit to RUN state Or to start the I O cycle CPNT_ChangeToldleS tate To make a transit to IDLE state Or to stop the I O cycle A 1 3 Status Access API Functions 74 They confirm the version of CompoNet Master Board and the driver and to read status and to write time information API function Description CPNT_GetBoardVersion To get the board version CPNT_GetDriverVersion To get the driver version CPNT_GetStatus To read the Basic status group CPNT_GetStatusE x To read the Detailed status group CPNT_ResetS tatusE x To clear the Detailed status group CPNT_SetDateTime To write the time information Function List I O Data Access API Functions These access the I O data Section A 1 API function Description CPNT_GetAccessTolO To getan access right to I O data CPNT_ReleaseAccessTolO To release the access right to I O data CPNT_GetinData To read the IN data from IN Slave Unit CPNT_GetBitInData To read the Bit IN data from BitIN Slave Unit CPNT_SetOutData To set the OUT data in OUT Slave Unit CPNT_SetBitOutData A 1
167. nt short circuiting use a sharp cutting tool such as a nipper After cutting confirm that there is no remaining wire coming out O X 2 Setting the Cable Stopper required only when the cable is extended or when a Terminating Resistor is connected For extending cables or connecting a Terminating Resistor the cable can end within the Connector Thus place a cable stopper in advance Put the cable in the cover Position the cable so that the cable tip touches the stopper 190 Preparing and Mounting F lat Connectors on the Cables Section E 4 3 Mounting the Cable 3 1 Place the cable on the Connector with its white line facing upward near the cover opening Top view Connector Center of the Cable connector White line Cover opening For T branch connections White line 191 Preparing and Mounting F lat Connectors on the Cables Section E 4 3 2 Hold the cable to prevent dislocation Close the cover to sandwich the cable Note When it is for cable extension or for connecting a Terminating Resistor be sure to insert the cable tip all the way to the cable stopper in the cover Be sertain the cable won t come out 4 Pressure Welding the Connector Use a DWT A02 Special Tool Pliers to pressure weld and connector the cable 4 1 Place the Connector on the pressure welding block of the DWT A02 Pliers Align the Connector side so that it faces the datum shown in the picture below shaded faces Thus the
168. nterrupt and wait until INIEND is 1 After it is confirmed write 1 in INIEND of the Interrupt Clear register 0x0006 to clear the interrupt cause Confirm the initializing ends Confirm 0x1703 is stored in the Initialization end notification 0x0010 of the shared memory If 0x0905 RAM error is stored there may be a hardware error Confirm the operation mode Check the Running program ID 0x0012 in the shared memory and confirm the OxFFFF OPEN SYSTEM command wait state is stored If any other value is stored reset the Board by the Board reset 0x0001 and redo from the Step 1 Set the software table and the data rate Set the Software Table 0x3900 and the Data Rate 0x3908 in the setting area group Make the detailed settings when the OPEN_SYSTEMEX is used When the OPEN_SYSTEMExX is used set the Logic Error Check Item 0x390A the Registration Table 0x390C the Network Parameter 0x4692 and or the Slave Unit Parameter 0x469C if any of them is required Set the initial value for OUT data if necessary To set the initial values in the OUT data write them in the OUT Data 0x0200 and the Bit OUT Data 0x0280 When no initial values are set 0 is assigned as the initial value Set the commands for OPEN SYSTEM or OPEN _SYSTEMEX Set the command OPEN_SYSTEM or OPEN_SYSTEMEX in the Command area PC gt BD 0x3200 Notify the command is set Set the CMD flag
169. oard that has a mastering function to control inputs and outputs for the Slave Units connected to the CompoNet network The Board is either compatible with PCI bus Model 3G8F 7 CRM21 or with CompactPCI bus Model 3G8F8 CRM21 Here are the main features of the CompoNet Master Board In the Windows operation systems all functions on the CompoNet Master Board can be accessed by API functions In operation systems other than Windows the CompoNet Master Board is used via access to shared memory The number of connectable nodes can be set differently for each Word Input Slave Units Word Output Slave Units Bit Input Slave Units and Bit Output Slave Units This function is used to pre register the node addresses and models of Slave Units that are to participate in the network and to check whether a Slave Unit that is actually participating is registered or not If the Slave Unit is not registered itis not allowed to participate The time can also be set to monitor duration from power on until a registered Slave Unit actually participates Remote I O communications can be stopped until all registered Slave Units participate in the network but it can be started only with all Slave Units participating The latter function is called the All Registered Slave Participation Standby Mode When the Registration Table function is used the communications cycle is optimized and fastened in accordance with the information in the table Both synchr
170. ocket eTo extend the trunk line or a sub trunk line eTo have a T branch connection on the trunk line or a sub trunk line and to make a branch line To have a T branch connection on a branch line and make a sub branch line It is used alone for the following purposes To connect a communications cable to the Slave Unit eTo connect a communications cable to a DCN4 MD4 Multidrop Connector and obtain a multidrop connection Flat Connector Il Socket DCN5 TR4 For the following purposes it is used in combination with the DCN5 BR4 Flat Connector II Plug eTo extend the trunk line or a sub trunk line To have a T branch connection on the trunk line or a sub trunk line and to make a branch line To have a T branch connection on a branch line and to make a sub branch line It is used alone for the following purpose eTo connect a DCN5 TM4 Terminating Resistor to the trunk line ora sub trunk line Flat Connector Il Plug DCN5 BR4 For the following purposes it is used in combination with the DCN5 TR4 Flat Connector II Socket eTo extend the trunk line or a sub trunk line eTo have a T branch connection on the trunk line or a sub trunk line and to make a branch line To have a T branch connection on a branch line and to make a sub branch line It is used alone for the following purpose eTo connect a communications cable to the Slave Unit 181 Preparing and Mounting F la
171. ode address 10 11 12 and 13 e Every 2 points of a Bit IN Slave Unit or a Bit OUT Slave Unit occupies 1 node For example when a Bit Slave Unit has 4 points and is allocated with the node address 5 it actually occupies the node address 5 and 6 Image of the number of nodes occupied by the above Slave Units Allocation of Word IN Slave Units Node address 0 Used by Word IN Slave Unit with node address 0 N 1 Used by Word IN Slave Unit with node address 1 2 SAZ SNY The number 3 Used by Word IN Slave Unit with node address 3 of occupied 4 Used by Word IN Slave Unit with node address 4 nodes is 8 5 6 7 Vv Allocation of Word OUT Slave Units Node address 0 Unused The number 1 Used by Word OUT Slave Unit node address 1 of occupied 2 nodes is 3 Allocation of Bit IN Slave Units Node address 0 Used by Bit IN Slave Unit node address 0 The number 1 of occupied 2 Used by Bit IN Slave Unit node address 2 nodes is 3 Allocation of Bit OUT Slave Units Node address 0 Used by Bit OUT Slave Unit node address 0 The number 1to 8 Unused of occupied 9 Used by Bit OUT Slave Unit node address 9 nodes is 10 29 Access to I O Data Section 3 2 3 2 Access to I O Data 3 2 1 Allocation of I O Data Allocation for Word IN Slave Units and Word OUT Slave Units 30 Note In the CompoNet network system the I O data is allocated separately for Word IN Sl
172. of Slave Unit supplied from the Master Board or a Repeater Unit Communications power voltage 24 VDC 10 Connection forms When either Round cable II or Flat Cable or Il is used at data rate setting in 93 75 kbps No restriction Other cables or other data rates Trunk line branch line formation Connections for Slave Units and Repeater Units T branch or multidrop connections 156 1 Slave Units that are pre connected with cables are not usable at this data rate Because the data rate does not support T branch connection which is the only possible connection for the Slave Units with pre connected cables Round cable I round cable Il Flat Cable and Flat Cable II are all different in cable type When two or more of them are to be wired in a network a Repeater Unit must be used to separate the cable for the trunk line and for a sub trunk line Use the node address of the Word Input Slave Unit for a Word Mixed Slave Unit Use the node address of the Bit Input Slave Unit for a Bit Mixed Slave Unit 2 3 CompoNet Network Specifications E 1 2 Communications Cables Section E 1 Cable types The following four types of cables can be used in a CompoNet network round cable I round cable II Flat Cable and Flat Cable Il Do not use other types of cables Cable type Major applications With or without a c
173. of Word IN MIX Slave Unit 2 07 06 05 04 Alarminformation of Word IN MIX Slave Unit 1 03 02 01 00 Alarminformation of Word IN MIX Slave Unit 0 to to to to Alarminformation of Word IN MIX Slave Unit 63 Alarminformation of Word IN MIX Slave Unit 62 Alarminformation of Word IN MIX Slave Unit 61 Alarminformation of Word IN MIX Slave Unit 60 Alarminformation of Word OUT Slave Unit 3 Alarminformation of Word OUT Slave Unit 2 Alarminformation of Word OUT Slave Unit 1 Alarminformation of Word OUT Slave Unit 0 to to to to Alarminformation of Word OUT Slave Unit 63 Alarminformation of Word OUT Slave Unit 62 Alarminformation of Word OUT Slave Unit 61 Alarminformation of Word OUT Slave Unit 60 129 Shared M emory Area Specifications Error Log 130 Bit Section B 3 15 14 13 12 Alarminformation of Bit IN MIX Slave Unit 3 11 10 09 08 Alarminformation of Bit IN MIX Slave Unit 2 07 06 05 04 Alarminformation of Bit IN MIX Slave Unit 1 03 02 01 00 Alarm information of Bit IN MIX Slave Unit 0 to to to to Alarminformation of Bit IN MIX Slave Unit 127 Alarminformation of Bit IN MIX Slave Unit 126 Alarminformation of Bit IN MIX Slave Unit 125 Alarm information of Bit IN MIX Slave Unit 124 Alarminformation of Bit OUT Sla
174. ommunications BDH BDL BS BS I Power cere signal signal positive side of negative side of high low communications communications power supply power supply Round cable Wiring eTo wire with a commercially without white black None None 2 conductor between the available cable or blue cable Master eTo supply power separately Board anda from the communications Repeater power Unit Not to use a Bit Slave Unit Round cable II pA a To wire with a commercially with white green red black 4 conductor Repeater available cable or blue cable Units and a To use the communications downstream cable to supply the Slave Unit communications power to all Slave Units Flat Cable eTo use the communications with white blue red black standard cable to supply the cable communications power to all Slave Units eTo use one or more Bit Slave Units Flat Cable Il eTo use the communications with white blue red black sheathed cable to supply the cable communications power to all Slave Units eTo use one or more Bit Slave Units eTo use in an environment conforming to IP 54 splash proof and drip proof Recommended CompoNet Cables Model number Specification Available from TCN F1 Flat Cable SWCC Showa Cable Systems Co Ltd TCN F2 Flat Cable II TCN R1 Round Cable FCN R1 Round Cable Fuji Electric Wire Industries Co Ltd FCN R2 Round Cable II KOMP F Flat Cable Kuramo Electric Co Ltd KOMP F Il Fl
175. on to RUN Purpose Make a transition to RUN state Call Format BOOL CPNT_ChangeToRunS tate HANDLE Handle Argument Type Parameter Direction Description HANDLE Handle Device handle obtained with the function CPNT_Open Returned value It returns TRUE when the function succeeds It returns FALSE when an error occurs The error details can be obtained with the function GetLastE rror Remarks This is used to start the I O cycle when it has stopped The communications cycles must be running when this function is executed The function cannot be executed while the I O cycles are running A 3 5 CPNT_ChangeToldleState Transition to IDLE Purpose Make a transition to IDLE state Call Format BOOL CPNT_ChangeToldleState HANDLE Handle Argument Type Parameter Direction Description Device handle obtained with the function CPNT_Open Returned value It returns TRUE when the function succeeds It returns FALSE when an error occurs The error details can be obtained with the function GetLastE rror Remarks This is used to stop the I O cycles while it is running The communications cycles must be running when this function is executed The function cannot be executed while the I O cycle stops 84 Status Access API Section A 4 A 4 Status Access API A 4 1 CPNT_GetBoardVersion Get Board Version Purpose Get the Board version Call Format BOOL CPNT_GetBoardVersion HANDLE Handle BOARD_VERSION_INFO Ve
176. onous and asynchronous types of access are supported Synchronous access maintains synchronicity for each node while asynchronous access does not do that but instead provides faster access In the latter case I O data keeps synchronicity only within the same word e Communications Stop Due to Communications Error function 1 0 Communications Manual Startup mode IN Data Zero Clear Due to Communications Error function Component Name and Function Section 1 3 1 3 Component Name and Function 1 3 1 3G8F7 CRM21 for PCI Bus Board ID Switch This is used to set the board ID It is set as a LED Indicators MS and NS They indicate the Module Status MS decimal number The number must not overlap the IDs for other CompoNet Master Boards mounted on the same personal computer and Network Status NS that are defined in the CompoNet protocol Communications power supply connector This is used to connect a 24 VDC power supply when either round cable II or Flat Cable or Il is used The communications power is supplied through this connector and the round cable II Flat Cable or Flat Cable II to the Slave Units and Repeater Units on the trunk line Note Do not connect anything to this connector when a round cable is used Communications connector This is used to connect to the communications cable The terminals BS and BS are for communications power supply The terminals BDH and BDL are
177. ons Cables Section 2 3 2 3 2 Connecting a Flat Cable A Flat Connector Plug DCN4 BR4 or DCN5 BR4 is used to connect a CompoNet Master Board to the trunk line of either Flat Cable or Il A Flat Connector Plug DCN4 BR4 is used with Flat Cable while a Flat Connector II Plug DCN5 BR4 is used with Flat Cable Il Flat Connector Plug DC N4 BR4 Flat Connector II Plug DCN5 BR4 Align the Plug face with the color seals red white blue and black matching the signal names red and BS on the connector Press the plug until it clicks into place Note To remove the inserted Plug hold the latches on both sides and pull out the Plug l gt fl 23 Connecting the Communications Cables Section 2 3 Precautions for Correct Use ePlease be aware that the Multidrop Connector DCN4 MD4 will protrude into the adjacent panel Provide any measures to prevent it from interfering with the connector and other component of the neighboring PCI Board ein a configuration where plural 3G8F 7 CRM21 CompoNet Master Boards for PCI Bus are used only one side of adjacent two Boards shall use a DCN4 MD4 Multidrop Connector Example of T branch connection of Flat Cable DCN4 BR4 Flat Connector Plug DCN4 TR4 Flat Connector Socket DCN4 TR4 Flat Connector Socket DCN4 TR4 Flat Connector Socket T branc
178. ons Cables There are two methods to branch a trunk line sub trunk line or branch line T branch connection and multidrop connection lt T branch connections gt Using Round Cable The cable wires are connected to the terminals of a relay terminal block or Il with Example Round cable Commercially Available relay Terminal Blocks Relay terminal block Slave Unit Precautions for Correct Use Before connecting the cable wires to the terminal block first attach these M3 crimp terminals to the wires 6 0 mm max DA 6 0 mm max OL 173 Wiring for a CompoN et Network Section E 3 Using FlatCablelorll The communications cables are branched by a Flat Connector Socket and a with Flat Connector Flat Connector Plug Sockets and a Flat Connector Plugs e FlatCable Attach a DCN4 BR4 Flat Connector Plug which is already connected to Flat Cable to a DCN4 TR4 Flat Connector Socket DCN4 TR4 Flat DCN4 BR4 Flat Connector Socket Connector Plug e Flat Cable Il Attach a DCN5 BR4 Flat Connector II Plug already connected to Flat Cable to a DCN5 TR4 Flat Connector II Socket DCN5 TR4 Flat DCN5 BR4F lat Connector Il Socket Connector II Plug Slave Unit Note The same type of cable must be used for the trunk line and branch lines lt Multidrop connections gt Using Round Cable or Il with Open Type SONETOS M3 termin
179. op Connectors have allowable current limits The current flow on the points where these connectors are used must not exceed the limits Connector name Model Allowable current limit Remark Communications power supply connectors on 3G8F7 CRM21 5A UL 4A Round cable or Il Flat Cable 3G8F8 CRM21 l orll CompoNet Master Board Communications CRS1 RPTO01 power supply connectors on Repeater Units Flat Connector DCN4 TR4 Sockets DCN5 TR4 Flat Connector P lugs DCN4 BR 4 DCN5 BR4 Multidrop DCN4 MD4 Connectors Precautions for Correct Use 206 Exceeding the allowable current limit may result in heat or burnout Wiring for Power Supply Section E 5 Voltage Drop Cable Voltage Drop Voltage drop V Current flow A xCable conductor resistance Q m xCable length m x2 If the voltage drop is too large and the power supplied to the farthest Slave Unit exceeds the allowable range a Repeater Unit must be added and the power must be supplied from the Repeater Unit Board Resistor LI L2 L3 Ln poari Slave Unit current consumption In Slave Unit current consumption 13 Slave Unit current consumption 12 Slave Unit current consumption l1 eCalculation Example The allowable power supply voltage range for Slave Units is 14 0 to 26 4 VDC If a 24 VDC power supply is used the allowable voltage drop is 10 V The following fo
180. ors that meet the CompoNet specifications Ask the cable manufacturer for information on which products are applicable to CompoNet Red BS White BDH Green or Blue BD Black BS CompoNet Network Specifications Flat Cable DCA4 4F10 Standard Flat Cable Flat Cable Il DCA5 4F 10 Sheathed Flat C able Section E 1 F Black BS Red BS White BDH Blue BDL Conductor Insulation Application Nominal Allowable No color cross current A section mm 1 Red BS positive side of 0 75 5 max communications power supply 2 White BDH signal high 0 5 3 Blue BDL signal low 0 5 4 Black BS negative side of 0 75 5 max communications power supply Types of Flat Cable other than DCA4 4F10 can be used as long as they conform to the CompoNet specifications Ask the cable manufacturer for information on which products are applicable to CompoNet Red BS White BDH Blue BDL Black BS Conductor Insulation Application Nominal Allowable No color cross current A section mm 1 Red BS positive side of 0 75 5 max communications power supply 2 White BDH signal high 0 5 3 Blue BDL signal low 0 5 4 Black BS negative side of 0 75 5 max communications power supply 159 CompoNet Network Specifications Section E 1 Types of Flat Cable Il other than DCA5 4F10 can be used as long as they conform to the
181. ote I O Communications Performance Section C 1 C 1 Remote I O Communications Performance This section explains the remote I O communications performance of the CompoNet Master Board C 1 1 Input time Slave Unit Master Board This is the input time for the CompoNet network The input time refers to the time until the input signal of an IN Slave Unit is captured by the Master Board application The calculation formula for input time differs according to the type of Slave Unit and the access method Access method Slave Unit Type Input time calculation formula ms Asynchronous Word Input Unit Tin Tnetcye 0 1 Termin T pc coeai Bit Input Unit Tin Tnetin TNetcyc Termin TRelacc Synchronous Word Input Unit Tpc access Bit Input Unit C 1 2 Output time Master Board Slave Unit This is the output time for the CompoNet network The output time refers to the time until the output signal from the Master Board application is outputted to an OUT Slave Unit The calculation formula for input time differs according to the type of Slave Unit and the access method Access method Slave Unit Type Output time calculation formula ms Asynchronous Word Output Unit Tec Tcrmout Tnetcye Tnetout access Bit Output Unit Tout Synchronous Word Output Unit access Tec Tcrmout t Tnetcyc X 2 TNetout Bit Output Unit TRelacc Tout 148 Remote I O Communications Performance
182. our of the 15 error occurrence 31 0 to 23 5 Year of the 15 error occurrence Month of the 15t error occurrence 00 to 99 1 to 12 to to to Shared M emory Area Specifications Section B 3 it 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 64th error code 64th deta iled code Minute of the 64th error occurrence 0 to 59 Second of the 64th error occurrence 0 to 59 Day of the 64th error occurrence 1 to 31 Hour of the 64th error occurrence 1 to 23 Year of the 64th error occurrence 00 to 99 Month of the 64th error occurrence 1 to 12 Detailed format Access Description Number of stored error logs Error code of an error log see Section 6 2 Detailed code of an error log see Section 6 2 Number of error logs Error code Detailed code Second It stores the time at which an error occurred Minute Hour Day Month Year Precautions for Correct Use To keep the time of an error occurrence the error log uses the clock information that is periodically indicated by the user application The time information of error logs will be all 0 if no clock information is given by the user application Based on the information of the Slave Units that have already participated you can create an example of the Registration table Registration Table Example Data format Offset address 0x238C See Ap
183. pating Flags These values are the corresponding part of each node addre 14 9 8 76 30 25 24 23 22 21 46 41 40 39 38 37 62 57 56 55 54 53 Participation flag for Word OUT Slave Units ese values are the corresponding part of each node address 14 12 11 10 9 81 7 6 5 4 3 30 28 27 26 25 24 23 22 21 20 19 46 44 43 42 41 40 39 38 37 36 35 62 60 59 58 57 56 55 54 53 52 51 Bit IN MIX Slave Unit Participating Flags ese values are the corresponding part of each node address 14 12 9 8 7 6 5 4 3 30 28 25 24 23 22 21 20 19 46 44 41 40 39 38 37 36 35 62 60 57 56 55 54 53 52 51 78 76 73 72 71 70 69 68 67 94 92 89 88 87 86 85 84 83 110 109 108 105 104 103 102 101 100 99 126 125 124 123 122 121 120 119 118 117 116 115 Participation flag for BIT OUT Slave Units ese values are the corresponding part of each node address 14 12 9 8 7 6 5 4 3 30 28 25 24 23 22 21 20 19 46 44 41 40 39 38 37 36 35 62 60 57 56 55 54 53 52 51 78 76 73 72 71 70 69 68 67 94 92 89 88 87 86 85 84 83 110 109 108 105 104 103 102 101 100 99 126 125 124 123 122 121 120 119 118 117 116 115 Participation flag for Repeater Units ese values are the corresponding part of each node address 9 8 7
184. pendix B 3 9 for the content of the Registration table 131 Shared M emory Area Specifications Section B 3 B 3 7 CMD Area in Detail CMD area PC BD CMD area BD PC 132 A request command made by the PC to the CompoNet Master Board has the following format The data size is fixed If a command has no argument 0x0000 will be stored Data format Offset address 0x3200 Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 0 CMD 1 Argument Detailed format Access Description SC CMD Read Write Itsets the command code Argument Read Write Itsets the argument A response command made by the CompoNet Master Board to the PC has the following format The data size is fixed Data format Offset address 0x3210 Offset Bit Word 35 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 I 0 CMD 1 Response code Detailed format Name Access Description CMD It returns the respond command Response code For a normal response 0x0000 Upon an error Anything besides 0x0000 defined by command Shared M emory Area Specifications B 3 8 Event Area in Detail Event area PC BD Type 0x0 Master Board 0x1 Normal IN or MIX Slave 0x2 Word OUT Slave 0x4 BitIN or MIX Slave 0x5 Bit OUT Slave 0x7 Repeater Section B 3 This area is used when an explicit request message is sent by the PC to
185. peration is notified to the Board Enabling the PC Watchdog Timer Operation procedure Set the command SET_PC_WDT Access to Shared Memory Set the time out value for CompoNet Master Board in the Command area PC BD 0x3200 to set the command SET_PC_WDT Notify that the command is set Setthe CMD flag of the Interrupt Trigger register 0x0002 tol Confirm that the command set has been notified Confirm the CMD flag of the Interrupt Request Confirmation register 0x0003 changes to 0 Wait for a command acknowledgment Confirm the CMD_ACK flag of the Interrupt Request Indication register 0x0005 changes to 1 Confirm by an interrupt or by polling Read the command response SET_PC_WDT The command response SET_PC_WDT from CompoNet Master Board is stored in Command area BD PC 0x3210 Read it Release the command acknowledgment interrupt Set the CMD_ACK flag in Interrupt Clear register 0x0006 to 1 to clear the interrupt cause Board Hardware Error Notification Section 5 6 Disabling the PC Watchdog Timer Operation procedure Set the command SET_PC_WDT Access to Shared Memory Set the time out value for CompoNet Master Board in the Command area PC BD 0x3200 to 0 This is used to set the command SET_PC_WDT Notify that the command is set Set the CMD flag of the Interrupt Trigger register 0x0002 to 1 Confirm that the comman
186. r Revision Major Revision SerialNumberL DO D15 SerialNumbe rH D16 D31 ProductName 0 ProductName Size ProductName 2 ProductName 1 ProductName 4 ProductName 3 ProductName 6 ProductName 5 ProductName 8 ProductName 7 ProductName 10 ProductName 9 ProductName 12 ProductName 11 ProductName 14 ProductName 13 ProductName 16 ProductName 15 ProductName 18 ProductName 17 ProductName 20 ProductName 19 ProductName 22 ProductName 21 ProductName 24 ProductName 23 ProductName 26 ProductName 25 ProductName 28 ProductName 27 ProductName 30 ProductName 29 Detailed format Vendor Code Reserved 0x00 Access ProductName 31 Description Specify the vendor code Device Type Specify the device type Product Code Specify the product code Major Revision Specify the major revision Minor Revision Specify the minor revision Serial Number Specify the serial number ProductName Size Specify the size of the product name in bytes ProductName Specify the product name 109 Shared M emory Area Specifications Section B 3 B 3 3 Basic Status Group in Detail Participation Flag This indicates the participation flag of each node Data format Offset address 0x0042 ord IN MIX Slave Unit Partici
187. r Word IN MIX Slave Unit 0 to to Error counter value for Word IN MIX Slave Unit 63 Error counter value for Word IN MIX Slave Unit 62 Error counter value for Word OUT Slave Unit 1 Error counter value for Word OUT Slave Unit 0 to to Error counter value for Word OUT Slave Unit 63 Error counter value for Word OUT Slave Unit 62 Error counter value for Bit IN MIX Slave Unit 1 Error counter value for Bit IN MIX Slave Unit 0 to to Error counter value for Bit IN MIX Slave Unit 127 Error counter value for Bit IN MIX Slave Unit 126 Error counter value for BitOUT Slave Unit 1 Error counter value for BitOUT Slave Unit 0 to to Error counter value for BitOUT Slave Unit 127 Error counter value for BitOUT Slave Unit 126 Error counter value for Repeater Unit 1 Error counter value for Repeater Unit 0 to to Error counter value for Repeater Unit 63 Detailed format Access Error counter value Error counter value for Repeater Unit 62 Description The error counter is incremented each time an error occurs Itincrements among the range specified for each data rate What you can read by this counter is the highest counter value among the counter counts by the time you read the counter value When it reaches the maximum itindicates a communications error In data rate of 4 Mbps 0 to 24 3 Mbps 0 to
188. rd The Interrupt Request Confirmation register causes an interrupt The flag of the cause remains 1 until the interrupt cause is cleared by the Board When you use the Interrupt Trigger register to have an interrupt be sure the interrupt cause flag to have in the Interrupt R equest Confirmation register is 0 This must be 0 before an interrupt is triggered Flags of Interrupt from PC to Board CMD Description The PC issues a command request to the Board BD_SND_ACK The PC gives an acknowledgment to an event transmission request made by the Board to the PC SND The PC notifies the Board of an event transmission REQ_REF The PC instructs the Board to release an access right to cyclic area REQ_ACC The PC requests the Board for an access right to the cyclic area PC_WDT Interrupt Trigger Offset 0x0002 Flag REQ ACC REQ_REF Unused When the Board firmware monitors normal operation of PC by PC_WDT the PC refreshes the WDT Unused Access rule W W Ww Initial value Interrupt Request confirmation Offset 0x0003 Flag Access rule Initial value 104 PCI Register Specifications Section B 2 B 2 5 Interrupt Control Register Interrupt from Board to PC This register is used to control interrupts from the Board to the PC The Interrupt Mask register is used to specify the generatio
189. re Windows has finished installing the driver software for this device G d CompoNet PCI Master G 20 Connecting the Communications Cables Section 2 3 2 3 Connecting the Communications Cables This section outlines the connection procedures in a CompoNet network system by using a round cable or Flat Cable 2 3 1 Connecting a Round Cable An Open Type Connector DCN4 TB4 is used to connect a CompoNet Master Board to the trunk line of either round cable or Il Align the terminal signals of the Connector Press in the Connector until it clicks into place Note To remove the inserted Connector hold the latches on both sides and pull out the Connector al i for edd Hi o o 21 Connecting the Communications Cables Section 2 3 Precautions for Correct Use Please be aware that the wiring of the Open Type Connector DCN4 TB4 will protrude into the adjacent panel Provide any measures to prevent it from interfering with the connector and other component of the neighboring PCI Board Example of round cable I connection DCN4 TB4 Open Type Connector DCN4 TB4 Open Type Connector Word Slave Unit Note A commercially available relay terminal block can make a T branching connection 22 Connecting the Communicati
190. ressure welding block of the DWT A02 Special Tool Pliers Align the Connector side faces with the datum shown in the picture below shaded faces Thus the center see arrow of the connector cover is aligned with the center of the pressure welding block on the Pliers 3 2 Squeeze the Pliers firmly until the lock on the Connector clicks into place S pecial Tool Pliers Gonnactarcover 194 Wiring for Power Supply Section E 5 3 3 Confirm that the cable is properly pressure welded as shown below E 5 Wiring for Power Supply Operation of a CompoNet Network needs following power supplies Communications power supply for communications with connected Units and for operations of internal elements of these Units e I O power supply for inputting and outputting operations of externally connected I O devices of the Units Power supplying method differs by cable types and Slave Unit types The table below summarizes it Power supplying Cable type Communications power I O power supplying method type of Slave Unit supplying method Multi power supply Round Cable Supplied to the individual Supplied separately form the Slave Units communications power supply Round Cable Il Supplied to the Master Board t individual Slave Unit Flat Cable and II from which the power is supplied collectively to all connected Slave Unit through the communications cable Network power Round Cable
191. rmula expresses the relation between the available cables and the permissible cable extension length 10 V gt ly tl 13 t 41 xRyxLbyx2 l2 13 t 41 x R2 x Lo x2 l3 1 XR3 xL3x2 4 R xLb x2 Use the following approximation formula if you want to add some margin in the cable selection 10 V gt l1 lp 13 In xR xL x 2 Where R is the cable conductor resistance 0 025 Q m for a Flat Cable When a Flat Cable is used the extendable length is L m lt 200 I1 12 13 In L m lt 200 l1 l2 13 1y 207 Wiring for Power Supply Section E 5 E 5 6 Precautions when Providing the I O Power Supply When building a system consideration must be given to the methods to supply the communications and the I O power The consideration includes not only the hardware elements such as selecting power supplies and cables that confirm the allowable currents and the voltage drop but also cost and software factors such as system operation at power supply errors Supplying I O Power from One Source In a system where the I O power is supplied collectively from one source the power consumption by individual device and load must also be considered Cable selection must satisfy that the power supplied to the last Slave Unit or load is within the allowable voltage range Furthermore attention should be paid to the power supply capacity and that the tota
192. ropagation delay 6 to 40 MHz 20 C Structure Finish OD Finish OD Approx 6 6 mm Approx 7 6 mm Red BS BI of OKC White BDH Red BS White BDH Blue BDL Black BS Red BS White BDH Blue BDL Black BS ieee parses Black or White BDH Giese ox bluesBDE blue BDL Black BS 10 160 Refer to the ODVA website for applicable products and manufacturers with CompoNet specifications http www odva org E 1 3 Maximum Length and Maximum Number of Connectable Slave Units for Each Type of Cable There are restrictions on the maximum lengths of each cable and the maximum number of connectable Slave Units Do not exceed these limits 161 CompoNet Network Specifications Section E 1 Slave Unit T branch connection v Multidrop connection Terminating Resistor CompoNet Master Board Trunk line length Branch line length 7 Terminating runk line m Resistor Repeater Repeater Repeater Unit Unit Brankh line i Qa ai Branch line Branch line Brancline Ipranch ines i ao as Repeater Rgpeater l ine i f Unit Unit Sub branch line m pm 2 otun Sub trunk BranctHine line J ub trun J Slave Unit i m Sub trunk Branch lineW L_ line tir line E Branch line fea m Repeater Unit Sub branch sub trunk line length line Slave Unit Sub trunk line length In Data Rate
193. ror flag Registration error Registered Slave not participating flag Registration error Non registered Slave participating flag Repeater configuration error EO Slave Unit Section A 4 Description These statuses cannot be cleared Set 0 OFF Master status Error counter 0 OFF Not the item to clear among the Detailed status group 1 ON Item to clear among the Detailed status group When the Master status is set to clear the Maximum communication cycle time the Cumulative CRC reception errors and the Cumulative code reception error among the Master status are cleared Network power state Participated Slave Unit identity table Repeater configuration information Alarm information These statuses cannot be cleared Set 0 OFF Error log 0 OFF Not the item to clear among the Detailed status group 1 ON Item to clear among the Detailed status group 12 to 13 Reserved area Set 0 OFF 14 Registration table example This status cannot be cleared Set 0 OFF 15 Reserved area Set 0 OFF A 4 6 CPNT_SetDateTime Write Time Data Purpose Call Format Ie Argument Write the time information BOOL CPNT_SetDateTime HANDLE Handle CPNT_DATETIME DateTime Type Parameter birection Deseripfon Device handle obtained with the function CPNT_Open CPNT_DATET DateTime Set the ti
194. round cables II Flat Cable or Flat Cable Il with the communications power Note 1 Only one communications power supply can be provided per trunk line or sub trunk line 2 Power to a sub trunk line must be supplied through the downstream port communications power supply connector provided on a Repeater Unit 3 Fora Round Cable Il you can also use the DRS1 T Terminating Resistor If you do insulate the ends of the BS and BS lines Using Round Cable 24 VDC Communications Power Supply ee a Master Board Connect the communications power supply and each Slave Unit and supply communications power directly to each Slave Unit Open Type Connector i for connecting a Unit id Terminating Resistor Round cable d Open Type Connector Open Type Connector i s for connecting a Unit LAL for connecting a Unit Open Type Connector for connecting a Unit Communications Connector Word Slave Unit Word Slave Unit Word Slave Unit The BS and BS terminals of a 24 VDC communications power supply are connected directly and individually to all Slave Unit and Repeater Unit The power supply is not connected to the Master Board 179 Preparing and Mounting F lat Connectors on the Cables Section E 4 The communications power terminals must be connected to the BS and BS terminals of the upstream port PORT1 of the Repeater Unit S
195. rsionInfo MV Argument twee Parameter Direction Deveriplon Handle Device handle obtained with the function CPNT_Open BOARD_VER VersionInfo Pointer to store the version SION_INFO information Returned value It returns TRUE when the function succeeds It returns FALSE when an error occurs The error details can be obtained with the function GetLastE rror Remarks This is used to read the Identity object information of CompoNet Master Board BOARD_VERSION_INFO structure Parameter Description VendorCode Company code of the Board manufacture It is Ox002F DeviceType Device type of the Board It is 0x000C ProductCode Product code of the Board It is 0x0015 for the product 3G8F7 CRM21 It is 0x0016 for the product 3G8F8 CRM21 MajorVersion Major board revision MinorVersion Minor board revision SerialNumber Board serial number ProductName Name of the Board 32 It is 3G8F 7 CRM21 for the product 3G8F 7 CRM21 It is 3G8F8 CRM21 for the product 3G8F 8 CR M21 A 4 2 CPNT_GetDriverVersion Get Driver Version Purpose Get the device driver version Call Format BOOL CPNT_GetDriverVersion HANDLE Handle DRIVER_VERSION_INFO VersionInfo 85 Status Access API Section A 4 Argument Type Parameter Drecton Deseripion Handle Device handle obtained with the function CPNT_Open DRIVER_VER VersionInfo Pointer to store the version SION_INFO information
196. s error in any systems where the on of IN data can be a trigger The function is enabled by the function CPNT_StartCycleEx in the Windows operation systems and by the command OPEN_SYSTEMEX for shared memory access 40 SECTION 4 Operation by API Functions Procedures used in WindowsOS 4 1 Access to VO Data soi cca ei te awe be eee bebe a Rds case peur Ae 42 4 1 1 General Access to I O Data 00 0 0 0 eee eee ee 42 4 1 2 I O Data Access Synchronous with CompoNet Communications 43 4 1 3 Access to I O Data with Initial OUT Data Value Setting Function 44 4 2 Detailed Setting at Communications Cycle Startup 45 4 3 Explicit Messaging 00 RE EEN ce eee 46 4 3 1 Explicit Messaging 0 0 0 0 eee eee eee 46 4 3 2 Explicit Messaging by Windows Messages 47 4 3 Explicit Messaging 00 0 eee ce eee 46 4 5 Implementing the Reset Request 0 00 02 e ee eee eee 49 4 6 Access to Detailed Status Group 0 0 0 0 eee eee eee 50 4 6 1 Reading the Detailed Status Group 0 0 50 4 6 2 Clearing the Detailed Status Group 0 0 51 4 7 PC Watchdog Timer sosanna n EE SARE EAR EA RY ROR 52 4 8 Board Hardware Error Notification 0 0 0 0 0c eee eee eee 53 41 Access to I O Data Section 4 1 4 1 Access to I O Data 4 1 1 General Access to I O Data This is the procedure by which to use t
197. sage Received 94 A 6 4 CPNT_UnRegReceiveExplicitNotifyMessage Unregister Notice of Explicit Response Message Received 95 A 6 5 CPNT_ReceiveExplicit Get Explicit Response Message 96 PC Watchdos Timer A Plt da 22sec 6 sets Ble ee eet Sa 97 A 7 1 CPNT_EnablePCWDTTimer Enable PC WDT 97 A 7 2 CPNT_RefreshPCWDTTimer Refresh PC WDT 97 Board Request Notification API 00 0 0 2 eee eee eee 98 A 8 1 CPNT_RegBDWDTNotifyMessage Register Board Hardware Error Message 98 A 8 2 CPNT_UnRegBDWDTNotifyMessage Unregister Board Hardware Error Message 98 A 8 3 CPNT_RegRESETNotifyMessage Register Board Reset Request Message 99 A 8 4 CPNT_UnRegRESETNotifyMessage Unregister Board Reset Request Message 99 Errors Detectable by Functions 0 0 0 0 0c eee ee eee 100 73 Function List Section A 1 A 1 Function List This section describes API functions provided by DLL A 1 1 Board Control API Functions They provide the initial and final processing for CompoNet Master Board This includes opening or closing a specified board API function Description CPNT_Open To open a specified board CPNT_Close To close a specified board CPNT_Reset To reset a specified board CPNT_IsE xistBoard To check whether a specified board is installed A 1 2 Communications Control API Functions They provide communications functions such as starting or stopping the communicatio
198. se values are the corresponding part of each node address 14 13 12 11 10 9 8 7 6 5 4 34 2 30 29 28 27 26 25 24 23 22 21 20 19 18 46 45 44 43 42 41 40 39 38 37 35 34 62 61 60 59 58 57 56 55 54 53 78 77 76 75 74 73 72 71 70 69 94 93 92 91 90 89 88 87 86 85 110 109 108 107 106 105 104 103 102 101 126 125 124 123 122 121 120 119 118 117 Duplication Error flags for Repeater Units ese values are the corresponding part of each node address 14 13 12 11 10 9 8 7 6 5 4 34 2 30 29 28 27 26 25 24 23 22 21 20 19 18 46 45 44 43 42 41 40 39 38 37 36 35 34 62 61 60 59 58 57 56 55 54 53 52 51 50 117 Shared M emory Area Specifications Section B 3 Detailed format Duplication error flag Read ON Duplication error occurs OFF Normal Registration Error This is the Registration error flag Registered Slave not participating for each Registered Slave Not node Participating Flag Data format Offset address 0x0338 Flags for Word IN MIX Sla
199. stered Slave Unit is determined to have participated In default the Registered Slave Unit Participation Time is 30 second in the data rate of 93 75 kbps butitis 10 seconds in other data rates It can be set to an other time This setting is disabled when the All Registered Slave Participation Standby Mode is enabled In this mode the remote I O communications is stopped until all the registered Slave Units participate in the network i e while the All Registered Slave Unit Participating Flag is off The remote I O communications starts once all of the registered Slave Unit participate i e when the All Registered Slave Unit Participating Flag comes on All Slave Units can participate in a lesser time than they do in normal mode or when this mode is disabled However user must be aware that the remote I O communications does not start unless all of the registered Slave Units participate While this mode is enabled any settings including the default of 10 seconds based on the Registered Slave Unit Participation Time are disabled This function is used to disregard any unused communications parts based on the information on the Registration table and to optimize the communications cycle 3 5 2 Communications Stop Due to Communications Error Function This function is used to stop entire communications both I O communications and explicit messages when any one of participating Slave Units has a communications error Then the Com
200. sued This table is used to set the number of nodes each for Word IN Slave Units Word OUT Slave Unit Bit IN Slave Units and Bit OUT Slave Units See Section 3 1 1 for the setting items Data format Offset address 0x3900 Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 Number of Word OUT nodes Number of Word IN nodes Number of Bit OUT nodes Number of Bit IN nodes Detailed format Access Description Number of Word Read Write Settable range 0x00 to 0x40 0 to 64 OUT nodes Number of Word IN Read Write Settable range 0x00 to 0x40 0 to 64 nodes Number of BitOUT j Read Write Settable range 0x00 to 0x80 0 to 128 nodes Number of Bit IN Read Write Settable range 0x00 to 0x80 0 to 128 nodes This is used to set the data rate used in the network The Slave Units automatically follow the data rate of the Master Board The data rate is selected from 4 Mbps 3 Mbps 1 5 Mbps and 93 75 kbps 135 Shared M emory Area Specifications Section B 3 Logical Error Checking Items Registration Table 136 Data format Offset address 0x3908 Offset Bit Word 35 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 Data rate Detailed format Access Description i Data rate Read Write These are the items used to check when a Slave Unit participates again after having a communications error They are set w
201. supply 24 VDC and 80 mA max Vibration resistance 10 to 57 Hz Amplitude of 0 075 mm 57 to 150 Hz Acceleration 9 8 m s2 80 min in each direction of X Y and Z 8 min of each sweep time x 10 sweeps total 80 min Shock resistance 147 m s2 3 times each in X Y and Z directions Ambient operating temperature 0 to 55 C Ambient operating humidity 0 to 80 RH with no condensation 0 to 90 RH with no condensation Ambient operating atmosphere No corrosive gas Storage temperature Precautions for Correct Use 20 to 60 C The ambient operating temperature means the surrounding temperature where the CompoNet Master Board for PCI Bus is actually used See the PC operation manual for the appropriate ambient operating temperature for the PC 1 7 2 Development Environment e Microsoft Visual C Ver 6 0 to Ver 2008 e Microsoft Visual Basic Ver 6 0 CODEGEAR C Builder Ver 5 to Ver 2009 Precautions for Correct Use When you use the Board in an OS other than Windows by directly accessing the shared memory interface applicable for the OS provide the development environment Specifications Section 1 7 1 7 3 Dimensions 3G8F7 CRM2 1 PCI Ie 148 4 133 1 E k 106 7 126 5 unit mm 3G8F8 CRM21 CompactPCI unit mm 10 2 1 2 2 2 3 Mounting a Board 2 2
202. t 63 448 Vendor Code of Word IN MIX Slave Unit 0 to to 511 Vendor Code of Word IN MIX Slave Unit 63 512 Vendor Code of Word OUT Slave Unit 0 to to 575 Vendor Code of Word OUT Slave Unit 63 576 Vendor Code of Bit IN MIX Slave Unit 0 to to 125 Shared M emory Area Specifications 126 Section B 3 Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 Vendor Code of Bit IN MIX Slave Unit 127 Vendor Code of Bit OUT Slave Unit 0 to Vendor Code of Bit OUT Slave Unit 127 Vendor Code of Repeater Unit 0 to Vendor Code of Repeater Unit 63 Device Type of Word IN MIX Slave Unit 0 to Device Type of Word IN MIX Slave Unit 63 Device Type of Word OUT Slave Unit 0 to Device Type of Word OUT Slave Unit 63 Device Type of Bit IN MIX Slave Unit 0 to Device Type of Bit IN MIX Slave Unit 127 Device Type of Bit OUT Slave Unit 0 to Device Type of Bit OUT Slave Unit 127 Device Type of Repeater Unit 0 to Device Type of R epeater Unit 63 Product Code of Word IN MIX Slave Unit 0 to Product Code of Word IN MIX Slave Unit 63 Product Code of Word OUT Slave Unit 0 to Product Code of Word OUT Slave Unit 63 Product Code of Bit IN MIX Slave Unit 0 to Product Code of Bit IN MIX Slave Unit 127 Product Code of Bit OUT Slave Unit 0 to
203. t Connectors on the Cables Section E 4 Required Tools Name Appearance Model Purpose Special Tool DWT A01 A pressure welding tool Pliers for DCN4 TR4 Flat Connector Socket and a DCN4 BR4 Flat Connector Plug Special Tool DWT A02 A pressure welding tool Pliers Ci for DCN5 TR4 Flat Ror Connector Il Socketand a Bs DCN5 BR4 Flat Connector II Plug E 4 1 Preparing Connectors for Round Cable Il This procedure is required only to connect a Round Cable II to a Connector type Terminating Resistor Preparing and Names of Flat Connecter Socket components Mounting the DCN4 TR4 Flat Connector Cover Housing Sockets Cable labels Flat cable black blue green white and red Cable confirmation slot 1 Preparing the Cable At the cable end make a cut line perpendicular to the cable length on the cable sheath then strip the sheath Green or Blue Black 182 Preparing and Mounting F lat Connectors on the Cables Section E 4 2 Setting the Cable Stopper Close the cover of the Flat Connector Socket Secure the hook Press down the cable stopper until it clicks into place and does not return Cable stopper 3 Attaching the Cable Confirm that the cable wire colors match the cable label colors on the Flat Connector Socket Insert the tips of the cable wires all the way into the cable stopper in the cover
204. t Network Specifications 0 0 00 0 0 eee Wiring Formations Wiring for a CompoNet Network 0 00 eect ee Preparing and Mounting Flat Connectors on the Cables 005 Wiring for Power Supply 154 156 165 167 180 195 ix TABLE OF CONTENTS About This Manual This manual describes the installation and operation of the 3G8F 7 CRM21 CompoNet Master Board for PCI Bus and the 3G8F8 CRM21 CompoNet Master Board for CompactPCI Bus The CompoNet Master Board functions as the CompoNet Master Unit There are two types One is compatible with PCI bus model 3G8F7 CRM21 and the other is compatible with CompactPCI bus model 3G8F 8 CRM21 Please read this manual carefully and be sure you understand the information provided before attempting to install or operate a CompoNet Master Board Be sure to read the precautions provided in the following section Also be sure to read the CompoNet Slave Unit Operation Manual see following table together with this manual The manual contains the following sections Precautions provide general precautions for using the CompoNet Master Board and related devices Section 1 outlines the CompoNet and the CompoNet Master Board Read this section carefully before you use the CompoNet Master Board for the first time Section 2 outlines the installation and setup It includes procedures to mount a Board to install a driver and to connect the communications cab
205. t in units of 10 ms Settable range 1 to 65535 Setting it to 0 will select the default of 1000 10000ms Checking items for the Registration Table Read Write Sets the items to check in the Registration table Bit Flag VendorCode DeviceType 2 ProductCode 3 MajorRevision 4 to 5 Reserved area Description 0 OFF Not checked 1 ON Checked I O size information Read Write Sets the I O size information See the I O size information format in the following page for the set content Vendor Code Read Write Device Type Read Write Product Code Read Write Major Revision Read Write Sets these flags when the relevant flag of the Registration table is set to check The values to be set are the ones in the Slave Unit Identity object information 139 Shared M emory Area Specifications Section B 3 I O size information format Description Number of IN Set the number of IN channels of Slave Units channels points Set the Bits 0 to 5 to 0 OFF when the number of IN channels is zero 00000 2 points 00001 4 points 00010 8 points 00011 16 points 00100 32 points 00101 48 points 00110 64 points 00111 80 points 01000 96 points 01001 112 points 01010 128 points 01011 144 points 01100 160 points 01101 176 points 01110 192 points 01111 208 points 10000 224 points 10001 240 po
206. t the necessary data to the structure CPNT_EX_TABLE 79 Communications Control API 80 Logical error checking item flag Section A 3 Description 0 OFF Disabled 1 ON Enabled This is used to set the items to be checked when a Slave Unit re participates after a communications error When itis enabled set the necessary data to the structure CPNT_EX_TABLE When it is disabled all items are checked Network parameter function flag 0 OFF Disabled 1 ON Enabled This is the network setting for CompoNet Master Board When itis enabled set the necessary data to the structure CPNT_EX_TABLE Slave Unit parameter function flag 0 OFF Disabled 1 ON Enabled This is used to set the notification to a Slave Unit when it participates When it is enabled set the necessary data to the structure CPNT_EX_TABLE Reserved area Always set 0 OFF CPNT_SOFTWARE_TABLE structure Parameter Description WORD OutNode Specify the maximum number of occupied Word OUT Slave Units Settable range 0 to 64 WORD InNode Specify the maximum number of occupied Word IN Slave Units Settable range 0 to 64 WORD BitOutNode Specify the maximum number of occupied Bit OUT Slave Units Settable range 0 to 128 WORD BitInNode Specify the maximum number of occupied Bit IN CPNT_EX_TABLE structure CPNT_REGIS T_TABLE Parameter RegTable Slave Units Settable ra
207. tO OUT data of Word MIX Slave Unit with node address 0 OUT area Data allocation e 8 Point Word IN Slave Unit IN area Unused 7 6 5 4 3 2 1 0 e 8 Point Word OUT Slave Unit OUT area Unused 7 6 5 4 3 2 1 0 31 Access to I O Data Section 3 2 Allocation for Bit IN Slave Units and Bit OUT Slave Units e 16 Point Word IN Slave Unit IN area 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 e 16 Point Word OUT Slave Unit OUT area 15 14 13 12 11 10 9 8 7 6 5 4 3 2 L 0 e 32 Point Word IN Slave Unit IN area 15 14 13 12 11 10 9 8 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 x o gt ul gt ww N m e 32 Point Word OUT Slave Unit OUT area 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 e 16 Input and 16 Output Word MIX Slave Unit OUT area 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 IN area 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Every Bit Slave Unit occupies 2 point or 2 bits For example 8 sets of 2 point Slave Units occupy 1 word In the same manner a combination of 4 sets of 2 point Slave Units and 2 sets of 4 point Slave Units occupies 1 word A 2 point Slave Unit occupies 2 bits as a node which is for its own node address A 4 point Slave Unit occupies 4 bits as a node which is for its own and for the next node addresses Access to I O Data Section 3 2 IN area OUT area BIT IN Data Allocation Area addr
208. ta in Details cetro ce eee 114 B 3 6 Detailed Status Group in Details 0 00004 117 B 3 7 CMD Area in Detail ts os ccc cea i ced ee ean a eee es 132 B 3 8 Event Area in Detail 00 0 0 133 B 3 9 Setting Area in Detail 0 0 0 0 eee eee 135 B 4 Command Specifications 0 0 0 eee eee ee eee 142 B 4 1 Command List 0 0 0 142 B 4 2 Command in Detail 0 00 0 eee eee 142 101 PCI Resources Section B 1 B 1 PCI Resources B 1 1 PCI Configuration Register Information Register Description Vendor ID 0x10CB Omron Device ID 0x0024 CompoNet Revision ID 0x01 1 Class code 0x028000 Other network controller Header type 0x00 Basic header type Base address Set by PC BIOS Interrupt line Set by PC BIOS Interrupt pin 0x01 Uses the interrupt pin INTA B 1 2 Memory Area The CompoNet Master Board has a the memory area of 128 KB and the memory is allocated as PCI memory area The PCI register areas are used to notify the Board ID reset the CompoNet Master Board and control the interrupts Offset 0x00000 PCl register area 8 bit access 0x0000F 0x00010 Shared memory area 16 bit access Ox1F FFF Precautions for Correct Use eThe PCI register area must be accessed by 8 bit eThe Shared memory area must be accessed by 16 bit eNo access is possible to these areas by 32 bit 102 PCI Register Specific
209. tartup 00000000 37 SECTION 4 Operation by API Functions ee220005 4l 4 1 Access to VO Datar ioc ci nsaan oA E EERE Se RMA TARR RS hOGA eRe REA 42 4 2 Detailed Setting at Communications Cycle Startup 0 00 00 0000008 45 4 3 Explicit Messagine ere 53 24 6 9 Avtades fogs delve See Bolten Spel wee Tee dee 46 4 4 Setting the Time Information 00 00 48 4 5 Implementing the Reset Request 0 00 49 vii Viii TABLE OF CONTENTS 4 6 Access to Detailed Status Group 1 2 eee eee 50 4 7 PC Watchdog Timer v0 6 0 3494 sis eA ee aba Sh Ae AA Ge Med tale 52 4 8 Board Hardware Error Notification 2 2 00 eect eens 53 SECTION 5 Operation by Accessing to Shared Memory 55 5 1 Basie Proced ras errre sip cise ann pots wing nS eee baie EEE oh Sigh Bobs 56 5 2 Communications Cycle Control Procedures 0 0 cece eee eee eee 58 5 3 Setting the Time Information eaae EI N cece eee 63 5 4 Implementing the Reset Request 00 cece eee eee 63 5 9 PC Watchdogs Timer c c0isd indeed tees pees gel EO ee Gas SONAR PLR oe E OE bok oe 64 5 6 Board Hardware Error Notification 0 0 cee eee eee eee 65 SECTION 6 Troubleshooting sssssssssosesssossesesssese 67 6 1 LED Indications and Error Handling 00 0 cee ee eener 68 6 2 Error DOs ee cle eS a Rea R eE E be PRE SENG R ee ees 70 A
210. ter Direction _ _Descipon Device handle obtained with the function CPNT_Open HANDLE Handle CPNT_EXPLI ExplicitR es CIT_RES Setthe pointer to store the response It returns TRUE when the function succeeds It returns FALSE when an error occurs The error details can be obtained with the function G etLastE rror The function CPNT_SendE xplicit must be executed prior to this function CPNT_EXPLICIT_RES structure Parameter Description Stores the same value as set for Sid of a request Reserved area SrcMacld MAC address or the address over CompoNet protocol of the source Unit of a response For Word IN Slave Unit MAC address Node address For Word OUT Slave Unit MAC address 64 Node address For BitIN Slave Unit MAC address 128 Node address For Bit OUT Slave Unit MAC address 256 Node address Repeater Unit MAC address 384 4Node address For Master MAC address 448 ServiceCode Stores the Service code of an explicit message ServiceDataS ize Stores the Service data size in bytes of an explicit message ServiceData 532 Store the Service data of an explicit message PC Watchdog Timer API Section A 7 A 7 PC Watchdog Timer API A 7 1 CPNT_EnablePCWDTTimer Enable PC WDT Purpose Enable or disable the PC Watchdog Timer Call Format BOOL CPNT_EnableP CWDTTimer HANDLE Handle WORD Timer Argument Parameter Direction Description Handle
211. terrupt Cause Indication register 0x0005 to be 1 periodically Clear the Interrupt cause after confirming it Set the REQ_ACC_ACK flag of the Interrupt Clear register 0x0006 to 1 and clear the interrupt cause Read and write I O data Read and write I O data from and to the I O Data Group 0x0100 Notify a release of the access right Set the REQ REF flag in the Interrupt Trigger register 0x0002 to 1 Confirm the REQ_REF completes the process for this Board 5 2 4 Control of Status Access Confirm the REQ_REF flag in the Interrupt Request Confirmation register 0Ox0003 turns to 0 Access to Basic Status Group Constant reads and writes to and from the Basic Status Group 0x0042 are supported in the normal communications cycles Access to Detailed Status Group Follow these steps in order to read the Detailed Status Group Operation procedure Set the command REQUEST_STATUS Access to Shared Memory Select the status to read into the CompoNet Master Board as the argument of Command area PC BD 0x3200 Setthe command REQUEST_STATUS Notify the command is set Setthe CMD flag of the Interrupt Trigger register 0x0002 tol Confirm the command set has been notified Confirm the CMD flag of the Interrupt Request Confirmation register 0x0003 changes to 0 Wait for a command acknowledgment Confirm the CMD_ACK flag of the Interrupt Request Indica
212. terrupt cause flag which was set to 1 in Confirm the Board Step 1 turns to 0 It remains 1 during interrupt but turns completes the interrupt to 0 when the interrupt completes process 56 Basic Procedures Section 5 1 5 1 3 Control of the Interrupt from Board to PC Here is the procedure by which to process interrupts from the CompoNet Master Board to the user application Initial process Before you start the communications or you issue the command OPEN SYSTEM OPEN SYSTEMEX set the Interrupt Mask or select to notify the interrupt by causes or to confirm it by polling Step Operation procedure Access to Shared Memory de Set the Interrupt Mask In the Interrupt Mask register 0x0004 set 1 to cause an interrupt or set 0 not to cause it Process when an interrupt is made When an interrupt is made you can confirm the interrupt cause and clear the cause Operation procedure Access to Shared Memory Confirm the interrupt In the Interrupt Cause Indication register 0x0005 cause confirm the interrupt cause Clear the interrupt cause In the Interrupt Clear register 0x0006 set the flags corresponding to the generated interrupt causes into 1 and clear the causes When all interrupt causes are cleared the interrupt itself is cleared Process to confirm the interrupt cause by polling Confirm the interrupt causes periodically Set the bits in the Interrupt Mask corresponding to t
213. th of a trunk line or a sub 500 m 1500 m Unrestricted wiring can trunk line Maximum length when be done for a total two Repeater Units are used length of 200 m per Length of a branch line 6m segment Total length of branch lines 120m Branching restriction 3 branches m Number of connectable Units per 1 branch line Maximum length of a sub branch line Total length of sub branch lines Number of connectable Slave 32 32 Units and Repeater Units altogether per trunk line or sub trunk line This is the maximum number of Slave and Repeater Units that can be connected to a branch line through the use of multidrop connections or T branch connections The purpose of T branching here is to have a sub branch line E 1 4 Types of CompoNet Network Addresses The types of node address that are set on a CompoNet network are given in the following table Type of node address Address range Applicable Slave Units Word IN Slave Unit 0 to 63 Input Slave Unit or I O Slave Word MIX Slave Unit Unit that is allocated memory in increments of 16 bits Word OUT Slave Unit 0 to 63 Output Slave Unit that is allocated memory in increments of 16 bits Bit IN Slave Unit 0 to 127 Input Slave Unit or I O Slave Bit MIX Slave Unit Unit that is allocated memory in increments of 2 bits Bit OUT Slave Unit 0 to 127 Output Slave Unit that is allocated memory in increments of 2 bits
214. th the rated voltage and frequency is supplied Be particularly careful in places where the power supply is unstable An incorrect power supply may result in a malfunction e Check the user program for proper execution before actually running it on the Unit The failure to check the program may result in unexpected operation e Always turn OFF the power supply to the personal computer the Slave Units and communications before attempting any of the following The failure to turn OFF the power supply may result in a malfunction or electric shock Application Precautions e Mounting or removing a CompoNet Master Board e Assembling devices e Setting rotary switches e Connecting cables or wiring the system e Connecting or disconnecting the connectors e Close the PC cover before wiring work This is used to prevent wire waste from entering the PC e Before touching a CompoNet Master Board be sure to first touch a grounded metallic object in order to discharge any static buildup The failure to do so may result in a malfunction or damage e When replacing parts be sure to confirm that the rating of the new part is correct The failure to do so may result in a malfunction or burning When transporting a CompoNet Master Board use special packing boxes and protect it from exposure to excessive vibration or impact during transportation e Use the Board in the specified ambient operating temperature and humidity e Store the Board i
215. the CompoNet Master Board or to a Slave or Repeater Unit Data format Offset address 0x3300 it 15 14 13 12 11 10 09 08 Byte length size afte 07 06 05 04 03 02 01 00 r Offset 1 2 to 542 Reserved 0x00 SID 0x02 0x28 Low of Node address with attributes High of Node address with attributes Low of ServiceCode High of ServiceCode Low of ClassID High of ClassID Low InstancelD High of InstancelD ServiceData 1 ServiceData 0 to to ServiceData 531 Detailed format Access Read Write The same sent explic ServiceData 530 Description value is added to the response of a it message It is used to identify to which request the response pertains Seta certain value by the user application Settable range 0x00 to OxFF Node address with Read Write attributes It specifies attributes the destination node address with See the following page for the node address with attributes ServiceCode Read Write explicit me It specifies the service code defined by the ssage Settable range 0x0000 to Ox00FF ClassID Read Write It specifies the Class ID from which an explicit message is requested Settable range 0x0000 to Ox00FF InstancelD Read Write Itspecifies the Instance ID from which an explicit message is requested Settable range 0x0000 to Ox00FF ServiceData Read Wr
216. the Slave Unit when a Slave Unit participates Settable range 0 to 65535 ms Setting it to 0 will select the default Default 50 ms 163 ms at the data rate of 93 75 K 81 Communications Control API Section A 3 CPNT_REGIST_TABLE structure Parameter Description RunSet This is used to set the Registration table function Bit Flag Description 0 Registration Always setit to 1 ON table enabled when the Registration flag table is used All Registered 0 OFF Disabled Slave 1 ON Enabled Participation Standby flag Reserved Set 0 OFF area Communications 0 OFF Disabled cycle optimization 1 ON Enabled flag 9 to 15 Reserved area Set0 OFF This is the time to monitor participation of registered Slave Units Set value in units of 10 ms Settable range 1 to 65535 Setting it to 0 will select the default of 1000 10000ms Checking items for the Registration Table Bit Flag Description 0 VendorCode 0 OFF Not checked 1 DeviceType 1 ON Checked 2 ProductCode 3 MajorRevision 4to 5 Reserved area Set0 OFF loUnitInfo 384 S et the I O size information See the I O size information format on the next page for the setting items 0 Set Word INO size 1W to Set Word IN63 size LW Set Word OUTO size 1W to Set Word OUT63 size 1W Set Bit INO size 1W to Set BitIN127 size 1W Set
217. tifyMessage HANDLE Handle DWORD Threadid HWND hWnd UINT Msg Parameter Direction Description Handle Device handle obtained with the function CPNT_Open Threadld ID of the thread to notify No setting NULL hWnd Window handle to notify No setting NULL Msg Notification message Event ID It returns TRUE when the message has been successfully registered It returns FALSE when both the thread ID and the window handle are null or when an error occurs Detailed error content can be obtained with GetLastE rror e This is used to notify the user application of a hardware error when it occurs on the CompoNet Master Board and stops the operation e See Section 4 8 for the Board hardware error notification function e The value 0 is stored in both of WPARAM and LPARAM of the notified message e Set either the thread ID or the window handle If both are set an error is returned and the message is not registered A 8 2 CPNT_UnRegBDWDTNotifyMessage Unregister Board Hardware Error Message Purpose Call Format Argument Returned value 98 Unregister the Windows message to notify a Board hardware error BOOL CPNT_UnRegBDWDTNotifyMessage HANDLE Handle Type Parameter Direction Description HANDLE Handle Device handle obtained with the function CPNT_Open It returns TRUE when the message has been successfully unregistered It returns FALSE when an error occurs Detailed error
218. tion error a Non registered Slave is participating and the Registration Table comparison error occurrence flag comes on At the same time the NS indicator on the CompoNet Master Board flashes red e If not all of the registered Slave Unit participate within the Registered Slave Unit Participation Time 1 2 after a power on 3 itis a registration error Registered Slave in not participated and the Registration Table comparison error occurrence flag comes on At the same time the NS indicator on the CompoNet Master Board flashes red The Registration Table comparison error occurrence flag and the error indication turn off as soon as the applicable Slave Unit participates 1 The Registered Slave Unit Participation Time is disabled when the All Registered Slave Participation Standby Mode as described later is enabled 2 In default the Registered Slave Unit Participation Time is 30 seconds in the data rate of 93 75 kbps but itis 10 seconds in other data rates Detailed Settings at Communications Cycle Startup Section 3 5 Setting the Registered Slave Unit Participation Time All Registered Slave Participation Standby Mode Communication Cycle Optimization Function 3 When the I O communications manual startup mode is used it is not after the power on but after the remote I O communications startup switch is started This is the time from when the communication cycles for CompoNet Master Board starts until when a regi
219. tion register 0x0005 changes to 1 Check it by an interrupt or polling 61 Communications Cycle C ontrol Procedures Operation procedure Read a response for the command REQUEST_STATUS Section 5 2 Access to Shared Memory The REQUEST_STATUS command response from the CompoNet Master Board is stored in the Command area BD PC 0x3210 Read it Release the command acknowledgment interrupt Set the CMD_ACK flag of the Interrupt Clear register 0x0006 to 1 to clear the interrupt cause Read the Detailed status group The statuses 0x0300 and following that are requested to read are stored in the shared memory Read them Clear the Detailed Status Group Among the statuses in the Detailed status group the error log the error counter and the Master status can be reset to clear The Master status here refers to the maximum communication cycle time the cumulative CRC reception error and the cumulative code reception error Follow these steps to clear them Operation procedure Set the command REQUEST_ RESETSTATUS Access to Shared Memory Select the item to clear from the CompoNet Master Board as the argument of Command area PC BD 0x3200 Set the command REQUEST_RESETSTATUS Notify the command is set Set the CMD flag of the Interrupt Trigger register 0x0002 to 1 Confirm the command set has been notified Confirm the CMD flag of the Interrupt Request Co
220. to 0 when the BD_WDT is confirmed by polling periodically 65 Section 5 6 Board Hardware Error Notification 66 BD_WDT by an interrupt Operation procedure Confirm the interrupt cause Access to Shared Memory Confirm the BD_WDT interrupt cause in Interrupt Cause Indication register 0x0005 Clear the interrupt cause Set the BD_WDT flag of the Interrupt Clear register 0x0006 to 1 Error solution process Implement the solution of the error by the user application SECTION 6 Troubleshooting 6 1 LED Indications and Error Handling 0000 0000 68 6 1 1 Identifying Errors 0 eee eee 68 6 1 2 LED Indication During Normal Operation 69 6 1 3 LED Indication at Errors and Actions to Be Taken 69 6 1 4 Error Identification by StateStatus 0 0 70 6 2 Error Oeste dam teas Gk tet eine Sa Ba ee Se ad E Sollee 70 6 2 1 Error Log Table 00 0 eee eee 70 6 2 2 Error Code and Description List 0005 71 67 LED Indications and Error Handling Section 6 1 6 1 LED Indications and Error Handling 6 1 1 68 CompoNet Master Board has two LED indicators MS LED for Board status and NS LED for network status They indicate an error occurrence and the error content This section explains the LED indicators and how to handle the errors The explanation assumes that the CompoNet Master
221. tors A Terminating Resistor must always be connected to and located at the opposite end of the trunk line or a sub trunk line from the Master Board or a Repeater Unit Note Do not connect the Terminating Resistor at the same end of the lines as the Master Board When there is a branch near the end of the trunk line or a sub trunk line a Terminating Resistor is connected at the farthest end of the trunk line from the Master Board The Master Board must be connected There must be only one Terminating Resistor that is connected at the opposite to and located at the end of the trunk line Do not connect the Terminating Resistor at the same end of the line as the Master Board Terminating Resistor Trunk line Master Board end of the trunk line from the Master Board i Repeater Unit Slave Unit S ub trunk line Do not connect the Terminating When there is a branch near the end Resistor at the same end of the J Slave Unit of line make sure the cable length a line as the Repeater Unit 19 is greater than length b a gt b T sieve unit Terminating Resistor There must be only one Terminating Resistor that is connected at the opposite end of the sub trunk line from a Repeater Unit 176 Wiring for a CompoNet Network Section E 3 Types and There are 2 types of Terminating Resistors the connector type and the Characteristics of terminal block type Termi
222. trol Manchester code rules CRC Communications media x Round cable 2 conductor cable and Round cable II 4 conductor cable Flat Cable DCA4 4F 10 and Flat Cable Il DCA5 4F 10 Communications distance and wiring See Appendix E 1 3 Connectable Slave Units CompoNet Slave Units Maximum I O capacity Word Slave Units 1 024 inputs and 1 024 outputs 2 048 points in total Bit Slave Units 256 inputs and 256 outputs 512 points in total Maximum number of nodes Word Slave Units 64 input nodes and 64 output nodes Bit Slave Units 128 input nodes and 128 output nodes Repeater Units 64 nodes Bits allocated per node address Word Slave Units 16 bits Bit Slave Units 2 bits Maximum number of nodes per trunk line or sub trunk line 32 nodes including Repeater Units Applicable node addresses 3 Word Slave Units INO to IN63 and OUTO to OUT63 Bit Slave Units BIT INO to IN127 and BIT OUTO to OUT127 Repeater Units 0 to 63 Condition to use Up to 64 Repeater Units can be connected per network or Master Board Up to 32 Repeater Repeater Units Units can be connected per trunk line or sub trunk line Repeater Units can be connected to create a maximum of 2 segment layers from the Master Board Signal lines Two lines BDH communications data high and BDL communications data low Power lines Two lines BS and BS power for communications and for internal circuits
223. trol Procedures 5 2 1 Outline of the Communications Cycle CompoNet communications cycles involve exchanges of I O data and Events The state where only Events are exchanged without any transactions of I O data is called the IDLE state or the state where I O communications is stopped and in idle The state where both I O data and Events are exchanged is called the RUN state or the state where I O communications is running The phrase Communications Cycle Operation is the general term where the communication is performed in either the IDLE state or the RUN state Operation of the CompoNet Master Board makes the state transition as illustrated in below When you execute the command OPEN_SYSTEM or OPEN_SYSTEMEX the Board turns from the initial state to the IDLE state and after some time it changes to the RUN state automatically The IDLE state is provided for a certain duration after the Board recognize the Slave Units so that the participation of Slave Units is facilitated 58 Communications Cycle C ontrol Procedures Section 5 2 a OPEN_SYSTEM S a OPEN_SYSTEMEX m ommunications STOP_CYCLE Tap Cycle Operation Communications IDLE state Cycle Operation for a specified aa a state period of time Communication stop aE STOP_IOCYCLE START_IOCYCLE o a F Cycle Operation _ sro oe _ RUN sate 3 These functions are used during the communications cycle operation Function Des
224. ts a reset The logic is not required if you do not use the Reset service of Identity Objects Initial Process Set the Interrupt mask Step Operation procedure Access to Shared Memory Set the REQ RES flag of the Interrupt Mask register 0x0004 to 1 Setitto 0 when the REQ RES is confirmed by polling periodically 63 PC Watchdog Timer Section 5 5 REQ RES by interrupts Operation procedure Confirm the Interrupt cause Access to Shared Memory Confirm the cause of REQ _RES interrupt in the Interrupt Request Indication register 0x0005 Clear the Interrupt cause Setthe REQ RES flag of the Interrupt Clear register 0x0006 to 1 Wait for 1 second Have a WAIT for 1 second Reset the Board Write 1 in the Board Reset 0x0001 and reset the Board Process after the reset Precautions for Correct Use Redo the steps in Section 5 2 2 A program must be made to reset the Board no earlier than 1 second after a Board reset request is received 5 5 PC Watchdog Timer The PC Watchdog Timer enables the Board communications to stop automatically following the stop of the user application that controls the Board When the Timer is enabled the communications stops automatically if the user application does not update the Timer value for a certain time period In other word you have to be sure the user application updates the Timer value periodically so that the normal o
225. und cable is used the communications power cannot be supplied through the communications cable The power must be supplied to each Slave Unit and Repeater Unit through separate line For Slave Units that require I O power supply i e multi power supply Slave Units the I O power must also be supplied separately There is no need to provide an external communications power supply for the Master Board Not using a Repeater Unit Communications When complying with UL standards install a device to limit the power supply Overcurrent Current between the external power supply and the Unit to 4 A protection or less for the communications power supply current limit 4 A Master Board Open Type Connector 199 Wiring for Power Supply Section E 5 Using a Repeater Unit When complying with UL standards install a device to limit the A current between the external power supply and the Unit to 4 A or m Round Cable I less for the communications power supply Communications ower suppl Overcurrent p Pply iprotection g current limit 4A H Pee Communications Overcurrent nlm Round Cable protection power supply current limit 4 A O Sais PEE es i ub k y Open Type Connector 2 aa l e L Re N NZ Trunk line T ened SP Fy geen ge Round Cable 3 Multi power Fa Multi power supply I O power supply Communications _ power supply
226. understand the information contained before attempting to set up or operate a CompoNet Network using CompoNet Master Boards AU BP WN Intended Audience General Precautions Safety Precautions Operating Environment Precautions 0 0 0 0 e eee eee ee Application Precautions 0 cece eee eee eee ene Conformance with the EC Directives 000000 e eee 6 1 6 2 6 3 Applicable Directives 0 0 0 cece cee eee eee Concepts Conformity xvi xvi xvii xvii xvii XX XX XX XX XV Intended Audience 1 1 Intended Audience This manual is intended for the following personnel to read and use The personnel must have knowledge of electrical systems and would therefore be electrical engineers or the equivalent e Personnel in charge of introducing FA systems e Personnel in charge of designing FA systems e Personnel in charge of managing FA systems and facilities 2 General Precautions The user must operate the product according to the performance specifications described in the operation manuals Before using the product under conditions that are not described in the manual or when applying the product to nuclear control systems railroad systems aviation systems vehicles combustion systems medical equipment amusement machines or safety equipment or to other systems machines and equipment that may have a serious influence on lives and property if used improperly consult yo
227. unications power supply 1 In case of an Input Slave unit Consumption current by the communications power supply Current consumed by a Bit Slave for communications Input current of a Bit Slave x the Number of used channels Current consumed by a sensor x the Number of used sensors 2 In case of an Output Slave unit Consumption current by the communications power supply Current consumed by a Bit Slave for communications Actual load current of an actuator x the Number of actuators In case of a Mixed Slave unit Consumption current by the communications power supply Current consumed by a Bit Slave for communications Input current of a Bit Slave x the Number of used channels Current consumed by a sensor x the Number of used sensors Actual load current of an actuator x the Number of actuators Ww E 5 2 Wiring the Communications Power Supply 198 Use a round cable Il Flat Cable or Flat Cable Il and connect the communications power supply to the Master Board supply connector ES Communications connector _ ms D D To the 24 VDC BS a communications BS a power supply Wiring for Power Supply Section E 5 E 5 3 Current Consumed by Slave Units and Repeater Units See the CRT1 Series CompoNet Slave Units and Repeater Units Operation Manual doc W457 E 5 4 Communications Power Supply Connection Example Using round cable When a ro
228. unications stop The communications has been started but the I O communications O stops Can have explicit messaging The state is achieved when the Idle state Slave Unit participation is prioritized to the I O communications at the Green Green communications startup or when the user application explicitly requests an idle state The I O communications is active It can have explicit messaging as 1 0 communications nae nee well LED indication O Light Flash Unit 6 1 3 LED Indication at Errors and Actions to Be Taken MS NS Error Possible cause Board operation after error Action to be taken detection One of the following occurs CompoNet Master Board If the same error persists e Self diagnosis at power on stops operation and is in even itis connected to Hardware error had a hardware error standby other PC replace the e A Board WDT error occurs CompoNet Master Board PC WDT function detects CompoNet Master Board Restart the PC application PC Watchdog aPC WDT error stops communications or the PC itself Timer error PC application stops Reading EEPROM failed Board starts up with all data Replace the CompoNet EEPROM ENG of Identity Objects in 0 Master Board One of the following occurs All system operations Identify which error it is e Duplication error on Slave continue among the StateStatus of Network error Units the Basic status group e Slave Unit has an failure stop due to unst
229. ur OMRON representative Be certain the ratings and performance characteristics of the product are sufficient for the systems machines and equipment and be sure to provide the systems machines and equipment with double safety mechanisms This manual provides information for programming and operating the Unit Be sure to read this manual before attempting to use the Unit and keep this manual close at hand for reference during operation Be sure this manual is delivered to the persons actually using the CompoNet Master Boards N WARNING Itis extremely important that a PLC and all PLC Units be used for the specified purpose and under the specified conditions especially in applications that can directly or indirectly affect human life You must consult with yourOMRON representative before applying a PLC System to the above mentioned applications xvi Safety Precautions 3 3 Safety Precautions WARNING WARNING N WARNING N WARNING A Caution A Caution Do not attempt to take any Unit apart or touch the component inside while the power is being supplied Doing so may result in electric shock Do not touch any of the terminals or terminal blocks while the power is being supplied Doing so may result in electric shock Fail safe measures must be taken by the user to ensure safety in the event of incorrect missing or abnormal signals caused by broken signal lines momentary power interruptions or other causes Serious a
230. usE xInfo Parameter Duplication error flag 0 OFF Not the item to read among the Detailed Registration error status group l Registered Slave 1 ON Item to read among the Detailed status not participating flag group Registration error Non registered Slave participating flag Repeater configuration error EO Slave Unit Master status Error counter Network power state Participated Slave Unit identity table Repeater configuration information Alarm information 11 Error log 12 to 13 Reserved area Set 0 OFF 14 Registration table 0 OFF Not the item to read among the Detailed example status group 1 ON Item to read among the Detailed status group Reserved area Set 0 OFF A 4 5 CPNT_ResetStatusEx Clear Detailed Status Group Purpose Clear the Detailed status group Call Format BOOL CPNT_ResetS tatusE x HANDLE Handle WORD StatusE xInfo Argument Tipe Parameter Direction Descrinon Handle Device handle obtained with the function CPNT_Open StatusE xInfo Specify the items of Detailed status group to clear Returned value It returns TRUE when the function succeeds It returns FALSE when an error occurs The error details can be obtained with the function GetLastE rror Remarks This is used to request to clear an item in the Detailed status group which can be cleared 88 Status Access API StatusE xInfo Duplication er
231. using the CompoNet Master Board xix Conformance with the EC Directives 6 6 6 1 6 2 6 3 xx Conformance with the EC Directives Applicable Directives Concepts Conformity 1 2 3 e EMC Directives EMC Directives The OMRON products are electric components that usually are used after being built in other machinery or manufacturing equipment They are designed to conform to the relevant EMC Directives This will facilitate the compliance of the final machinery or apparatus to such directives However the installation and configuration of such machinery and apparatus in which the OMRON products are mounted and used will differ according to their characteristics Thus it is virtually impossible for OMRON to ensure the conformity of an entire system to the relevant EMC Directives The users must conduct the necessary tests and ensure the conformity of the system as a whole The relevant EMC Directives are EN 61131 2 and EN 61000 6 2 for EMS i e Electromagnetic susceptibility EN 61131 2 and EN 61000 6 4 for EMI i e Electromagnetic Interference and EN61000 6 4 for Radiated emission 10 m regulations among EMC Electro Magnetic Compatibility The OMRON products in this manual comply with the relevant EMC Directives To ensure that the machinery or apparatus in which the OMRON products are used complies with the EC Directives the user must follow these instructions 1 The OMRON product must be installed
232. ve Unit 8 Alarminformation of Bit OUT Slave Unit 2 Alarminformation of Bit OUT Slave Unit 1 Alarm information of Bit OUT Slave Unit 0 to to to to Alarminformation of Bit OUT Slave Unit 127 Alarminformation of Bit OUT Slave Unit 126 Alarminformation of Bit OUT Slave Unit 125 Alarm information of Bit OUT Slave Unit 124 Alarminformation of Repeater Unit 3 Alarminformation of Repeater Unit 2 Alarminformation of Repeater Unit 1 Alarm information of Repeater Unit 0 to to to to Alarminformation of Repeater Unit 63 Detailed format Alarm information Access Alarminformation of Repeater Unit 62 Alarminformation of Repeater Unit 61 Description Alarm information The format for all alarm information is as follows Bit 0 Warning status flag Bit 1 Alarm status flag Bit 2 Reserved bit Bit 3 Reserved bit This is used to read the stored error records Errors for the number of error logs in Offset 0 are stored from the head Data format Offset address 0x20F C Bit Alarm information of Repeater Unit 60 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 0 Number of error logs 1 15t error code 2 15t detailed code 3 Minute of the 15t error occurrence Second of the 15 error occurrence 0 to 59 0 to 59 4 Day of the 15t error occurrence H
233. ve Units These values are the corresponding part of each node addre 14 9 8 76 30 25 24 23 22 21 46 41 40 39 38 37 62 57 56 55 54 53 lags for Word OUT Slave Units ese values are the corresponding part of each node address 14 13 12 11 10 9 8 7 6 5 4 3 2 30 29 28 27 26 25 24 23 22 21 20 19 18 46 45 44 43 42 41 40 39 38 37 36 35 34 62 61 60 59 58 57 56 55 54 53 52 51 50 Flags for Bit IN MIX Slave Units ese values are the corresponding part of each node address 14 12 11 9 8 7 6 5 30 28 27 25 24 23 22 21 46 44 43 41 40 39 38 37 62 60 59 57 56 55 54 53 78 76 75 73 71 70 69 94 92 91 89 87 86 85 110 108 107 105 103 102 101 126 124 123 121 119 118 117 Flags for Bit OUT S Units ese values are the corresponding of each no 14 12 11 9 8 6 5 30 28 27 25 24 22 21 46 44 43 41 40 38 37 62 60 59 57 56 54 53 78 76 75 73 72 70 69 94 92 91 89 88 86 85 110 108 107 104 102 101 126 124 123 121 120 118 117 118 Shared M emory Area Specifications Section B 3 Registration Error Non registered Slave Participati
234. ve and Repeater Units that can be connected to a branch line through the use of multidrop connections or T branch connections The purpose of T branching here is to have a sub branch line Item Round cable Round cable Il Flat Without With Cable I or Il branch branch lines lines Length of a trunk line or a sub 100 m 30 m 90 30 m 90 m trunk line Maximum length when 300 m m two Repeater Units are used Length of a branch line Not 2 5m 2 5m supported 2 Total length of branch lines Not 25m 25m supported 2 Branching restriction 3 3 branches m branches m Number of connectable Units per 3 3 branch line 1 Maximum length of a sub branch Not 0 1 m 3 line supported Total length of sub branch lines Not 2m Supported Number of connectable Slave Units 32 32 32 and Repeater Units altogether per trunk line or sub trunk line 1 This is the maximum number of Slave and Repeater Units that can be connected to a branch line through the use of multidrop connections or T branch connections The purpose of T branching here is to have a sub branch line 2 The trunk line does not support T branch connections The trunk line and sub trunk lines support only multidrop connections 163 CompoNet Network Specifications Section E 1 3 Branch lines support T branch connections In Data Rate of 93 75 kbps Item Round cable Round cable II Flat Cable I or ll Leng
235. ved 140 Shared M emory Area Specifications Section B 3 Detailed format Access Description Event function Read Write 0x0000 Enabled enabling 0x0001 Disabled The communications cycle becomes shorter when the Event function is not used In that case explicit messages cannot be sent to Slave Units or Repeater Units Monitoring time of Read Write This is the time to monitor events addressed to event addressed to Slave Units Slave Units Settable range 0 to 65535ms Setting it to 0 will select the default of 2000ms Slave Parameter The parameter is indicated by the Master Board to the participating Slave Units The parameter is used by the Slave Units Normally no setting is required however it is set when the Slave Unit parameter is enabled The command OPEN_SYSTEMEX is used to make the setting Data format Offsetaddress 0x469C Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 Monitoring time of Slave Unit making a request I O time out value Detailed format Access Description Monitoring time of Read Write This is the time to monitor events when a Slave Slave Unit making a Unit sends an explicit message request Settable range 0 to 65535 ms Setting it to 0 will select the default of 2000ms I O time out value Read Write This is the OUT frame monitoring time for a Slave Unit to detect a communications error For Slave Units
236. w of a Board preparation 1 Set the board ID for the CompoNet Master Board Select one from 0 to 9 WwW 2 Mount the Board on the PC Mount the CompoNet Master Board on the PC WwW 3 Install the software When you use the Board in the Windows operation systems install the driver v 4 Create a program Create a program to configure and control the CompoNet Master Board v 5 Turn on the PC WwW 6 Start up the created program WwW 7 The communication starts and the Slave Units participate See Section 2 Installation and Setup See Section 4 Operation by API Functions Section 5 Operation by Shared Memory Access and Appendix D Sample Program Specifications 1 7 Specifications 1 7 1 General Specifications Bus specification Section 1 7 Specifications 3G8F7 CRM21 PCI PCI bus Rev2 2 5V 3G8F8 CRM21 CompactPCl PICMG 2 0 R3 0 5V 32 Bit 3U Number of mountable boards 4 pieces 7 pieces Compatible OS Microsoft Windows 2000 Windows XP 32 bit edition Windows Vista 32 bit edition or Windows 7 32 bit edition Other OS can be used when the shared memory interface is directly accessed Weight 90 g max 150 g max Operation voltage Internal power supply 5 VDC 5 3 3 VDC is not used Consumption current Internal power supply 5 VDC and 1 5 A max Communications power
237. y On the most remote end from the Master Board ora Repeater Unit Wiring for a CompoN et Network Section E 3 E 3 Wiring for a CompoNet Network A CompoNet Network requires wiring of following lines Two communications signal lines BDH or communications data high and BDL or communications data low e Two communications power supply lines one for communications and the other for internal circuits of Slave Units The terminals are BS or positive side of communications power supply and BS or negative side of communications power supply Wiring method differs by the type of used cables E 3 1 Wiring Round Cable The two communications signal lines are connected in parallel between the Master Board or a Repeater Unit and multiple Slave Units e A DCN4 TB4 Open Type Connector is used to connect communications cables to the Master Board or a Repeater Unit and to the Slave Units e The two communications power supply lines are connected to each Slave Unit They are different cables from the communications lines The communications power supply lines are to supply 24 VDC communications power e No power line is connected to the Master Board or a Repeater Unit A DRS1 T Terminating Resistor must be connected at the end of the network Master Board or Repeater Unit Relay terminal block Terminating Resistor 121 Q cf i ae ri Communications Slave Unit SSS STS S Reser ASS arapa
Download Pdf Manuals
Related Search
Related Contents
Philips Azur Steam iron GC4851/32 USER`S MANUAL USER`S MANUAL DETHATCHER ELÉCTRICA DE 14 PULG. 10A M70002 2014/15 APD Americas ChemDraw User`s Manual ENERGY SAVING, FIBRE LASER COMBINATION MACHINE 5AB04 特許ライセンス契約書 本契約は Copyright © All rights reserved.
Failed to retrieve file