Home
CompoNet Master Board for PCI Bus/CompactPCI Bus USER'S
Contents
1. 117 Shared Memory Area Specifications Section B 3 94 93 92 91 90 89 88 87 86 85 84 83 82 110 109 108 107 106 105 104 103 102 101 100 99 98 126 125 124 123 122 121 120 119 118 117 116 115 114 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 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 Detailed format Name Access Description Event only Read ON A node that can use event only SlaveUnit flag OFF Normal Master Status This stores the status of the CompoNet Master Board Data format Offset address 0x0408 Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 Node causing a communications stop StateStatus 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 118 Error Counter Shared Memory Area Specifications Detailed format Node causing a communicati
2. Detailed format Name Access Desorption Number of the node Read Write It stores the Bit OUT data of a Bit OUT Slave Unit Shared Memory 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 Duplicati These values are onE ding rror flags for Word the correspon part of ea N Slave Units ch node addre 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 ese value s are the corresponding part Duplication Error flags for Word OUT Slave Units 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
3. D 5 CPNT StopCycle 5 is y a g Close Board uw CPNT_Close 41 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 execute explicit messaging and confirm the response Open Board CPNT Open Y Start Communications cycles CPNT_StartCycle y Loop Start Initial processing y I O process and so on Y YES An Explicit message request NO i 4 y Loop End y Stop Communications cycles CPNT_StopCycle Y Close Board CPNT Close End processing Send Explicit Message CPNT SendE xplicit Check Response Received CPNT_PeekExplicit YES Message process Read Explicit Response Message CPNT_ReceiveExplicit Precautions for Correct Use Insert Time out process if necessary 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 42 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 c
4. ll 2 1 Mounting a BOatd c ecc uis MER REPRE RS De hele a he dw RA E 12 2 2 Installing the Drivers 20 0 E E E ee mI e 14 2 3 Connecting the Communications Cables 0 0 0 2 cece ee eee 17 2 4 Connecting the Communications Power Supply Cables 00 21 SECTION 3 Euncetloli vos dw vetro d Swale See RAP Ma M 59 3 Settings at Communications Cycle Startup 0 00 0 0 eee 24 3 2 Access to VO Data ii ede fakes wa DRE E RR RE ERE a Re EE 26 NEM ECL eee Pend ele ds Mae tate ed eats 31 3 4 Explicit Messages oorr pP en ob Sane ERR DR RS RE e ec o RR 33 3 5 Detailed Settings at Communications Cycle Startup eese 33 SECTION 4 Operation by API Functions 0eee0006 37 42 Access to T O Data is icem Ri ORG eeu hey OU EAS SER 38 4 2 Detailed Setting at Communications Cycle Startup 0 00 0000 00008 41 4 3 BxphatMessagimg vel 4a e tf Pa osha WA EG eee oer RA See ee 42 4 4 Setting the Time Information leseeeeeeee Ie 44 4 5 Implementing the Reset Request 0 2c ec es 45 vii viii TABLE OF CONTENTS 4 6 Access to Detailed Status Group 46 4 1 PCWatchdog Timer sleek ass rp ar RP REP Wee IE dem 48 4 8 Board Hardware Error Notification 0 0 0 eect eee eens 49 SECTION 5 Operation by Accessing to Shared Memory 51 JFL Basie Procedures scc eng rese hate er ire git Bele PS
5. Error p a Y 85 Loop End m 5 c2 Sg Unregister Board Hardware Error E xe Solving the Board d Message ot Hardware Error CPNT_UnRegBDWDTNotifyMessage z C Stop Communications cycles CPNT_StopCycle Y Close Board CPNT Close Final processing A 49 Board Hardware Error Notification Section 4 8 50 SECTION 5 Operation by Accessing to Shared Memory Operation procedures in other environments other than Windows OS Sele Basic Procedures seve era titers ao it oi kaos eta antes 52 5 1 1 Outline of Board Control 2 2 0 eee 52 5 1 2 Control of the Interrupt from PC to Board 52 5 1 3 Control of the Interrupt from Board to PC 53 5 1 4 Command Access Control 0 00 e cece 54 5 2 Communications Cycle Control Procedures 00 000 e eee 54 5 2 1 Outline of the Communications Cycle 000005 54 5 2 2 Controls from the Initial Process to Communications Cycle Startup 56 5 2 3 Control of I O Data Access llle 57 5 2 4 Control of Status Access eens 57 5 2 5 Control of Event Access ees 58 5 3 Setting the Time Information 00 0c c ccc 59 5 4 Implementing the Reset Request 0 0 0 eese 59 529 PC Watchdog Timer euet vn es oe es RRR ET OA Anus 60 5 6 Board Hardware Error Notification 0 0 0 0 cece e eese 61 51 Basic Procedures Section 5 1
6. 130 Shared Memory 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 It is 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 issued 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 Offset Bit Word 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 Bit OUT 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
7. Branch line Branch line A Trunk line Terminating Resistor Branch line Slave Unit Slave Unit Slave Unit E 2 2 Unrestricted Wiring Formation In this formation there is no distinction between the trunk line and branch lines There are no wiring restrictions as long as the total cable length per 158 segment does not exceed 200 m There is also no limit in the number of branches Wiring for a CompoNet Network Section E 3 Master Board Terminating Resistor Repeater Unit Slave Unit Slave Unit Slave Unit D Terminating Slave Unit 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 Unrestricted wiring formation formation Master Board location End of network Anywhere in network not necessarily at the end Slave Units connectable to a Maximum number of single bra
8. 0 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 generation 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 i 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 J 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 REQ_ACC_ACK The acknowledgment made by the Board
9. Word Slave Unit 2 4 Connecting the Communications Power Supply Cables When a round cable II Flat Cable or Flat Cable Il 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 21 Connecting the Communications Power Supply Cables 22 Section 2 4 3 1 3 2 3 3 3 4 3 5 Settings at Communications Cycle Startup 2 05 3 1 1 Settings Required for Starting the Communications Cycle Access to O Data cess aa ee ee ALPS Daa os ate eae 3 2 1 Allocation of I O Data 0 0 eee 3 2 2 Access to I O Data 0 ee ce eee UALS 5 testes ttt P ete Se sn Maye E intimin UR Magnes nd n Eds 3 3 1 Basic Status Group 00 0 0 cece eee 3 3 2 Detailed Status Group 22 0 0 eee eee Explicit Messages aa ae tt ee n enn Detailed Settings at Communications Cycle Startup 3 5 1 Registration Table Function 00 00 0000 ee 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 24 24 26 26 31 31 31 32 33 33 33 35 35 35 Functions 23 Settings at Communications Cycle
10. 164 Slave or Repeater Unit 3 Note Open Type Slave or Repeater Unit Connectors cannot be used for Bit Slave Units Master Board Slave Unit Cable branches connections Repeater Unit T branch Multidrop connections connections connections Flat Connector Flat Connector Plug Flat Connector Multidrop Plug Word Slave Unit Socket Flat Connector ru Connector Or Repeater Connector Mubiciop Master Board F ug s T F onnector Unit Plug ACN Flat Connector Socket Trunk line Branch or sub branch line Flat Connector Plug Slave or Repeater Unit e 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 Trunk sub trunk or branch line Branch or sub branch line Flat Connector Plug or Cable attachment Flat Connector Plug Slave or Repeater Unit a a Slave or Repeater Unit Flat Connector Plug Flat Connector Plug Note Flat Cable II does not support multidrop connection or Mutlidrop Connectors Wiring for a CompoNet Network Section E 3 Cable extension Flat Connector Socket Flat Connector Plug Flat Connector Socket Flat Connector Socket Trunk line or sub trunk line 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
11. Communications Cycle Operation STOP CYCLE RUN state These functions are used during the communications cycle operation Function Description Communications It is 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 I 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 55 Communications Cycle Control Procedures Section 5 2 5 2 2 Controls from the Initial Process to Communications Cycle 56 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
12. Plugs 1 4 3 Confirm that the cable is properly pressure welded as shown below 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 N O X cl UC Mounting the Cable 2 1 Place the Cable on the Connector with its white line facing upward near the cover opening a line Confirm that the line colors at the end of the cable are in the following order starting from a the left red white blue and black Cover opening 185 Preparing and Mounting Flat Connectors on the Cables Section E 4 2 2 Hold the Cable to prevent dislocation Close the cover to sandwich the Cable 3 Pressure welding the Connector Use a DWT AO2 Special Tool Pliers to pressure weld and connect the Cable 3 1 Place the Connector on the pressure 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 Special Tool Pliers Connector caver 186 Wiring for Power Supply Section E 5 3 3 Confirm that the cable is properly pressure welded as shown below
13. 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 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 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 I Unable to use supply Round Cable Il 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 I 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
14. Follow the mounting procedure given below D Disconnect all cables from the CompoNet Master Board This includes the communications cables and power supply cables Turn off the PC to which a Board is mounted Disconnect the electrical cord Remove the package of the PC as instructed in the Operation Manual and prepare it to mount or remove a CompoNet Master Board 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 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 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 2 2 14 Section 2 2 Installing the Drivers Note 1 2 3 Use the Found New Hardware Wizard in Windows 2000 Windows XP or Windows Vista and install the CompoNet Master Board driver The following example of installation uses Windows 2000 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 Start up the PC after you mount a CompoNet Master Board on the
15. Wait for getting an access right This is the case when the REQ ACC ACKis confirmed by polling Wait for the REQ_ACC_ACK Interrupt Cause in the Interrupt 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 0x0003 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 Set the command REQUEST STATUS 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 Interru
16. 3 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 Y Allocation of Word OUT Slave Units Node address O 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 1to8 Unused of occupied 9 Used by Bit OUT Slave Unit node address 9 nodes is 10 25 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 26 Note In the CompoNet network system the I O data is allocated separately for Word IN Slave 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 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 The offset address that is allocated to the shared memory is determined by the node address Word MIX Slave Units occupy the allocation areas for both of Word IN Slave Units and Word OUT Sla
17. 54 53 52 51 50 ese value Duplica tion Error s are the corresponding part flags for BIT IN Sla ve Units 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 78 77 76 75 74 73 72 71 70 69 68 67 66 94 93 92 91 90 89 88 87 86 85 84 83 82 110 109 108 107 106 105 104 103 102 101 100 99 98 126 125 124 123 122 121 120 119 118 117 116 115 114 ese value Duplicati s are the corresponding part on Error flags for BIT OUT SI ave Units 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 78 77 76 75 74 73 72 71 70 69 68 67 66 94 93 92 91 90 89 88 87 86 85 84 83 82 110 109 108 107 106
18. 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 applicable Slave Unit Error log It stores the error log Registration table example It stores the registration table example made from the information of the Slave Units currently participating Explicit Messages Section 3 4 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_PeekExplicit and CPNT_ReceiveExplicit 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 t
19. Vendor Code of Repeater Unit 0 to Vendor Code of Repeater Unit 63 Device Type of Word IN Slave Unit 0 to Device Type of Word IN 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 Slave Unit 0 to Device Type of Bit IN 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 Repeater Unit 63 Product Code of Word IN Slave Unit 0 to Product Code of Word IN 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 Slave Unit 0 to Product Code of Bit IN Slave Unit 127 Product Code of Bit OUT Slave Unit 0 to 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 Slave Unit Major Revision of Word IN Slave Unit 1 0 to to Major Revision of Word IN Slave Unit Major Revision of Word IN Slave Unit 63 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 Slave Unit Major Revision of Bit IN Slave Unit 1 0 Shared Memory
20. 0 0 ec e ec eee ee 72 A 2 3 CPNT Reset Reset Board 0 00 cece eee 72 A 2 A CPNT IsExistBoard Check Board Existence 73 Communications Control API 2 0 0 0 cece eee nes 73 A 3 1 CPNT_StartCycle Start Communications Cycles 73 A 3 2 CPNT StartCycleEx Start Communications Cycles in the Detailed Setting 75 A 3 3 CPNT_StopCycle Stop Communications Cycles 79 A 3 4 CPNT_ChangeToRunState Transition to RUN 80 A 3 5 CPNT ChangeToldleState Transition to IDLE 80 Status Access APIs inc cout eek tees Hw poe ee Des ep nee 81 A 4 1 CPNT GetBoardVersion Get Board Version 81 A 4 2 CPNT GetDriverVersion Get Driver Version 81 A 4 3 CPNT_GetStatus Read Basic Status Group 82 A 4 4 CPNT GetStatusEx Read Detailed Status Group 83 A 4 5 CPNT ResetStatusEx Clear Detailed Status Group 84 A 4 6 CPNT SetDateTime Write Time Data 000 85 VO Data Access ABL cute sccuecnb e rb ERE nit e Pls fosse 9 86 A 5 1 CPNT GetAccessToIO Get Access to I O 2 05 86 A 5 2 CPNT ReleaseAccessToIO Release Access to I O 86 A 5 3 CPNT GetInData Get IN Data from Word IN Slave Unit 87 A 5 4 CPNT_ GetBitInData Get Bit IN Data from Bit IN Slave Unit 87 A 5 5 CPNT SetOutData Set OUT Data in Word OUT Slave Unit 88 A 5 6 CPNT SetBi
21. 2 The trunk line does not support T branch connections The trunk line and sub trunk lines support only multidrop connections 157 Wiring Formations In Data Rate of 93 75 kbps 8 Branch lines support T branch connections Section E 2 Item Round cable Round cable Il Flat Cable or Il Length of a trunk line or a sub trunk line Maximum length when two Repeater Units are used 500 m 1500 m Length of a branch line 6m Total length of branch lines 120m Branching restriction 3 branches m Number of connectable Units per branch line 1 Maximum length of a sub branch line Total length of sub branch lines Unrestricted wiring can be done for a total length of 200 m per segment Number of connectable Slave Units and Repeater Units altogether per trunk line or sub trunk line 32 32 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 2 Wiring Formations A CompoNet Network can employ either of two possible wiring formations 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
22. 44 43 42 41 40 39 62 61 60 59 58 57 56 55 78 77 76 75 74 73 72 71 94 93 92 91 90 89 88 87 110 109 108 107 106 105 104 103 102 101 100 126 125 124 123 122 121 120 119 118 117 116 115 114 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 3 4 2 30 29 28 27 26 25 24 23 22 21 20 19 18 Shared Memory 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 Slave Units These values are the corresponding part of each node addre 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
23. 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 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 B
24. PC CMD 0x3300 to Event area 0x3521 group 0x3600 to 0x3821 Explicit Event area PC BD T essage Explicit Event area BD PC F essage 0x3900 to 0x3907 group 0x3908 to 0x3909 0x390A to 0x390B 0x390C to 0x4691 0x4692 to 0x469B 0x469C to 0x469D 0x469E to 0x1FFFF Setting area Software 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 104 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 15114 13112 11 10 09 08 07 06 05 04 03 02 01 00 Shared Memory Area Specifications Identity information 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 Mas
25. Register the Windows message which notifies that an Explicit response message is received BOOL CPNT RegReceiveExplicitNotifyMessage HANDLE Handle DWORD Threadld 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 GetLastError e The value O 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 UnRegReceiveExplicitNotifyMessage 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 UnRegReceiveExplicitNotifyMessage HANDLE Handle Type Parameter Direction Description HANDLE Handle IN 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 Detai
26. 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 Transition to RUN Purpose Make a transition to RUN state Call Format BOOL CPNT ChangeToRunState HANDLE Handle Argument Type Parameter Direction Description HANDLE Handle IN 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 GetLastError 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 GetLastError Remarks This is used to stop the
27. set a 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 interrupt cause flag which was set to 1 in Confirm the Board Step 1 turns to O It remains 1 during interrupt but turns completes the interrupt to O when the interrupt completes process 52 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 1 Set the Interrupt Mask In the Interrupt Mask register 0x0004 set 1 to cause an interrupt or set O 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
28. 0 to 80 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 Microsoft Visual C Ver 6 0 to Ver 2008 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 applicable for the OS interface provide the development environment Specifications Section 1 7 1 7 3 Dimensions 3G8F7 CRM21 PCI 106 7 126 5 unit mm 3G8F8 CRM21 CompactPCl unit mm 10 2 1 2 2 2 3 2 4 Mounting a Board 000s cece eee 2 1 1 Confirmation 00 00 00 eee 2 1 2 Setting the BoardID 2 1 3 Mounting the Board on the PC Installing the Drivers 0 000 eese 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 17 17 19 21
29. 105 104 103 102 101 100 99 98 126 125 124 123 122 121 120 119 118 117 116 115 114 ese value Duplication Error flags for s are the corresponding part Repeate r Units 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 113 Shared Memory Area Specifications Section B 3 Detailed format Name Access Beseipion 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 Slave Units These values are the corresponding part of each node addre 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 Word OUT Slave Units ese values are the corresponding part of each node addr
30. 115 Registration Table 132 Registration Table comparison error occurrence flag 33 34 Registration Table Example 127 Registration Table Function 3 Repeater Configuration Error 116 Repeater Configuration Information 124 Repeater duplication error 66 Repeater Unit 2 Round cable I 153 Round cable II 153 154 Running program ID 104 S Selecting applicable cable types 155 Shared memory Accesses 3 Slave duplication error 66 Slave Parameter 137 Software Table 131 Special Tool 176 179 181 184 186 START_IOCYCLE 35 State Status 32 StateStatus 108 Synchronous access 3 31 Index T Terminating Resistor 160 161 163 169 U Using Different Cable Types 155 V Voltage Drop 199 W Word IN Data 110 Word OUT Data 111 205 Index 206 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 01 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 July 2009 Original production 207 Revision History 208 Authorized Distributor
31. 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 ww 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 w 7 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 Section 1 5 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 flow of a Board preparation 1 Set the board ID for the CompoNet Master Board ae SCHON Installation and Select one from 0 to 9 Setup wv 2 Mount the Board on the PC Mount the CompoNet Master Board on the PC ww 3 Install the software When you use the Board in the Windows operation systems install the driver ww 4 Create a program See Section
32. 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 Function Description Interrupt It is 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 Notify a command transmission Request to get an access right to I O area Notify a release of the access right to I O area e Refresh the PC WDT Interrupt by the Board to the PC Notify an Event transmission Acknowledge ACK the Event transmission from the PC Notify the command acknowledgment Request to reset the Board Notify the completion of Board initialization Notify the completion of getting an access right to I O area Notify the WDT time out Command It is 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 e Request to read the detailed status group 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
33. 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 se veg ue 19 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 eln a configuration where plural 3G8F7 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 a DCN4 BR4 Flat Connector Plug T branch DCN4 BR4 Flat Connector DCN4 TM4 Terminating Resistor Plug DCNA BR4 Flat Connector Plug Word Slave Unit Bit Slave Unit 20 Connecting the Communications Power Supply Cables Section 2 4 Example of multidrop connection of Flat Cable DCN4 TM4 Terminating Resistor
34. IN area 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 O 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 e 32 Point Word OUT Slave Unit OUT area 15 14 13 12 1110 9 8 7 6 5 4 3 2 1 O 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 1110 9 8 7 6 5 4 S3 2 1 O IN area 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 O 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 BIT IN Data Allocation Area address BITIN7 BITING BITINS BITIN4 BITINS BITIN2 BITING BITING BITIN 15 BITIN14 BrTIN 13 BITIN12 BrTIN 11 BITIN 10 BITIN9 BITINS BrriN 23 BITIN22 BITIN21 BITIN20 BITIN 19 BiITIN 18 BITIN 17 BITIN 16 prriN 31 BITIN30 BITIN29 BITIN28 BITIN27 BITIN26 BITIN25 BITIN 24 BIT IN 39 BITIN38 BITIN37 BITIN36 BITIN35 BITIN34 BITIN33 BIT IN 2 BrTIN 47 BITIN46 BITIN45 BITINZ44 BITIN43 BiITIN42 BITIN41 BIT IN 40 BITIN 55 BITIN 54 BIT
35. Once the target Slave Unit is 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 It shows the entire network status and the CompoNet Master Board status 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 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 32 See Appendix B 3 3 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
36. 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 Not all 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 I O Read 0 OFF I O communications stops communications started 1 ON I O communications is running Shared Memory Area Specifications Operation monitoring IDO amp D6 amp D7 Section B 3 Description 0 OFF One of the following an error occurred the I O communications not 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 WARNING 0 OFF No warning 1 ON A warning The bit will be 1 or on if the
37. Wait that the SND_ACK Interrupt cause of the Interrupt Cause Indication register 0x0005 changes to 1 periodically Clear the Interrupt cause after confirming it Set the SND_ACK flag of the Interrupt Clear register 0x0006 to 1 to clear the interrupt cause Wait for an Explicit message response This is the case when the BD_SND is 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 Reque
38. esses PC Watchdog Timer Board Hardware Error Notification 38 38 39 40 41 42 42 43 42 45 46 46 47 48 49 37 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 the 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 GetBitlnData Y Loop End ra Y Stop communications cycles CPNT StopCycle Y Close Board CPNT Close Data Inputs and Outputs A 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 38 Access to I O Data Section 4 1 4 1 2 l 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 main
39. explicit message ServiceData 532 Store the Service data of an explicit message 92 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_EnablePCWDTTimer HANDLE Handle WORD Timer Argument Parameter Direction Description Handle 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 GetLastError 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 IN 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 GetLastError 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 re
40. 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 OX20FC 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 13 error code 2 15 detailed code 3 Minute of the 1 error occurrence Second of the 1 error occurrence 0 to 59 0 to 59 4 Day of the 15t error occurrence Hour of the 15 error occurrence 11031 0 to 23 5 Year of the 13 error occurrence Month of the 1 error occurrence 00 to 99 1 to 12 to to to Shared Memory Area Specifications Section B 3 Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 64th error code 64th detailed code 0 to 59 Minute of the 64th error occurrence Second of the 64th error occurrence 0 to 59 to 31 Day of the 64th error occurrence 1 Hour of the 64th error occurrence 1 to 23 to 99 Detailed format Access Number of error logs Year of the 64th error occurrence 00 Month of the 64th error occurrence 1 to 12 Description Number of stored erro
41. or Il with Open Type Connectors 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 I with DCN4 TB4 Open Type Connector Master Board Communications connector DCN4 TB4 Open Type Connector for connecting a Unit M3 terminal block 165 Wiring for a CompoNet Network Section E 3 When Using Flat Use a Flat Connector Plug to connect Flat Cable or Il to the Master Board Cable or Il with Flat Connector Plugs e Flat Cable with DCN4 BR4 Flat Flat Cable II with DCN5 BRA 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 Connecto
42. 0 to Repeater configuration info of Bit IN Slave Unit 127 Repeater configuration info of Bit OUT Slave Unit 0 to B 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 11 10 09 08 07 06 05 04 03 02 01 00 Alarminformation of Word IN Slave Unit 3 Alarminformation of Word IN Slave Unit 2 Alarm information of Word IN Slave Unit 1 Alarm information of Word IN Slave Unit 0 to to to to Alarminformation of Word IN Slave Unit 463 Alarminformation of Word IN Slave Unit 62 Alarm information of Word IN Slave Unit 461 Alarminformation of Word IN Slave Unit 60 Alarminformation of Word OUT Slave Unit 3 Alarminformation of Word OUT Slave Unit 2 Alarm information of Word OUT Slave Unit 1 Alarm information of Word OUT Slave Unit 0 to to to to Alarminformation of Word OUT Slave Unit 63 Alarminformation of Word OUT Slave U
43. 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 Item 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 As for the 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 Setting Control Panel from the pop up menu Double click the System Select the Hardware Tab Push the Device Manager button 3 Display the pr
44. 5 E 3 6 E 3 7 E 3 8 E 3 9 Connectors Connecting Nodes Branching Communications Cables 0 0000 e eee Extending Communications Cables 0 0 00 esses Connection Locations for Terminating Resistors Connection Locations for Communications Power Supplies Preparing and Mounting Flat Connectors on the Cables E 4 1 E 4 2 E 4 3 Preparing Connectors for Round Cable I Preparing Connectors for Flat CableL sese sess Preparing Connectors for Flat Cables I 00 04 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 158 158 159 160 160 161 162 164 165 166 168 169 171 172 174 177 182 187 189 190 191 191 197 200 201 151 CompoNet Network Specifications Section E 1 E 1 CompoNet Network Specifications E 1 1 Communications Specifications Item Specifications Communications CompoNet Network protocol protocol Types of Remote I O communications i e program les
45. 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 Slave Unit Major Revision of Bit IN Slave Unit 127 126 Major Revision of Bit OUT Slave Unit Major Revision of Bit OUT Slave Unit 1 0 to to Major Revision of Bit OUT Slave Unit Major Revision of Bit OUT Slave Unit 127 126 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 Slave Unit 0 BitO 15 Serial Number of Word IN Slave Unit 40 Bit15 31 to Serial Number of Word IN Slave Unit 463 Bit0 15 Serial Number of Word IN Slave Unit 463 Bit16 31 Serial Number of Word OUT Slave Unit 0 Bit0 15 Serial Number of Word OUT Slave Unit 40 Bit16 31 to Serial Number of Word OUT Slave Unit 463 Bit0 15 Serial Number of Word OUT Slave Unit 463 Bit16 31 Serial Number of Bit IN Slave Unit 0 BitO 15 Serial Number of Bit IN Slave Unit 0 Bit16 31 to Serial Number of Bit IN Slave Unit 127 Bit0 15 Serial Number of Bit IN Slave Unit 127 Bit16 31 Serial Number of Bit OUT Slave Unit 0 BitO0 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 4127 Bit16 31 Serial Number of Repeater Unit 0 Bit0 15 Serial Number of Repeater Unit 0 Bit16 31 to Serial Number
46. Bit IN Slave Error counter value for Bit IN Slave Unit 127 Unit 126 Error counter value for Bit OUT Slave Error counter value for Bit OUT Slave Unit 1 Unit 0 to to Error counter value for Bit OUT Slave Error counter value for Bit OUT Slave Unit 127 Unit 126 Error counter value for Repeater Unit Error counter value for Repeater Unit 1 0 to to Error counter value for Repeater Unit Error counter value for Repeater Unit 63 62 Detailed format Access Description Error counter value The error counter is incremented each time an error occurs It increments 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 it indicates a communications error In data rate of 4 Mbps 0 to 24 3 Mbps 0 to 22 1 5 Mbps 0 to 14 93 75 kbps 0 to 3 120 Shared Memory 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 OxX05DA Offset Bit Word 15 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 sup
47. BitOutNode 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 A 3 2 CPNT StartCycleEx Start Communications Cycles in the Detailed Setting Start the communications cycles in the detailed setting Purpose Call Format Argument Returned value Remarks BOOL CPNT_StartCycleEx HANDLE Handle CPNT SOFTWARE TABLE SoftwareTable WORD DataRate CPNT EX TABLE ExTable WORD EnableList Parameter HANDLE Handle Direction Description Device handle obtained with the function CPNT Open CPNT SOFT SoftwareTable WARE TABLE Specify the number of occupied nodes WORD DataRate Specify the data rate 0 4 Mbps 1 3 Mbps 2 1 5 Mbps 3 93 75 kbps CPNT EX TA ExTable BLE Specify the detailed setting table WORD EnableList Specify the detailed setting to be used It returns TRUE when the function succeeds It returns FALSE when an error occurs The error details can be obtained with the function GetLastError This function is used to start the communications in the detailed setting The function cannot be executed during the communications cycles Enable List Communications stop due to communications error function flag Description 0 OFF Disabled 1 ON Ena
48. Close Final processing A 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 Access to Detailed Status Group Section 4 6 4 6 2 Clearing the Detailed Status 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 I O process etc Y Y Initial processing P A request to reset the YES Detailed Status Group NO q y Clear Detailed status group Loop End CPNT_ResetStatusEx y Stop Communications cycles D 5 CPNT_StopCycle E e y o P Close Board Lu CPNT Close 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 47 PC Watchdog Timer Section 4 7 4 7 PC Watchdog Timer 48 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 st
49. 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 10 Network parameter function 11 Slave Unit parameter function 12 to 15 Reserved area Set 0 OFF Normal end 0x0000 At an error Hardware error 0x8101 to 0x8109 Error of argument data format OxC000 Bit location of an error Error location Software table Data rate Reserved area Set 0 OFF Registration Table function Logical error checking item function 10 Network parameter function 11 Slave Unit parameter function 12 to 15 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 139 Command Specifications Command START IOCYCLE Purpose Code Argument Response code Remarks Command STOP IOCYCLE Purpose Code Argument Response code Remarks 140 Section B 4 e Network parameter e Slave Unit parameter Start the I O communications 0x1001 None Set 0x000
50. 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 12 to 13 14 Registration table example 15 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 141 Command Specifications Command REQUEST RESETSTATUS Purpose Code Argument Response code Remarks Command SET PC WDT Purpose Code Argument Response code Remarks 142 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 11 Error log 7 to 10 12 to 15 Reserved area Set 0 OFF Normal end 0x0000 e t 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 recep
51. Get Driver Version Purpose Get the device driver version Call Format BOOL CPNT_GetDriverVersion HANDLE Handle DRIVER VERSION INFO VersionInfo 81 Status Access API Section A 4 Argument cue Paramotor neon Deepon HANDLE Handle Device handle obtained with the function CPNT Open DRIVER 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 GetLastError 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 ces Paneer nien Beige 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 GetLastError 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 Para
52. 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 80 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 VersionInfo Argument Type Paramor Biweon Bein HANDLE 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 GetLastError 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 OXOO2F 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 3G8F7 CRM21 for the product 3G8F7 CRM21 It is 3G8F8 CRM21 for the product 3G8F8 CRM21 A 4 2 CPNT_GetDriverVersion
53. Interrupt to prevent any interrupts Confirm the INIEND or Notification of Initial process ends Poll the Interrupt Cause 0x0005 in Board PC Interrupt 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 SYSTEMEX 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 OP
54. 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 Board 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 Request 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 BD SND A CK Access rule Ww Initial value Interrupt Request confirmation Offset 0x0003 Flag REQ ACC REQ REF BD SND A CK Access rule R Initial value 100
55. Socket DCN5 TR4 For the following purposes it is used in combination with the DCN5 BR4 Flat Connector II Plug To 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 To connect a DCN5 TM4 Terminating Resistor to the trunk line or a sub trunk line Flat Connector II Plug DCN5 BR4 For the following purposes it is used in combination with the DCN5 TR4 Flat Connector II Socket To 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 To connect a communications cable to the Slave Unit 173 Preparing and Mounting Flat 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 4 Connector Socket and a A DCN4 BR4 Flat Connector Plug Special Tool DWT A02 A pressure welding tool Pliers Gn for DCN5 TR4 Flat SNC Connector II Socket and a e DCN5 BR4 Flat Connector II Plug E 4 1 Preparing Connectors for Round Cable Il
56. 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 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 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 Maste
57. 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 131 Shared Memory Area Specifications Section B 3 Logical Error Checking Items Registration Table 132 Data format Offset address 0x3908 Offset Bit Word 15 44 13112 11 10 09 08 07 06 05 04 03 02 01 00 Data rate Detailed format Access Description Data rate Read Write 0 4 Mbps 1 3 Mbps 2 1 5 Mbps 3 93 75 kbps These are the items used to check when a Slave Unit participates again after having a communications error They are set when 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 15 44 13112 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 Vendor Code Not checked Checked Device Type Not checked Checked Product Code Not checked Checked Major Revision Not checked Checked 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 inform
58. 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 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 it is properly pressure welded as shown below It must be locked on both right and left No space here 176 Preparing and Mounting Flat 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 blue 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 c 2 Setting the Cable Stopper required only when the cable is extended or when a Terminating Resistor is connected For extending cab
59. adage ees E e 99 B 3 Shared Memory Area Specifications 0 2 0 0 103 B 4 Command Specifications 1 0 2 0 0 0 ec cect ene eee 138 APPENDIX C Communications Performance 143 C 1 Remote I O Communications Performance eee 144 TABLE OF CONTENTS APPENDIX D Sample Program 220 ii e key dies seeeweayoess a 149 D 1 Sample Program esee e Sg be bad Be aes LAG Sg RURAL RR S a hore ea ee 150 APPENDIX E Installation and Setup ccccceeeccceseceeee 151 E 1 CompoNet Network Specifications 0 0 0 cece eee 152 E 2 Wiring Formations s iei Bo ode DEE a rap ng eg RR Hla Shee OR ILIA Ron 158 E 3 Wiring for a CompoNet Network 0 0 00 cece eee 160 E 4 Preparing and Mounting Flat Connectors on the Cables 0 00 172 E 5 Wiring for Power Supply 1 2 0 0 ec eee nee ene 187 ix TABLE OF CONTENTS About This Manual This manual describes the installation and operation of the 3G8F7 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 3G8F8 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 re
60. c eee eee eee eee 103 B 3 1 Shared Memory Area Map 0 00 c eee e esses 103 B 3 2 Board Information 0 00 cece eee cee eee nes 104 B 3 3 Basic Status Group in Detail 2 2 0 0 eee eee eee 106 B 3 4 Clock Details eee e es 109 B 3 5 JY ODatainDetails lle 110 B 3 6 Detailed Status Group in Details 00 00 e eee eee 113 B 3 7 CMD Areain Detail 20 eee cece 128 B 3 8 Event Area in Detail 129 B 3 9 Setting Area in Detail ce nee 131 B 4 Command Specifications lesse 138 B 4 1 CommandLlist eese 138 B 4 2 CommandinDetail sees eee 138 97 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 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 PCI register area 8 bit access 0x0000F 0x00010 Shared memory area 16 bit access Ox1FFFF Precautions for Correct Use eThe PCI reg
61. 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 It sets the PC WDT B 4 2 Command in Detail Command OPEN SYSTEM 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 OXCO00 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 138 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 WOFD data specification Set 1 ON to enable or O OFF to disable Description
62. 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 e Locations subject to exposure to water oil or chemicals including 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 C
63. error counter exceeds the threshold Registration table function state 0 OFF Registration table function is disabled 1 ON Registration table function is enabled Reserved area 0 Representative warning status flag OR condition of the warning status flags of all Slave Units Representative alarm status flag OR condition of the alarming status flags of all 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 Ox00B4 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 Description Second Read Write Set the second between 00 to 59 Minute Read Write Set the minute between 00 to 59 Hour Read Write Set the hour between 00 to 23 Day Read Write Set the day between 01 to 31 Month Read Write Set the month between 01 to 12 Year Read Write Set the lower two digits of the year between 00 to 99 109 Shared Memory Area Specifications Section B 3 B 3 5 I O Data in Details Word IN Data Bit IN Data 110 This stores the IN data from a Word IN Slave Unit Data format Offset address 0x0100 Offset Bit Word 15 1
64. is connected to the communications power supply connector on the Master Board or the Repeater Unit At the end of the network line there must be a DCN4 TM4 Terminating Resistor attached with a DCN4 TR4 Flat Connector Socket 161 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 A ii Terminatin Al lines 2 g 2 Resistor 121 Q Relay terminal block Communications sig Open Type Connector Slave Unit 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 power supply Terminating Resistor 121 Q Communications power Open Type Connector supply lines 2 BS BDHBDLBS Slave Unit BS BDHBDLBS BS BDHBDLBS Slave Unit Slave Unit Open Type Connector E 3 3 Wiring Flat Cable or Il 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 162 Wiring for a CompoNet Network Section E 3 e At the end
65. 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 nennen 2 1 2 Overview of the CompoNet Master Board 00 00 e eee ee 3 1 3 Component Name and Function 0 00 e eee eee eee 4 1 3 1 3G8F7 CRM21 for PCI Bus o n 0 6 eee eee 4 1 3 2 3G8F8 CRM21 for CompactPCI Bus 0005 5 1 4 LED Indication 2c thes nate SAR eate aa alge p 6 1 5 Network Construction Procedure 2 0 0 cece eee eee eee 7 1 6 Board Preparation Procedure 0 cece eee eee eee 8 l7 Specifications secet ete tte eet A d e ol t dee 9 1 7 1 General Specifications 0 0 cee eee eese 9 1 7 2 Development Environment 00 0 eee 9 1 7 3 Dmiensions i o tet DERESRSER EUR EE ean iea EE a 10 Overview of the CompoNet Network Section 1 1 1 1 Overview of the CompoNet Network High Speed 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
66. 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 L1 L2 L3 Ln Master Terminating Board Resistor 24 VDC Power Supply Slave Unit current consumption l3 Slave Unit current consumption l2 Slave Unit current consumption l1 Slave Unit current consumption In 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 formula expresses the relation between the available cables and the permissible cable extension length 10 V gt ly lo Ig I x Ry x Ly x 2 lo Ig Ip x Ro x Lo x 2 Ia 9 In x Rg x Lg x 2 lo x Rp x Ly x 2 Use the following approximation formula if you want to add some margin in the cable selection 10 V gt Hh lo Ig Il x Rx Lx 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 I3 In L m lt 200 ly l2 l3 ln 199 Wiring for Power Supply Section E 5 E 5 6 Precautions when Providing the I O Power Supply When building a system consideration m
67. may represent the result of OMRON s test conditions and the users must correlate it to actual application requirements Actual performance is subject to the OMRON Warranty and Limitations of Liability ERRORS AND OMISSIONS The information in this manual has been carefully checked and is believed to be accurate however no responsibility is assumed for clerical typographical or proofreading errors or omissions Copyright and Copy Permission This document shall not be copied for sales or promotions without permission This document is protected by copyright and is intended solely for use in conjunction with the product Please notify us before copying or reproducing this document in any manner for any other purpose If copying or transmitting this document to another please copy or transmit it in its entirety XV xvi 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 understand the information contained before attempting to set up or operate a CompoNet Network using CompoNet Master Boards 1 Intended Audiences 2 eno ged Sitar nine aged ented eae ed oars xviii 2 General Precautions ss onid eee seca e Ribes e eed EE E E xviii 3 Safety Precautions osos eec See DOM AT Ue s YEA Xix 4 Operating Environment Pr
68. 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 Register Board Reset Request Message CPNT_RegRESETNotifyMessage Section 4 5 Notify the Board reset request Start Communications cycles CPNT_StartCycle 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 45 Access to Detailed Status Group Section 4 6 4 6 Access to Detailed Status Group 4 6 1 46 Reading the Detailed Status Group The function CPNT_GetStatusEx is used to read out the detailed status group Open Board CPNT_Open Y Start Communications cycles CPNT StartCycle y Loop Start Initial processing y l O process and so on Y Read Detailed status group CPNT GetStatusEx Loop End Y Stop Communications cycles CPNT_StopCycle Y Close Board CPNT
69. of Repeater Unit 63 BitO 15 Serial Number of Repeater Unit 63 Bit16 31 Detailed format Access Description IO information I O size VendorCode Vendor code DeviceType Device type ProductCode Product code MajorRevision Major revision SerialNumber Serial number 123 Shared Memory Area Specifications Section B 3 I O size information format 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 200001 4 points 00010 8 points 00011 16 points 00100 32 points 200101 48 points 00110 64 points 200111 80 points 01000 96 points 201001 112 points 01010 128 points 201011 144 points 01100 160 points 201101 176 points 01110 192 points 201111 208 points 10000 224 points 210001 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 Number of IN channels points 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 200001 4 points 00010 8 points 200011 16 points 00100 32 points 200101 48 points 00110 64 points 200111 80 points 0
70. 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 CP CP Power supply t A S Power supply 24 VDC O o 24 VDC 200 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 Considerations Total cost and other elements as in below must also be included in the consideration of power supply method Capacity and the number of pour supply units Cable thickness or allowable current and length or voltage drop System safety and Wiring manhours 201 Wiring for Power Supply Section E 5 202 Index A Alarm Information 125 All Registered Slave Participation Standby Mode 34 All Registered Slave Unit Participating Flag 34 Allowable Current 198 API function 3 Asynchronous access 3 31 Basic status group 31 Bit IN Data 110 Bit OUT Data 112 Board ID 12 Board ID Switch 4 5 C cable label colors 175 178 cable stopper 175 177 182 Clock information 109 C
71. table RepeaterStructure 448 Repeater configuration information Alarm 112 Alarm information ErrorLog 321 Error log Tmp 7 Reserved area Content is indefinite RegistrationTableSample 17 Registration table example 31 See Appendix B 3 6 for the data format 83 Status Access API Section A 4 StatusExlInfo Parameter Duplication error flag O OFF Not the item to read among the Detailed Registration error status group Registored 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 10 Alarm information 11 Error log 12 to 18 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 Call Format Argument Returned value Remarks 84 Clear the Detailed status group BOOL CPNT ResetStatusEx HANDLE Handle WORD StatusExInfo Tipe Parameter Diecion Descipion Handle Device handle obtained with the function CP
72. the Units To prevent noise generation the power must be supplied separately from the communications power supply 187 Wiring for Power Supply Section E 5 Communications I O power power supply terminals supply terminals BD BD BS BS V H L es eee Sey a G Master Board eee ieee Round Cable Overcurrent protection 1 current limit 4 A 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 Il Flat Cable and Flat Cable Il 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 Communications power supply terminals 1 O power supply terminals l O power supply Master Board or Repeater Unit L Round Cable II Flat M Cabe or Flat Cable II i When complying with UL standards f d install a device to limit the current i LI Overcurrent protection between the external power supply w current limit 4 A and the Unit to 4 A or less for the x communications power supply Hr Communica tio
73. 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 Bit 0 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 O 27 Access to VO 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 S3 2 1 O e 16 Point Word OUT Slave Unit OUT area 15 14 13 12 1110 9 8 7 6 5 4 3 2 1 O e 32 Point Word IN Slave Unit
74. 0 Normal end 0x0000 At an error Status change not allowed 0x8101 e This command is used to start the I O communications when the I O communications manual startup function is enabled or after the I 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 The 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
75. 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 of 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 operati
76. 1 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 115 14 13 12 11 10 9 8 7 6 5 4 38 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 115 Shared Memory Area Specifications Section B 3 Repeater Configuration Error 116 Detailed format Name Access Description Registration error ON A Registration error Non registered Slave Non regis
77. 1 currentlimit 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 Overcurrent 7 VOIPUITSIT Shared communications protection P 1 1 current limit 4 A and I O power supply Round Cable II Flat Cable or Flat Cable II D ot Po eiminating Resistor Lo Eh Oe a ee nm H Branch TT bLEEPE 1 Port 1 Upstream lines Sub trunk 1 Port 2 Downstream CU O9 TU line tU TO OP Di Wlw t9 i ojojo Tir S UJ c c FPE SIT i lave Unit Slave Unit Slave Unit Round Cable II Flat Cable I or Flat Cable II PCIE A ET ie Overcurrent 1 protection 1 current limit 4 A Shared communications and I O power supply Round Cable Il Flat Cable Sub trunkline Flat Cable II ea Trunk line f ITI Terminating Slave Unit Multi power oU Te N supply RQ TE ain Port 1 Upstream lines us A Port 2 Downstream E 88 8 B Slave Units with E IF ft III tirF i network power supply Resistor vlel Multi power Co 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 com
78. 1 T Terminating Resistor must be connected at the end of the network Master Board or Repeater Unit Relay terminal block Terminating Resistor 121 Q Wo snis 1i Ye lunications signal ings 2 i i f r1 l 54 Ta n 4 TIRE ERES Communications Communications 4 d 1 1 1 i 1 1 1 1 1 i 1 1 1 1 1 i 1 artarena 0 00000 n APR i 1 1 1 1 1 Le c Slave Unit Open Type Connector Communications Communications Communications power supply 24 VDC power supply 24 VDC power supply 24 VDC 160 Wiring for a CompoNet 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 Commu nications Open Type Connector Communications Communications ended n V Open Type Connector ve BDHBDL BDH BDL Communications Communications Communications power supply 24 VDC power supply 24 VDC power supply 24 VDC E 3 2 Wiring Round Cable Il 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
79. 1000 96 points 201001 112 points 01010 128 points 01100 160 points 01110 192 points 10000 224 points 10010 256 points 01011 144 points 01101 176 points 01111 208 points 10001 240 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 the 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 124 Shared Memory 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 Slave Unit 0 to Repeater configuration info of Word IN 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 Bit IN Slave Unit
80. 11 Section B 3 Bit 10 09 08 07 06 05 04 03 02 01 00 StateStatus 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 anode 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 if a Slave Unit has an error due to unstable communications 04 Communications
81. 4 13 12 11 10 09 08 07 06 05 04 03 02 01 00 0 IN data of the Word IN Slave 0 1 IN data of the Word IN Slave 1 2 IN data of the Word IN Slave 2 to to 62 IN data of the Word IN Slave 62 63 IN data of the Word IN Slave 63 Detailed format Name Access Description IN Data Read Write It stores the IN data from a IN Slave Unit This stores the Bit IN data from a Bit IN Slave Unit Data format Offset address 0x0180 Offset Word Shared Memory Area Specifications Section B 3 Word OUT Data Detailed format Access Descripton Number of the node Read Write It stores Bit IN 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 111 Shared Memory Area Specifications Section B 3 Bit OUT Data 112 This stores the Bit OUT data given to a Bit OUT Slave Unit Data format Offset address 0x0280
82. 4 Operation by API Create a program to configure and control the CompoNet Master Board Functions v Section 5 5 Turn on the PC Operation by Shared Memory v Access and 6 Start up the created program Appendix D Sample Program wv 7 The communication starts and the Slave Units participate Specifications 1 7 Specifications 1 7 1 General Specifications Bus specification Section 1 7 Specifications 3G8F7 CRM21 PCI 3G8F8 CRM21 CompactPCI PCI bus Rev2 2 PICMG 2 0 R3 0 5V 5V 32 Bit 3U Number of mountable boards 4 pieces 7 pieces Compatible OS Microsoft Windows 2000 XP 32 Bit version Vista 32 Bit version 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 supply 24 VDC and 80 mA max Vibration resistance Conform to IEC60068 2 6 10 to 57 Hz Amplitude 0 075 mm 57 to 150 Hz Acceleration 9 8 m s 80 min in each direction of X Y and Z 8 min of each sweep time x 10 sweeps total 80 min Shock resistance Conform to IEC60068 2 27 147 m s 3 times in each direction of X Y and Z Ambient operating temperature 0 to 55 C Ambient operating humidity 0 to 90 RH with no condensation
83. 4 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 189 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 communications 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 ca
84. 5 TR4 Flat DCN5 TR4 Flat Connector II Socket Connector Il Plug E 3 8 Connection Locations for Terminating Resistors 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 Master Board end of the trunk line from the Master Board Terminating Resistor Trunk line Repeater Unit Slave Unit Sub trunk line j Do not connect the Terminating When there is a branch near the end Resistor at the same end of the l Slave Unit of line make sure the cable length a line as the Repeater Unit Ly is greater than length b a gt b B 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 169 Wiring for a CompoNet Network Section E 3 T
85. 5 mm thick Ask the cable manufacturer for information on which products are applicable to CompoNet 9 Black or Blue BDL White BDH 153 CompoNet Network Specifications Section E 1 Round cable II Use commercially available round cables each with four 0 75 mm thick conductors 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 Flat Cable DCA4 4F10 Standard Flat Cable 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 Flat Cable Il DCA5 4F10 Sheathed Flat Cable Black BS Red BS White BDH Blue BDL 154 CompoNet Network Specifications Section E 1 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 W
86. 58 57 56 55 54 53 52 51 50 Flags 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 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 78 77 76 75 74 73 72 71 70 69 68 67 66 94 93 92 91 90 89 88 87 86 85 84 83 82 110 109 108 107 106 105 104 103 102 101 100 99 98 126 125 124 123 122 121 120 119 118 117 116 115 114 Flags for Bit 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 78 77 76 75 74 73 72 71 70 69 68 67 66
87. AccessTolO To release the access right to I O data CPNT GetlnData To read the IN data from IN Slave Unit CPNT GetBitlnData To read the Bit IN data from Bit IN Slave Unit CPNT SetOutData To set the OUT data in OUT Slave Unit CPNT SetBitOutData A 1 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_SendExplicit To send an Explicit message CPNT_PeekExplicit To confirm an Explicit message response CPNT_RegReceiveExplicitNotifyM essage To register the notice that an Explicit response message is received CPNT_UnRegReceiveExplicitNotif yMessage To unregister the notice that an Explicit response message is received CPNT_ReceiveExplicit A 1 6 PC Watchdog Timer API Functions To read the Explicit response message These provide the PC Watchdog Timer function APMuncion Description O CPNT EnablePCWDTTimer To enable or disable the PC Watchdog Timer CPNT RefreshPCWDTTimer 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
88. Cat No W485 E1 01 3G8F7 CRM21 for PCI Bus 3G8F8 CRM21 for CompactPCI Bus CompoNet Master Board for PCI Bus CompactPCI Bus USER S MANUAL OMRON 3G8F7 CRM21 for PCI Bus 3G8F8 CRM21 for CompactPCI Bus CompoNet Master Board for PCI Bus CompactPCI Bus User s Manual Produced July 2009 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 NDANGER Indicates an imminently hazardous situation which if not avoided will result in death or serious injury Additionally there may be severe property damage A 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 thi
89. 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 communications 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 35 Detailed Settings at Communications Cycle Startup Section 3 5 36 4 1 4 2 4 3 4 3 4 5 4 6 4 7 4 8 Access to I O Data SECTION 4 Operation by API Functions Procedures used in WindowsOS 4 1 1 General Access to I O Data 0 00 eee ees 4 1 2 I O Data Access Synchronous with CompoNet Communications 4 1 3 Access to I O Data with Initial OUT Data Value Setting Function Detailed Setting at Communications Cycle Startup Explicit Messaging 4 3 Explicit Messaging 4 3 2 Explicit Messaging by Windows Messages lusus Explicit Messaging Implementing the Reset Request Access to Detailed Status Group 4 6 1 Reading the Detailed Status Group 000 0000 eee 4 6 2 Clearing the Detailed Status Group
90. EN SYSTEMEX Set the command OPEN SYSTEM or OPEN SYSTEMEX in the Command area PC BD 0x3200 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 Confirmation register 0x0003 changes to 0 Wait for a 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 Control 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
91. INS3 BITIN52 BITINS1 BITINSO BITIN49 BIT IN 48 BITIN 63 BITIN 2 BITIN 61 BITIN 60 BITIN59 BITIN58 BITIN57 BITIN 56 BITIN 71 BITIN70 BITIN 69 BITIN 68 BITIN67 BITIN66 BITING5 BITIN 64 BITIN 79 BITIN 78 BITIN 77 BITIN76 BITIN75 BITIN74 BITIN73 BITIN 72 BIT IN 87 BITIN86 BITIN85 BITIN84 perriNes BrriNa2 BITINS1 BITIN 80 BITIN95 BITIN94 BITIN93 BITIN92 BITIN91 BITIN90 BITIN amp 9 BITIN 88 BIT IN 103 BIT IN 102 BIT IN 101 BITIN 100 BITIN99 BITIN 98 BiITIN97 BITIN 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 BITIN 117 BITIN 116 BITIN 115 BITIN 114 BIT IN 113 BIT IN 112 BIT IN 127 BIT IN 126 BIT IN 125 BIT IN 124 BIT IN 123 BIT IN 122 BIT IN 121 BITIN 120 BIT OUT Data Allocation Area address BIT OUT 7 BIT OUT 6 BIT OUT 5 BIT OUT 4j 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
92. IT 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 29 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 Bit OUT area Bit IN Slave Unit whose node address is 0 and Bit OUT Slave Units whose node address is either O 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 eee ees ML e 4 Point Bit IN Slave Unit BIT IN area PASSE ses e 2 Point Bit OUT Slave Unit BIT OUT area E erg Neate eect 30 Status Section 3 3 e 4 Point Bit OUT Slave Unit BIT OUT area pete Hee Meee pg ene ae e 2 Inp
93. MD area 128 Command 52 138 Command OPEN SYSTEM 138 Command OPEN SYSTEMEX 139 Command REQUEST RESETSTATUS 142 Command REQUEST STATUS 141 Command SET PC WDT 142 Command START IOCYCLE 140 Command STOP CYCLE 141 Command STOP IOCYCLE 140 Communication Cycle Optimization Function 35 Communications connector 4 5 Communications Error Flag 107 Communications error flag 32 Communications power supply 187 Communications power supply connector 4 5 Communications stop due to communications error occur rence flag 35 Connecting the Master Board 165 CPNT ChangeToldleState 80 CPNT ChangeToRunsState 80 CPNT Close 72 CPNT EnablePCWDTTimer 93 CPNT_GetAccessToIO 86 CPNT_GetBitInData 87 CPNT_GetBoardVersion 81 CPNT_GetDriverVersion 81 CPNT_GetInData 87 CPNT_GetStatus 82 CPNT_GetStatusEx 32 46 83 CPNT_IsExistBoard 73 CPNT_Open 72 CPNT_PeekExplicit 33 90 CPNT_ReceiveExplicit 33 92 CPNT_RefreshPCWDTTimer 93 CPNT_RegBDWDTNotifyMessage 94 CPNT_RegReceiveExplicitNotifyMessage 91 CPNT_RegRESETNotifyMessage 95 CPNT_ReleaseAccessToIO 86 CPNT Reset 72 CPNT ResetStatusEx 84 CPNT_SendExplicit 33 89 CPNT_SetBitOutData 89 CPNT_SetDateTime 85 CPNT_SetOutData 88 CPNT StartCycle 24 73 CPNT StartCycleEx 24 33 35 75 CPNT_StopCycle 79 CPNT UnRegBDWDTNotifyMessage 94 CPNT UnRegReceiveExplicitNotifyMessage 91 CPNT UnRegRESETNotifyMessage 95 D detailed status group 32 d
94. NT Open StatusExInfo Specify the items of Detailed status group to clear It returns TRUE when the function succeeds It returns FALSE when an error occurs The error details can be obtained with the function GetLastError This is used to request to clear an item in the Detailed status group which can be cleared Status Access API Section A 4 StatusExlInfo Duplication error flag Registration error Registered Slave not participating flag Registration error Non registered Slave participating flag Repeater configuration error EO Slave Unit 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 Se
95. 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 Bit IN Slave Unit 10 by Bit OUT Slave Units 3 Slave type address of points Remarks Word IN Slave Unit o D o Word IN Slave Unit Word IN Slave Unit 2 Bit IN Slave Unit Bit IN Slave Unit Bit OUT Slave Unit Bit OUT Slave Unit ao N x uk Co O PN o j mi x N ogJ rnm NJN 24 Settings at Communications Cycle Startup Section 3 1 Note e Every 16 points of a Word IN Slave Unit or a 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 node 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 T 1 Used by Word IN Slave Unit with node address 1 ear E DUC UE ST eae nT
96. PC The PC will recognizes the Board as a new hardware The Found New Hardware Wizard will starts up Click the Next button 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 ae A device driver is a software program that enables a hardware device to work with ey an operating system This wizard will complete the installation for this device 2 Network Controller 4 device driver is a software program that makes a hardware device work 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 C 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 Faas Where do you want Windows to search for driver fil
97. RED INSTALLED AND MAINTAINED AND NOT SUBJECT TO CONTAMINATION ABUSE MISUSE OR INAPPROPRIATE MODIFICATION OR REPAIR xiii Application Considerations SUITABILITY FOR USE OMRON shall not be responsible for conformity with any standards codes or regulations that apply to the combination of products in the customer s application or use of the products At the customer s request OMRON will provide applicable third party certification documents identifying ratings and limitations of use that apply to the products This information by itself is not sufficient for a complete determination of the suitability of the products in combination with the end product machine System or other application or use The following are some examples of applications for which particular attention must be given This is not intended to be an exhaustive list of all possible uses of the products nor is it intended to imply that the uses listed may be suitable for the products Outdoor use uses involving potential chemical contamination or electrical interference or conditions or uses not described in this manual Nuclear energy control systems combustion systems railroad systems aviation systems medical equipment amusement machines vehicles safety equipment and installations subject to separate industry or government regulations Systems machines and equipment that could present a risk to life or property Please know and o
98. 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 CPNT_EX_TABLE structure CPNT_REGIS T_TABLE BitInNode Parameter RegTable Specify the maximum number of occupied Bit IN Slave Units Settable range 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 Communications Control API Section A 3 si eae Flag Description 0 OFF Not Checked VendorCode DeviceType ProductCode MajorRevision 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 Explicit 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 Para
99. 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 Function Description Data rate 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 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 9 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
100. Stop Due to Communications Error function D 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 LED Indicators MS and NS This is used to set the board ID It is set as a 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 IT TI Communications power supply connector This is used to connect a 24 VDC power supply when either round cable Il 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 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 con
101. This procedure is required only to connect a round cable II to a Terminating Resistor Preparing and Names of Flat Connecter Socket components Mounting the DCN4 Mieres Connector Cover Housing OCkelS 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 C Green or Blue Black 174 Preparing and Mounting Flat Connectors on the Cables Section E 4 Note 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 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 Once it is attached the housing cannot be removed from the cover If you attempt to remove it forcibly you may damage the connector 175 Preparing and Mounting Flat Connectors on the Cables Section E 4 5 Pressure Welding the Connector
102. UT Slave Unit0x70 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 Ox10 0x20 0x40 0x50 0x70 Word IN Slave Unit Word MIX Slave Unit Word OUT Slave Unit Bit IN Slave Unit Bit MIX Slave Unit Bit OUT Slave Unit Repeater Unit Node address Hex 0x0601 Illegal Interrupt Cause A hardware error occurs 0x00 Indefinite value 0x0602 68 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 APPENDIX A API Function Reference PUNCH OMT ASE cere a ta Aoi nies ee hein ite 70 A l 1 Board Control API Functions 00 0 0 cee eee eee ee 70 A 1 2 Communications Control API Functions 000 70 A 1 3 Status Access API Functions 0 0 00 cee eee eee eee 70 A 1 4 I O Data Access API Functions 00 00 eee eee eee 71 A 5 Explicit Messaging API Functions 000 000 0000 71 A 1 6 PC Watchdog Timer API Functions 000200005 71 A 1 7 Board Request Notification API Functions 71 Board Control API 2 65 cc oe een ee a eee a eee i 72 A 2 1 CPNT Open Open Board lesse 72 A 2 2 CPNT Close Close Board
103. WT A01 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 Special Tool Pliers Gasset cover 3 2 Squeeze the Pliers firmly until the lock on the Connector clicks into place Note Do 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 it is properly pressure welded as shown below No space here Uf Te EAD O HH P24 fi __ PVA RAT CILI 181 Preparing and Mounting Flat Connectors on the Cables Section E 4 E 4 3 Preparing Connectors for Flat Cables II 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 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 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 cab
104. WordSize Specify the Word size of the Bit OUT data to write Observe 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 GetLastError Remarks See Appendix B 3 5 for the content of Bit OUT data A 6 Explicit Messaging API A 6 1 CPNT SendE xplicit Send Explicit Message Purpose Send Explicit Messages Call Format BOOL CPNT SendE plicit HANDLE Handle CPNT EXPLICIT REQ ExplicitReq Argument Type Preme Biweon Bed 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 GetLastError 89 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 Set a 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 U
105. able 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 II Do not use other types of cables Cable type Major applications With or without a communications BDH BDL BS BS suppl Poer SPEY signal signal positive side of negative side of high low communications communications power supply power supply Round cable Wiring To wire with a commercially without white black None None 2 conductor between the available cable or blue cable Master To supplypower separately Board anda from the communications Repeater power Unit Not to use a Bit Slave Unit Round cable Il d 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 To use the communications with white blue red black standard cable to supply the cable communications power to all Slave Units To use one or more Bit Slave Units Flat Cable Il To use the communications with white blue red black sheathed cable to supply the cable communications power to all Slave Units To use one or more Bit Slave Units To use in an environment conforming to IP54 splash proof and drip proof Round cable I Use commercially available round cables each with two 0 7
106. ables from each other by at least 5 mm regardless of whether Flat Cable I or Il is used Do not bundle the Flat Cables This is to prevent unstable operation of the system due to interference xix Application Precautions xx 5 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 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 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 When installing the Unit ground to 100 Q min 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 Be sure the Board on the PC is securely mounted All installation and wiring must observe the instructions in this manual Use correct wiring tools and components for wiring Confirm the orientation and polarity before conn
107. ad 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 cables 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 API 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 Trademarks and Co
108. 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 Interrupt Mask Offset 0x0004 Flag INIEND Unused REQ_RES SND_ACK CMD_ACK Access rule Initial value 101 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 Initial value 102 Shared Memory Area Specifications B 3 Shared Memory Area Specifications B 3 1 Offset address 0x0010 to Ox001 1 0x0012 to 0x0013 0x0014 to 0x0041 Group Board information group Shared Memory Area Map Name Initialization end notification Word size Byte size 1 2 Access R Section B 3 Update timing Initialization Running program ID 1 2 R Initialization Identity information 23 46 Initialization 0x0042 to 0x0079 0x007A to 0x00B1 Ox00B2 to 0x00B3 Basic status group Participation flag 28 As needed Communications error flag As needed StateStatus As needed Ox00B4 to OxOOBF Clock group Clock data A
109. al power supply and the Unit to 4 A or 1 less for the communications power supply Round Cable II Flat Cable or Flat Cable II Sub trunk line Slave Unit Slave Units with network power supply Overcurrent protection 1 current limit 4 A 1 1 Shared communications and I O power supply Sub trunk line Round Cable II Flat Cable or Flat Cable II Terminating Resistor Slave Units with network power supply Slave Unit I O power supply Multi power supply 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 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 197 Wiring for Power Supply Section E 5 Allowable Current Restrictions The total current consumption of all Slave Units must not exceed the allowable limit for the communications cables and connectors Flat Connector Plug 5 A max E Flat Connector Socket 5 A max Terminating Resistor Master Board Slav
110. and Date when the error occurred this data uses the time information notified by the user application 66 Error Log Error Log Saving Area Reading or Clearing the Error Log Table 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 RAM 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 The Error Log Tables can be read or cleared by the Detailed status group 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 0x0001 PC_WDT Error Cause PC WDT is timed out Description Detailed Information EEPROM 1st byte 2nd byte 0x0370 Registration Error Registered Slave not participating Cause A Slave Unit that was r
111. artup by the user application reen communications startup or when the user application explicitly requests an idle state O O ae The I O communications is active It can have explicit messaging as 1 0 communications Green Green well LED indication O Light Flash Unlit The communications stops O icati The state is achieved when th licati licitl t Communications stopped e state is achieved when the user application explicitly requests a Green communications 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 icati icati ici 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 it is 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 a PC 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 error of Identity Obj
112. aster Board to the PC has the following format The data size is fixed Data format Offset address 0x3210 Offset Bit Word 14 13 12 11 10 09 08 D 06 05 04 03 02 01 i 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 Memory Area Specifications Section B 3 B 3 8 Event Area in Detail Event area PCS BD This area is used when an explicit request message is sent by the PC to the CompoNet Master Board or to a Slave or Repeater Unit Data format Offset address 0x3300 Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 Byte length size after 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 ServiceData 530 Detailed format Access Description Read Write The same value is added to the response of a sent explicit message It is used to identify to which request the response pertains Set a certain value by the user application Settable range 0x00 to OxFF Node address with Read Write It specifies the destination
113. ation on the table function Section B 3 Shared Memory Area Specifications Data format Offset address 0x390C Bit 00 07 06 05 04 03 02 01 15 14 13 12 11 10 09 08 Function setting Time to wait for a registered Slave Unit to participate Checking items for the Registration Reserved 0x00 Table I O size information of Word IN Slave Unit 0 to I O size information of Word IN 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 Slave Unit 0 to I O size information of Bit IN Slave Unit 127 I O size information of Bit OUT Slave Unit 0 to I O size information of Bit OUT Slave Unit 127 Vendor Code of Word IN Slave Unit 0 to Vendor Code of Word IN 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 Slave Unit 0 to Vendor Code of Bit IN Slave Unit 127 Vendor Code of Bit OUT Slave Unit 40 to Vendor Code of Bit OUT Slave Unit 127 Device Type of Word IN Slave Unit 0 to Device Type of Word IN Slave Unit 463 Device Type of Word OUT Slave Unit 40 to Device Type of Word OUT Slave Unit 63 Device Type of Bit IN Slave Unit 0 to Device Type of Bit IN Slave Unit 127 Device Type of Bit OUT Slave Unit 0 to Device Type of Bit OUT Slave Unit 127 Product Code of Word IN Slave Unit 0 to Product Code of Word IN Slave Unit 63 Product Code
114. be same in type Cables upstream the Repeater Unit can be different from those in downstream Unit Cable Sub trunk line All cables in this range must be same in type 155 CompoNet Network Specifications Precautions for Correct Use Round cable I round cable II Flat Cable and Flat Cable II are all treated as Separating Cables of a CompoNet System from Others for Another System different types of cables Section E 1 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 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 Slave Unit Sub trunk line In Data Rate of 4 Mbps No T branching allowed B T branch connection N Multidrop connection CompoNet Master Board Trunk line length Branch line length m Terminating Resistor Terminating rone t Resistor Repeater ul Repeater Unit nit Branch line i Unit Branch line Branch
115. bled I O communications manual startup function flag 0 OFF Disabled 1 ON Enabled IN data zero clear due to communications error function flag 0 OFF Disabled 1 ON Enabled Reserved area Always set to 0 OFF Registration table function flag 0 OFF Disabled 1 ON Enabled When it is enabled set the necessary data to the structure CPNT_EX_TABLE 75 Communications Control API 76 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 it is 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 it is 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 WORD Parameter OutNode Description Specify the maximum number of occupied Word OUT Slave Units Settable range 0 to 64 WORD InNode
116. bserve all prohibitions of use applicable to the products NEVER USE THE PRODUCTS 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 PRODUCTS ARE PROPERLY RATED AND INSTALLED FOR THE INTENDED USE WITHIN THE OVERALL EQUIPMENT OR SYSTEM PROGRAMMABLE PRODUCTS OMRON shall not be responsible for the user s programming of a programmable product or any consequence thereof xiv Disclaimers 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 model numbers when published ratings or features are changed or when significant construction changes are made However some specifications of the products may be changed without any notice When in doubt special model numbers may be assigned to fix or establish key specifications for your application on your request Please consult with your OMRON representative at any time to confirm actual specifications of purchased products DIMENSIONS AND WEIGHTS Dimensions and weights are nominal and are not to be used for manufacturing purposes even when tolerances are shown PERFORMANCE DATA Performance data given in this manual is provided as a guide for the user in determining suitability and does not constitute a warranty It
117. 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 the causes to be confirmed by the polling into O Een 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 S3 Communications Cycle Control Procedures 5 1 4 Command Access Control Operation procedure Set the command Section 5 2 Access to Shared Memory 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 command set has been notified In the Interrupt Request Confirmation register 0x0003 confirm that the CMD flag turns to 0 Wait for a command acknowledgment ACK In the Interrupt Request Indication register 0x0005 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
118. d Units per branch line 1 1 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 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 Item Round cable I Round cable Il Flat Without With Cable I or Il branch branch lines lines Length of a trunk line or a sub 100 m 30m 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
119. d Cable or Il with Open Type MvVMUlIIIVVIUVIS M3 terminal DCN4 TB4 Open Type Connector block for connecting a Unit Communications connector Connectors oO S lave or Repeater Unit 167 Wiring for a CompoNet Network Section E 3 Using Flat Cable with Multidrop Connectors DCN4 BR4 Flat Connector Plug p DCN4 MD4 Multidrop Connector Slave or Repeater Unit Using Flat Cable Il Flat Cables Il 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 ef Trunk or sub trunk line Trunk or sub trunk line Flat Connector Plug Terminatin Flat Connector Plu g j Resistor Extensions can be done up to 10 levels That is 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 lt i DCN4 TR4 Flat DCN4 BR4 Connector Socket Flat Connector Plug 168 Wiring for a CompoNet Network Section E 3 Flat Cable Il Attach a DCN5 BR4 Flat Connector Il Plug to a DCN5 TR4 Flat Connector II Socket having an internal stopper DCN
120. dress 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 272 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 It stores 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 ServiceCode Read Write This specifies the service code defined by an explicit message Settable range 0x0000 to OxOOFF 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
121. e Unit current consumption In Slave Unit current consumption l Slave Unit current consumption l2 Slave Unit current consumption la Allowable Currents for Cables The communications cable must have a larger capacity than the total current consumed by all Slave Units Allowable current on the communications cable gt l4 l2 Ig ln 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 Multidrop 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 CompoNet Master Board 3G8F7 CRM21 5A UL 4A Round cable or Il Flat Cable 3G8F8 CRM21 lor Il Communications CRS1 RPTO1 power supply connectors on Repeater Units Flat Connector DCN4 TR4 Sockets DCN5 TR4 Flat Connector Plugs DCN4 BR4 DCN5 BR4 Multidrop DCN4 MD4 Connectors Precautions for Correct Use 198 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
122. e process time for an actual application 147 Remote I O Communications Performance Section C 1 148 APPENDIX D Sample Program D I Sample Program ue god patie gon Sie bee ee Sel E IC Pana hanes Re 150 149 Sample Program Section D 1 D 1 Sample Program The CD packaged with the product contains the sample program The program corresponds to the descriptions 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 150 E 1 E 2 E 4 E 5 CompoNet Network Specifications 0 0 0 0 ce eee eee ee nee E 1 1 E 1 2 E 1 3 Communications Specifications sses ee eee eee eee Communications Cables 0 0 0000 0 cee eee APPENDIX E Installation and Setup 152 152 153 Maximum Length and Maximum Number of Connectable Slave Units for Each Type of Cable 156 Wiring Formations E 2 1 E 2 2 Trunk Line Branch Line Formation 0000005 Unrestricted Wiring Formation 0 0 00 eee eee eee Wiring for a CompoNet Network 00 0c ce cece ees Wiring Round Cablel 0 0 0 0 0 ccc ees Wiring Round Cable II 00 eee tees Wiring Flat Cable LorI 2 ee ee eee ee eee E 3 1 E 3 2 E 3 3 E 3 4 E 3
123. ecautions 2 eese xix 5 Application Precautions 0 0 c ccc ee Xix 6 Conformance with the EC Directives 0000 cee cece eee xxii 6 1 Applicable Directives lesse xxii 6 2 Concepts eve aes Gas r a E Serle LG e peces xxii 6 3 Conformity oe et eet o etc t ab ee a xxii xvii Intended Audience 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 Personnel in charge of introducing FA systems Personnel in charge of designing FA systems 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 your 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 mechan
124. ecting the terminal blocks or connectors Do not supply electricity while a terminal block cover is open Confirm voltage specifications before wiring the communications lines the power supplies or the I O circuits Incorrect specification may result in a malfunction 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 Use crimp terminals for wiring Do not connect bare stranded wires directly to terminals The connection of bare stranded wires may result in burning Double check all wiring and switch settings before turning ON the power supply Incorrect wiring may result in burning 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 Always use the power supply voltages specified in the operation manual A malfunction or burning may occur as the result of incorrect voltage Take appropriate measures to ensure that the specified power with 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 Check the user program for proper execution before actua
125. ects 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 Units the Basic status group e Slave Unit has an failure stop due to unstable communications Network error 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 6 Unlit Not applicable Communications error 65 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 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
126. ed the remote I O communications starts If it is enabled the remote I O communications will not start Here is the behavior in each case 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 If any non registered Slave Unit participates then it is a registration 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 If not all of the registered Slave Unit participate within the Registered Slave Unit Participation Time 1 2 after a power on 3 it is 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 Partic
127. ed sections before attempting any of the procedures or operations WARNING xii Read and Understand this Manual Please read and understand this manual before using the product Please consult your OMRON representative if you have any questions or comments Warranty and Limitations of Liability WARRANTY OMRON s exclusive warranty is that the products are free from defects in materials and workmanship for a period of one year or other period if specified from date of sale by OMRON OMRON MAKES NO WARRANTY OR REPRESENTATION EXPRESS OR IMPLIED REGARDING NONINFRINGEMENT MERCHANTABILITY OR FITNESS FOR PARTICULAR PURPOSE OF THE PRODUCTS ANY BUYER OR USER ACKNOWLEDGES THAT THE BUYER OR USER ALONE HAS DETERMINED THAT THE PRODUCTS WILL SUITABLY MEET THE REQUIREMENTS OF THEIR INTENDED USE OMRON DISCLAIMS ALL OTHER WARRANTIES EXPRESS OR IMPLIED LIMITATIONS OF LIABILITY OMRON SHALL NOT BE RESPONSIBLE FOR SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES LOSS OF PROFITS OR COMMERCIAL LOSS IN ANY WAY CONNECTED WITH THE PRODUCTS WHETHER SUCH CLAIM IS BASED ON CONTRACT WARRANTY NEGLIGENCE OR STRICT LIABILITY In no event shall the responsibility of OMRON for any act exceed the individual price of the product on which liability is asserted IN NO EVENT SHALL OMRON BE RESPONSIBLE FOR WARRANTY REPAIR OR OTHER CLAIMS REGARDING THE PRODUCTS UNLESS OMRON S ANALYSIS CONFIRMS THAT THE PRODUCTS WERE PROPERLY HANDLED STO
128. ee ed Ge Ed Cs 52 5 2 Communications Cycle Control Procedures 0 0 2 eee eee eee 54 5 3 Setting the Time Information 0 0 00 ccc I n 59 5 4 Implementing the Reset Request llle es 59 5 PC Watchidog Timer cose ep eR be ow IR ERE RP Pen ULAPEPS MERO 60 5 6 Board Hardware Error Notification 0 0 0 0 cece n 61 SECTION 6 Troubleshooting 00 00 0 09 000 00 09 0090 00 0 0000000900909 9 99 9 9 6 63 6 1 LED Indications and Error Handling 0 0 eee ee eee 64 62 Brorbog c Gad a Rind ee Reet edit i es tape Bs REA Spe WE 66 APPENDIX A API Function Reference ccccccccccccee 69 Al Function List 34e ayes dda tea oy eS HARE GE ORES 70 A gt Z Board Control API tV oes aaa RAIDER Goa RR ae ate s 72 A 3 Communications Control API 0 0 0 eect n 73 A 4 Status Access APL Ss ceca ane ee rete ep Ee HRS e prd ES o ER D RS 81 A 5 VO Data Access APT sueseuee ete es eoe Beas erp xe Re e HER eR 86 A 6 Explicit Messaging APIs 0c tibet ot ee Aoi eed wk elie SUA E e ero ree 89 A 7 PC Watchdog Timer API 3 65 30 wea RR ee yv d ep eR e es 93 A 8 Board Request Notification API 2 cece eee 94 A 9 Errors Detectable by Functions 0 0 c eee cece eens 96 APPENDIX B Shared Memory Interface 97 B 1 PCIReSOUICeS o eO Rer Re Ie eee e dte as sae ae 98 B 2 PCI Register Specifications ende epe ge ale egere
129. egistered to the Registration table has not participated yet 0x0372 Registration Error Non registered Slave Word IN Slave Unit Node address Hex participating Cause A Slave Unit that was not registered to the Bit IN Slave Unit Registration table is now on the network Word MIX Slave Unit Word OUT Slave Unit Bit MIX Slave Unit Bit OUT Slave Unit 0x0374 Communications Error Cause Separated A Slave Unit or Repeater Unit has Word OUT Slave Unit Word IN Slave Unit Node address Hex Word MIX Slave Unit Bit IN Slave Unit Bit MIX Slave Unit Bit OUT Slave Unit Repeater Unit 67 Error Log Section 6 2 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 Detailed Information 0x10 0x20 0x40 0x50 1st byte Word IN Slave Unit Word MIX Slave Unit Word OUT Slave Unit Bit IN Slave Unit Bit MIX Slave Unit Bit OUT 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 Ox10 0x20 0x40 0x50 Word IN Slave Unit Word MIX Slave Unit Word OUT Slave Unit Bit IN Slave Unit Bit MIX Slave Unit Bit O
130. egistration 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 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 11 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 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 11 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 60 59 58 57 56 55 54 53 52 51 50 49 48 12 79 78 77 76 75 74 73 72 7
131. emarks 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 IN Device handle obtained with the function CPNT Open 86 VO 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 GetLastError Remarks To execute this function the I O communications must be running A 5 3 CPNT GetlnData Get IN Data from Word IN Slave Unit Purpose Read the IN data from Word IN Slave Units Call Format BOOL CPNT GetlnData 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 ret
132. epeater Unit Trunk line or Round Cable II Flat Cable sub trunk line or Flat Cable II ee Repeater Unit Communications power supply Sub trunk Round Cable Il Flat Cable The communications line or Flat Cable II power is supplied to the downstream communications port power supply connector on the Repeater Unit Master Board The communications power Repeater Unit can be supplied only to the I communications power supply power supply connector on the Master Unit Round Cable Il Flat Cable eni or Flat Cable Il Trunk line or sub trunk line A Ll oe Repeater Unit Aslave Unit 777777 Sub trunk Round Cable II Flat Cable line or Flat Cable II TI The communications power can be supplied only to the down Slave Unit stream port communi cations power supply Communications connector on the Re power supply peater Unit 195 Wiring for Power Supply Section E 5 Using Round Cable with Round Cable Il Flat Cable I or Flat Cable Il 196 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 Repeater Unit Communications power supply Trunk line or
133. er of the pressure welding block on the DWT A01 Pliers Special Tool Pliers Connector cover L ch LI 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 it is properly pressure welded as shown below It must be locked on both right and left No space here 179 Preparing and Mounting Flat Connectors on the Cables Section E 4 Preparing and Names of Flat Connector Plug components Mounting the DCN4 BR4 Flat Connector Cable labels Plugs 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 coming out O X SS c 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 180 Preparing and Mounting Flat Connectors on the Cables Section E 4 3 Pressure Welding the Connector Use a D
134. es ey Search for driver files for the following hardware device e 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 IV fives Specify a location 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 Driver Files Search Results a The wizard has finished searching for driver files for your hardware device e The wizard found a driver for the following device 2 Network Controller Windows found a driver for this device To install the driver Windows found click Next cdd aiNcn3g8f7 inf Cancel 5 The installation is complete when the following page is shown and the Finish button is clicked Found New Hardware Wizard E Completing the Found New Hardware Wizard D CompoNet PCI Master Windows has finished installing the software for this device To close this wizard click Finish Cancel 16 Connecting the Communications Cables Section 2 3 2 3 Connecting the Communications Cables This section outlines the connection procedures in a CompoN
135. es 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 operation is notified to the Board 60 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 Set the CMD flag of the Interrupt Trigger register 0x0002 to 1 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
136. ess 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 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 78 77 76 75 74 73 72 71 68 67 66 94 93 92 91 90 89 88 87 84 83 110 109 108 107 106 105 104 103 99 126 125 124 123 122 121 120 119 Flags for Bit OUT Slave ese values are the corresponding part 14 13 12 31 010 9 8 7 30 29 28 27 26 25 24 23 46 45 44 43 42 41 40 39 62 61 60 59 58 57 56 55 78 77 76 75 74 73 72 1 94 93 92 91 90 89 88 87 114 Shared Memory Area Specifications Section B 3 Registration Error Non registered Slave Participating Flag Detailed format Name Access Description Registration error ON A R
137. ess 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 Tpc Termout TNetCyc TNetout access Bit Output Unit Tout Synchronous Word Output Unit Tpc Termout TNetCyc X 2 TNetout access Bit Output Unit TRelAce Tout C 1 3 Descriptions of Parameters TIN Input Slave Unit input delay time Tout Output Slave Unit output delay time TNetCyc Communications cycle time TNetln Time allotted for IN frames in communications cycle time TNetOut Time allotted for OUT frame in communications cycle time Termin Input processing time at the Master Board Termout Output processing time at the Master Board TRelAcc Processing time to release an access right Tpc Time for a PC to process the application 144 Remote I O Communications Performance Section C 1 Ty Input Slave Unit Input Delay Time Tou1 Output Slave Unit Output Delay Time TwetCyc Communications Cycle Time For details on input output delay times for individual Slave Units refer to the input specifications for individual Slave Units in t
138. et 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 17 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 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 18 Connecting the Communications 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 II Flat Connector Plug DCN4 BR4 Flat Connector Il Plug DCN5 BR4
139. fied 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_UnRegRESETNotifyMessage HANDLE Handle Type Parameter Direction Desorption HANDLE Handle IN 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 GetLastError It returns TRUE when the message has been successfully unregistered It returns FALSE when an error occurs Detailed error content can be obtained with GetLastError 95 Errors Detectable by Functions Section A 9 A 9 Errors Detectable by Functions If an error occurs while an API function is executed details of the error can be obtained with the function GetLastError 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
140. freshing the communications cycle stops e See Section 4 7 for the PC WDT function 93 Board Request Notification API Section A 8 A 8 Board Request Notification API A 8 1 CPNT RegBDWDTNotifyMessage Register Board Hardware Error Message Purpose Register the Windows message to notify a Board hardware error Call Format BOOL CPNT RegBDWDTNotifyMessage HANDLE Handle DWORD Threadld HWND hWnd UINT Msg j5 Argument 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 Returned value 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 GetLastError Remarks 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 O 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 Unregister the Windows message to no
141. g Flat 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 it is used in combination with a DCN4 BR4 Flat Connector Plug To 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 make a sub branch line It is used alone for the following purpose e To connect a DCN4 TM4 Terminating Resistor to the trunk line or a sub trunk line Flat Connector Plug DCN4 BR4 For following purposes it is used in combination with a DCN4 TR4 Flat Connector Socket To 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 make a sub branch line It is used alone for the following purposes To connect a communications cable to the Slave Unit To connect a communications cable to a DCN4 MD4 Multidrop Connector and obtain a multidrop connection Flat Connector II
142. h 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 kesh cer awd ese SeesGeds ace XVI Intended Audience s erbe ERREUR ge Dee Gaede Hes des xviii 2 General Precautions coe epe rV NER ERI EAR ACHT Y m des xviii 3 Safety PrecautiODS ees reta e Be HES E RE e E ee eee UAM APRI tale AA Xix 4 Operating Environment Precautions lese Xix 5 Application Precautions sse es enone mi a cence eee eens XIX 6 Conformance with the EC Directives 0 0 cece ee xxii SECTION 1 Outline of CompoNet and CompoNet Master Board 1 1 1 Overview of the CompoNet Network 2 0 0 0 ene 2 1 2 Overview of the CompoNet Master Board eese 3 1 3 Component Name and Function 0 0 0 e 4 1 4 LED Indication nece fuscia gee ste ge RUE EE DU S ic RA deta we a ota 6 1 5 Network Construction Procedure llsseeleeeee eee 7 1 6 Board Preparation Procedure 0 0 0 cee cence eee 8 1 7 Speci cations 655 eee eee ber EE NS A a es Slee Se EM rae 9 SECTION 2 Installation and Setup
143. he CompoNet Slave Unit Operation Manual Cat No W457 4 0 Mbit s 3 0 Mbit s 1 5 Mbit s 93 75 kbit s Communications 0 74 ms G 0 78 ms G 1 80 ms G 23 82 ms G S1 S2 S1 S2 0 57ms G 0 57ms G 1 40ms G 16 11ms G S1 S2 S1 S2 The figures in parentheses are when message communications are not used G Number of Word Output Slave Units connected x additional 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 4 0 Mbit s 3 0 Mbit s 1 5 Mbit s 93 75 kbit s Slave Unit Type Word Output Unit 170 93 us Word Input Unit 657 50 us Bit Output Unit 21 25 us Bit Input Unit 531 09 us G Calculation Example Conditions Word Outputs Word Inputs Bitoutputs Bit inputs Z0 Mbits 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 Save 3381s ons Bes OOO 145 Remote I O Communications Performance Section C 1 T
144. he 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 To access the shared memory area the command OPEN SYSTEMEX is used Example Registration table Node address Model 00 CRT1 ID16 01 CRT1 ID16 1 02 CRT1 0D164 4 A 1 Master Board The model differs Due to this difference the Slave Unit cannot I I I I I I I I I participate i IN Slave Unit IN Slave Unit OUT Slave Unit y Node address 00 Node address 01 Node address 02 _ LL CRT1 ID16 CRT1 ID16 1 CRT1 OD16 1 d 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 33 Detailed Settings at Communications Cycle Startup Section 3 5 Behavior Setting the Registered Slave Unit Participation Time All Registered Slave Participation Standby Mode 34 When the All Registered Slave Participation Standby Mode as described later is then disabl
145. hite 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 II other than DCA5 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 Precautions for Correct Use 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 Il 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 Selecting applicable See the above description regarding cable types and select those that are cable types appropriate for the purpose Using Different Cable All cables downstream from the Master Board must be of the same type This Types 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
146. ic 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 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
147. ications I O size i nformation format Number of IN channels points Section B 3 Description Set the number of IN channels of Slave Units Set the Bits 0 to 5 to 0 OFF when the number of IN channels is zero 00000 2 points 00010 8 points 200100 32 points 00110 64 points 01000 96 points 01010 128 points 01100 160 points 01110 192 points 10000 224 points 10001 240 points 10010 256 points others prohibited 00001 4 points 00011 16 points 00101 48 points 00111 80 points 01001 112 points 01011 144 points 01101 176 points 01111 208 points IN setting enabled flag 0 Disabled IN number setting 1 Enabled IN number setting Reserved area Set 0 OFF Number of OUT channels Set the number of OUT channels for Slave Units 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 flag 0 Disabled OUT number setting 1 Enabled OUT number setting Reserved area Don t care Network Parameter Slave Uni
148. ications 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 It is 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 119 Shared Memory Area Specifications Section B 3 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 07 06 05 04 03 02 01 00 Error counter value for Word IN Error counter value for Word IN Slave Unit 1 Slave Unit 0 to to Error counter value for Word IN Error counter value for Word IN Slave Unit 63 Slave Unit 62 Error counter value for Word OUT Error counter value for Word OUT Slave Unit 1 Slave Unit 0 to to Error counter value for Word OUT Error counter value for Word OUT Slave Unit 63 Slave Unit 62 Error counter value for Bit IN Slave Error counter value for Bit IN Slave Unit 1 Unit 0 to to Error counter value for
149. ications error flag of each node Error Flag Data format Offset address 0x007A Communications error fla Word IN Slave Units These values are the correspon part of each node addre 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 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 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 Communications error flag for BIT IN 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 78 77 76 75 74 73 72 71 70 69 68 67 66 94 93 92 91 90 89 88 87 86 85 84 83 82 110 109 108 107 106 105 104 103 102 101 100 99 98 126 125 124 123 122 121 120 119 118 117 116 115 114 Communications error flag for BIT OUT Slave Units ese values are the corresponding part of each
150. ipation Time is 30 seconds in the data rate of 93 75 kbps but it is 10 seconds in other data rates 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 registered 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 but it is 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 Detailed Settings at Communications Cycle Star
151. isms 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 A WARNING It is 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 your OMRON representative before applying a PLC System to the above mentioned applications xviii Safety Precautions 3 3 Safety Precautions A WARNING A WARNING WARNING A 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 accidents may result from abnormal operation if proper measures are not provided Provide safety measures in external circuits i e not in the personal computers that ensure safety of the system in any event of an abnormality
152. ister 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 98 PCI Register Specifications Section B 2 B 2 PCI Register Specifications B 2 1 PCI Register Map Offset 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 Ox0005 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 Access rule 3 Initial value The value set by the rotary switch BD D bitO 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 bit3x29 bit2x2 bit1x2 bitox29 B 2 3 Board Reset Offset 0x0001 Flag Reserved Reserved Reserved Reserved Reserved Reserved Reserved Access rule gt Initial value z BD_RST bit0 When you set this flag to 1 you can have a hardware reset on the CompoNet Master Board 99 PCI Register Specifications B 2 4 Section B 2 Interrupt Control Register Interrupt from
153. le stopper in advance Put the cable in the cover Position the cable so that the cable tip touches the stopper 182 Preparing and Mounting Flat 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 183 Preparing and Mounting Flat 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 AO2 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 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 Special Tool Pliers c ver 4 184 Preparing and Mounting Flat Connectors on the Cables Section E 4 Preparing and Mounting the DCN5 BR4 Flat Connector
154. led error content can be obtained with GetLastError The function CPNT SendExplicit must be executed in prior to this function 91 Explicit Messaging API Section A 6 A 6 5 CPNT_ReceiveExplicit Get Explicit Response Message Purpose Read the Explicit response message Call Format BOOL CPNT_ReceiveExplicit HANDLE Handle CPNT_EXPLICIT_RES ExplicitRes Argument Type Pme nmn Bein HANDLE Handle Device handle obtained with the function CPNT Open CPNT EXPLI ExplicitRes Set the pointer to store the CIT RES response 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 GetLastError Remarks The function CPNT_SendExplicit must be executed prior to this function CPNT EXPLICIT RES structure Parameter Description Sid Stores the same value as set for Sid of a request Rsv 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 Bit IN Slave Unit MAC address 128 Node address For Bit OUT Slave Unit MAC address 256 Node address Repeater Unit MAC address 384 Node address For Master MAC address 448 ServiceCode Stores the Service code of an explicit message ServiceDataSize Stores the Service data size in bytes of an
155. les 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 177 Preparing and Mounting Flat 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 SS tf Wi LK AN 3 2 lose the cover and sandwich the cable Secure the hook For Cable extension or connecting a Terminating Resistor Insert the tip of the cable all the way into the cable stopper in the cover gt 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 Housing 178 Preparing and Mounting Flat 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 A01 Special Tool Pliers to pressure weld and connect the cable 5 1 Align the center see arrow of the connector cover with the cent
156. line BrancKline Is cen iinsSlave Unit e a sm Repeater R peater N dh Unit Unit Sub branch line line Sub trunk a line J E B Sub trunk Eranchilige Slave Unit iB j Sub trunk Branch line line line ul E Branch line Repeater Unit Sub branch Sub trunk Ej line length d r line Slave Unit Sub trunk line length Item Round cable I or Il Flat Cable I or Il Length of a trunk line or a sub 30 m 90 m 30 m 90 m 156 trunk line Maximum length when two Repeater Units are used Length of a branch line Total length of branch lines allowed Branching restriction No T branch connection 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 Section E 1 In Data Rate of 3 Mbps In Data Rate of 1 5 Mbps Item Round cable or Il Flat Cable I or Il Length of a 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 an
157. lly running it on the Unit The failure to check the program may result in unexpected operation 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 Mounting or removing a CompoNet Master Board Assembling devices e Setting rotary switches Connecting cables or wiring the system Connecting or disconnecting the connectors Close the PC cover before wiring work This is used to prevent wire waste from entering the PC 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 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 Use the Board in the specified ambient operating temperature and humidity Store the Board in the specified ambient storage temperature 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 Use only the s
158. meter 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 loTimeOut This is the time for the Slave Unit to time out the communications The Master Board notifies the Slave Unit when a Slave Unit participates Settable range 0 to 65535 ms Setting it to O will select the default Default 50 ms 163 ms at the data rate of 93 75 K TT 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 O Registration Always set it 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 Set 0 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 O 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 4
159. meter Description JoinList 28 Participation flag AwayList 28 Communications error flag State StateStatus See Appendix B 3 3 for the data format 82 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_GetStatusEx HANDLE Handle CPNT_STATUSEX StatusEx WORD StatusExInfo 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 StatusExInfo 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 GetLastError 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 CommunicationFault 28 Duplication error flag NonExistentError 24 Registration error Registered Slave not participating flag UnRegisteredError 24 Registration error Non registered Slave participating flag RepeaterError 28 Repeater configuration error EventOnly 28 EO Slave Unit MasterStatus 9 Master status ErrorCounter 224 Error counter NetworkPower 1 Network power state JoinldentityTable 29 12 Participated Slave Unit identity
160. munications 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 194 Wiring for Power Supply Section E 5 Restrictions The following restrictions apply when supplying communications power through a round cable II Flat Cable I or Flat Cable II The communications power supply can be connected at only one location for the trunk line and one location each for the sub trunk lines 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 3m max Master Board R
161. n 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 Indicating state Green light Status 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 Unlit 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 and in preparation for remote I O communications It is 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 Uni
162. n 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 Participation flag for Word IN Slave Unit These values are the corresponding part of each node addre 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 Participation 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 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 Participation flag for BIT IN 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 78 77 76 75 74 73 72 71 70 69 68 67 66 94 93 92 91 90 89 88 87 86 85 84 83 82 110 109 108 107 106 105 104 103 102 101 100 99 98 126 125 124 123 122 121 120 119 118 117 116 115 114 Participation flag fo
163. nched line 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 or a Repeater Unit respectively On the most remote end from the Master Board or a Repeater Unit 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 159 Wiring for a CompoNet Network Section E 3 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 I The two communications signal 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 communications cables to the Master Board or a Repeater Unit and to the Slave Units 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 No power line is connected to the Master Board or a Repeater Unit A DRS
164. nection 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 l 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 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 for communications data The BS and BS can be used only for round cable Il 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 Indicatio
165. netin Time Allotted for IN Frames in Communications Cycle Time Tnetout Time Allotted for OUT Frame in Communications Cycle Time 146 1 Calculation Example Conditions Data rate Word Inputs Ops 1 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 Bit IN 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 4 0 Mbps 0 010 ms x Number of Bit Input Slave Units S2 0 011 ms x Number of Word Input Slave Units S1 3 0 Mbps 0 020 ms x Number of Bit Input Slave Units S2 0 022 ms x Number of Word Input Slave Units S1 1 5 Mbps 0 044 ms x Number of Bit Input Slave Units S2 0 051 ms x Number of Word Input Slave Units S1 93 75 kbps 0 531 ms x Number of Bit Input Slave Units 0 657 ms x Number of Word Input Slave Units 4 0 Mbit s 3 0 Mbit s 1 5 Mbit s 93 75 kbit s 0 013ms K 0 018ms K 10 085 ms 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 pe
166. nit For Word IN Slave Unit MAC address Node address For Word OUT Slave Unit MAC address 64 Node address For Bit IN 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 ServiceCode Set the service code of the explicit message Classld Set the Class ID of the explicit message Instanceld Set the Instance ID of the explicit message ServiceDataSize 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_PeekExplicit Check Response Received Purpose Check Explicit message responses Call Format BOOL CPNT_PeekExplicit HANDLE Handle Argument Type Parameter Direction Description HANDLE Handle IN 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 GetLastError Remarks The function CPNT_SendExplicit must be executed prior to this function 90 Explicit Messaging API Section A 6 A 6 3 CPNT RegReceiveExplicitNotifyMessage Register Notice of Explicit Response Message Received Purpose Call Format Argument Returned value Remarks
167. nit 62 Alarm information of Word OUT Slave Unit 61 Alarm information of Word OUT Slave Unit 60 125 Shared Memory Area Specifications Error Log 126 Bit Section B 3 15 14 13 12 Alarminformation of Bit IN Slave Unit 3 11 10 09 08 Alarm information of Bit IN Slave Unit 2 07 06 05 04 Alarm information of Bit IN Slave Unit 1 03 02 01 00 Alarm information of Bit IN Slave Unit 0 to to to to Alarm information of Bit IN Slave Unit 127 Alarminformation of Bit IN Slave Unit 126 Alarm information of Bit IN Slave Unit 125 Alarm information of Bit IN Slave Unit 124 Alarminformation of Bit OUT Slave Unit 3 Alarminformation of Bit OUT Slave Unit 2 Alarm information 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 Alarm information of Bit OUT Slave Unit 126 Alarm information of Bit OUT Slave Unit 125 Alarm information of Bit OUT Slave Unit 124 Alarminformation of Repeater Unit 3 Alarm information of Repeater Unit 2 Alarm information of Repeater Unit 1 Alarm information of Repeater Unit 0 to to to to Alarminformation of Repeater Unit 63 Detailed format Alarm information Access Alarm information of Repeater Unit 62 Alarm information
168. 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 78 77 76 75 74 73 72 71 70 69 68 67 66 94 93 92 91 90 89 88 87 86 85 84 83 82 110 109 108 107 106 105 104 102 101 100 99 98 126 125 124 123 122 121 120 118 117 116 115 114 Communications error flag epeater Units ese values are the corresponding of each node address 14 13 12 11 10 9 8 6 5 4 3 2 30 29 28 27 26 25 24 22 21 20 19 18 46 45 44 43 42 41 40 38 37 36 35 34 62 61 60 59 58 57 56 54 53 52 51 50 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 107 Shared Memory Area Specifications StateStatus 108 Data format Offset address 0x00B2 Offset Word 45 14 13 12
169. node address with attributes attributes See the following page for the node address with attributes ServiceCode Read Write It specifies the service code defined by the explicit message Settable range 0x0000 to OxOOFF ClassID Read Write It specifies the Class ID from which an explicit message is requested Settable range 0x0000 to OxOOFF InstancelD Read Write It specifies the Instance ID from which an explicit message is requested Settable range 0x0000 to OxOOFF ServiceData Read Write It specifies the data defined by a service code Number of effective bytes 0 to 532 bytes Definition of a node address with attributes Type Master Board Fixed to 0 0x0 Master Board Word Slave Unit 0 to Ox3F 0x1 Normal IN or MIX Slave Bit Slave Unit 0 to Ox7F 0x2 Word OUT Slave Repeater 0 to 0x3F 0x4 Bit IN or MIX Slave 0x5 Bit OUT Slave 0x7 Repeater 129 Shared Memory Area Specifications Section B 3 Event Area BD gt 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 2 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 ad
170. 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 message 71 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 Typs Parameter Direction Description 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 IN 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 GetLas
171. ns power supply 24 VDC Communications power supply connector on Master Unit or downstream port s communications power supply connector on Repeater Unit 188 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 II Flat Cable or Flat Cable II 7m When complying with UL standards Overcurrent protection install a device to limit the current il current limit 4 A between the external power supply oo 1 and the Unit to 4 A or less for the sone per smenaee communications power supply Communications power supply 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 2
172. o 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 O 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 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 137 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 It is used to start the I O
173. of Word OUT Slave Unit 0 to 133 Shared Memory Area Specifications 134 Section B 3 Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 Product Code of Word OUT Slave Unit 63 Product Code of Bit IN Slave Unit 0 to Product Code of Bit IN Slave Unit 127 Product Code of Bit OUT Slave Unit 0 to Product Code of Bit OUT Slave Unit 127 Major Revision of Word IN Slave Unit Major Revision of Word IN Slave Unit 1 0 to to Major Revision of Word IN Slave Unit Major Revision of Word IN Slave Unit 63 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 Slave Unit Major Revision of Bit IN Slave Unit 1 0 to to Major Revision of Bit IN Slave Unit Major Revision of Bit IN Slave Unit 127 126 Major Revision of Bit OUT Slave Unit Major Revision of Bit OUT Slave Unit 1 0 to to Major Revision of Bit OUT Slave Unit Major Revision of Bit OUT Slave Unit 127 126 Shared Memory Area Specifications Detailed format Function setting Read Write Section B 3 Description Sets the the Registration table func
174. of the network line there must be a DCN4 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 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 Terminating Resistor 121 Q Communications Multi drop connector connectors 163 Wiring for a CompoNet Network Section E 3 E 3 4 Connectors Round cable or Il Flat Cable 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 g terminal Trunk sub trunk Open Type Master Board Connector Branch line or sub branch line block Connector Trunk line Open Type Connector Relay terminal Trunk sub trunk block or branch line Branch or sub branch line or branch line Slave or Repeater Unit
175. ommunications power supply connector provided on a Repeater Unit Using Round Cable 24 VDC Communications Power Supply FE Master Board Connect the communications power supply and each Slave Unit and supply communications power directly to each Slave Unit Open Type Connector P for connecting a Unit Terminating b Resistor i Round cable d E m Open Type Connector Open Type Connector F a 3i for connecting a Unit for connecting a Unit a heen ense ant 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 The communications power terminals must be connected to the BS and BS terminals of the upstream port PORT1 of the Repeater Unit See Appendix E 5 for detailed wiring procedures for a communications power supply E 4 Preparing and Mounting Flat Connectors on the Cables 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 II to a Unit and For branching or extending the line 172 Preparing and Mountin
176. on This API cannot be used unless the communications cycle stops CPNT BOARD RAMERROR 0x2000001 1 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 StartCycleEx Check the set value for EnableList CPNT STATE ERROR 0x20000014 Cannot change the state CPNT PARAM ERROR 0x20001000 Argument is 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 0x20001 003 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 96 APPENDIX B Shared Memory Interface B 1 P URESOULCES ner apre Na me us 98 B 1 1 PCI Configuration Register Information 98 B 1 2 Memory Area etc CERRO RR Rc RLATRIS DORIA ANE ESSI 98 B 2 PCI Register Specifications 0 0 cece cee ee 99 B 2 1 PCI Register Map 0 2 eect eee eee 99 B 2 2 Board ID Offset 0x0000 2 2 ee cee ee 99 B 2 3 Board Reset Offset Ox0001 2 0 0 00 c cece eee eee 99 B 2 4 Interrupt Control Register Interrupt from PC to Board 100 B 2 5 Interrupt Control Register Interrupt from Board to PC 101 B 3 Shared Memory Area Specifications
177. ons 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 Slave Unit MAC address Node address For Word OUT Slave Unit MAC address 64 Node address For Bit IN 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 StateStatus It stores the same content as ones in StateStatus 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 It stores 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 Cumulative CRC reception error It is the cumulative count of CRC errors It stops counting at OXFFFF Cumulative code reception error It is the cumulative count of Manchester encoding errors It stops counting at OXFFFF 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 Commun
178. operty 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 o m oF 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 Be sure to turn off the PC and all peripheral devices when you mount or remove a CompoNet Master Board Note eTake necessary measures to prevent static electricity before 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
179. ops 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 API function and enable the PC WDT on the Board Open Board CPNT_Open Y Start Communications cycles CPNT StartCycle Initial processing A Enable PC WDT CPNT_EnablePCWDTTimer Loop Start Refresh PC WDT value CPNT RefreshPCWDTTimer l O process and so on Y Loop End Disable PC WDT CPNT EnablePCWDTTimer Stop Communications cycles CPNT StopCycle Y Close Board CPNT Close Final processing A 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 Fe Open Board CPNT_Open Y Start Communications cycles CPNT StartCycle Initial processing A Register Board Hardware Error Message CPNT_RegBDWDTNotifyMessage Loop Start Y Notify a Board Hardware l O process and so on
180. pecified communications cables Do not extend connection distances beyond the ranges given in the specifications Observe the given precautions when wiring the communications cable 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 Always lay communications cables inside ducts Take appropriate and sufficient countermeasures when installing systems in the following locations Locations subject to static electricity or other forms of noise Locations subject to strong electromagnetic fields Locations subject to possible exposure to radioactivity Locations close to power supplies Do not use the Standby mode or the Hibernate mode on the PC while the CompoNet Master Board is operating The failure to do so may result in a communications disconnection or other unexpected error The CompoNet Master Board does not support the Standby and Hibernate modes of the PC Do not use the Standby mode or the Hibernate mode on the PC while the CompoNet Master Board is operating xxi Conformance with the EC Directives 6 6 6 1 6 2 6 3 xxii Conformance with the EC Directives Applicable Directives Concepts Conformity 1 2 3 EMC Directives EMC Directives The OMRON products are electr
181. plies 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 Offset Bit Word 15 14 13 42 11 10 09 08 07 06 05 04 03 02 01 00 0 I O information of Word IN Slave Unit 0 to to 63 I O information of Word IN 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 Slave Unit 0 to to 255 I O information of Bit IN Slave Unit 127 256 I O 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 Unit 63 448 Vendor Code of Word IN Slave Unit 0 to to 511 Vendor Code of Word IN 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 Slave Unit 0 to to 121 Shared Memory Area Specifications 122 Section B 3 Bit 00 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 Vendor Code of Bit IN Slave Unit 127 Vendor Code of Bit OUT Slave Unit 0 to Vendor Code of Bit OUT Slave Unit 127
182. pt 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 Check it by an interrupt or polling 57 Communications Cycle Control 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
183. pyrights CompoNet is the registered trademark of the Open DeviceNet Vendor Association Inc Microsoft Windows Windows2000 WindowsXP WindowsVista Visual Basic and Visual C are the registered trademarks of the Microsoft Corporation C Builder is the registered trademark of the Embarcadero Technologies 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 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 CJ1WCRM 1 CS CJ series CompoNet Master Units Operation Manual Provides an overview of CompoNet Networks communications specifications wiring methods and CompoNet Master Unit functions 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 relat
184. r Plug for unsheathed cable E 3 6 Branching Communications Cables There are two methods to branch a trunk line sub trunk line or branch line T branch connection and multidrop connection T branch connections Using Round Cable The cable wires are connected to the terminals of a relay terminal block or Il with Example Round cable I 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 OX 166 Wiring for a CompoNet Network Section E 3 Using Flat Cable or Il 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 Flat Cable 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 II Attach a DCN5 BR4 Flat Connector II Plug already connected to Flat Cable to a DCN5 TR4 Flat Connector Il Socket DCN5 TR4 Flat DCN5 BR4Flat Connector II Socket Connector II Plug Note The same type of cable must be used for the trunk line and branch lines lt Multidrop connections gt Using Roun
185. r BIT 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 78 77 76 75 74 73 72 71 70 69 68 67 66 94 93 92 91 90 89 88 87 86 85 84 83 82 110 109 108 107 106 105 104 103 102 101 100 99 98 126 125 124 123 122 121 120 119 118 117 116 115 114 Participation flag for Repeater 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 Detailed format Name Access Description Participation Read ON It participates in the network flag OFF It does not participate in the network 106 Shared Memory Area Specifications Section B 3 Communications This indicates the commun
186. r Board Initial process Step Operation procedure Access to Shared Memory Set the Interrupt Mask Set the BD WDT of the Interrupt Mask register 0x0004 to 1 Set it to 0 when the BD WDT is confirmed by polling periodically 61 Board Hardware Error Notification Section 5 6 62 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 LED Indications and Error Handling 0 0 0 c cece eee 64 6 1 1 Identifying Errors 20 ces 64 6 1 2 LED Indication During Normal Operation 65 6 1 3 LED Indication at Errors and Actions to Be Taken 65 6 1 4 Error Identification by StateStatus 0 000 000 e ee 66 Erro Og o Sade ates ata a Bia cari Sua SGN Ae Sg Ak ea eda RA Edu 66 6 2 1 Error Log Table soul oo RR RETI WES 66 6 2 2 Error Code and Description List 0 0 0 0 eee eee 67 63 LED Indications and Error Handling Section 6 1 6 1 6 1 1 64 LED Indications and Error Handling CompoNet Master Board has two LED indicators MS LED for Board status and NS LED for network sta
187. r Word Output Slave Unit Additional time per 8 Bit Output Remote I O Communications Performance Section C 1 Termin Input Processing Time at Master Board Tcormout Output Processing Time at Master Board TReiAcc Processing Time to Release an Access Right Tpc Time for a PC to Process the Application Slave Units Datarate 4 0 Mbit s 3 0 Mbit s 1 5 Mbit s 93 75 kbit s lup e E 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 Word Outputs Word inputs Bitoutputs Bit inputs 30 Mis K 7 x 5 37 us 2 x 5 37 us 0 048 ms 4 0 Mbit s 3 0 Mbit s 1 5 Mbit s 93 75 kbit s Torn J047 ms M 0 52ms M 0 77ms M 7 32ms 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 Word Outputs Wordinputs BWoutputs Bit inputs 0 Mbps M 8 x 1 09 us 16 x 4 53 us 16 x 0 56 us 8 x 5 23 us 0 132 ms Termout 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 0 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 th
188. r logs Error code Error code of an error log see Section 6 2 Detailed code Detailed code of an error log see Section 6 2 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 O if no clock information is given Registration Table Example 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 Data format Offset address 0x238C See Appendix B 3 9 for the content of the Registration table 127 Shared Memory Area Specifications Section B 3 B 3 7 CMD Area in Detail CMD area PC BD CMD area BD PC 128 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 Offset Bit Word 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 0 CMD 1 Argument Detailed format Name Access Description CMD Read Write It sets the command code Argument Read Write It sets the argument A response command made by the CompoNet M
189. r when the Board of specified ID is opened by other process The error details can be obtained with the function GetLastError Remarks e This function is used to check the IDs of mounted Boards e The Board ID is set by the rotary switch 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 StartCycle HANDLE Handle CPNT SOFTWARE TABLE SoftwareTable WORD DataRate 73 Communications Control API Argument Returned value Remarks 74 HANDLE Parameter Handle Section A 3 Direction Description Device handle obtained with the function CPNT_Open CPNT_SOFT WARE_TABLE SoftwareTable Specify the number of occupied nodes WORD DataRate 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 GetLastError This function is used to start the communications cycles The function cannot be executed while the communications cycles are running CPNT_SOFTWARE_TABLE structure WORD Parameter OutNode Description 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
190. rd 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 it is 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 synchronous 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 Communications
191. rd Up to 32 Repeater 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 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 152 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 II Flat Cable I 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 2 CompoNet Network Specifications Section E 1 E 1 2 Communications Cables conductors that meet the CompoNet specifications C
192. rd CPNT Close To close a specified board CPNT Reset To reset a specified board CPNT IsExistBoard 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 communications 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_StartCycleEx To start the communications cycle in detailed setting CPNT_StopCycle To stop the communications cycle CPNT_ChangeToRunState To make a transit to RUN state Or to start the I O cycle CPNT_ChangeToldleState To make a transit to IDLE state Or to stop the I O cycle A 1 3 Status Access API Functions 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_GetStatusEx To read the Detailed status group CPNT_ResetStatusEx To clear the Detailed status group CPNT_SetDateTime To write the time information 70 Function List I O Data Access API Functions These access the I O data Section A 1 API function Description CPNT_GetAccessTolO To get an access right to I O data CPNT_Release
193. river 14 Duplication Error Flag 113 E EO Slave Unit 117 Error Code 67 Error Counter 119 Error Log 126 Error Log Saving Area 67 Error Log Table 66 Event Area 130 Event area 129 203 Index 204 F Flags of Interrupt from Board to PC 101 Flags of Interrupt from PC to Board 100 Flat Cable I 153 154 Flat Cable II 153 154 Flat Connector Plug 19 166 167 169 180 Flat Connector Socket 163 167 168 174 177 182 I O power supply 187 Identity information 105 Identity Object 45 IN Data Zero Clear Due to Communications Error mode 35 Initialization end notification 104 Interrupt 52 Interrupt Clear 102 Interrupt Mask 101 Interrupt Request confirmation 100 Interrupt Request Indication 102 Interrupt Trigger 100 IRQ 12 L Logical Error Checking Items 132 M Master Status 118 maximum lengths of each cable 156 maximum number of connectable Slave Units 156 MS LED 4 5 6 Multidrop connections 167 Multidrop Connector 163 Multi power supply 187 N Network Parameter 136 Network Power State 121 Network power supply 187 NS LED 6 O Open Type Connector 17 OPEN_SYSTEM 24 OPEN_SYSTEMEX 33 Optimizing Communications Cycle 3 P Participated Slave Unit Identity Table 121 Participation Flag 106 Participation flag 32 PC WDT 48 PCI bus 3 PCI bus slot 12 R Registered Slave Unit Participation Time 34 Registration Error Flag 114
194. s constant data sharing with Slave Units and communications 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 control Manchester code rules CRC Communications media 2 Round cable 2 conductor cable and Round cable II 4 conductor cable Flat Cable DCA4 4F10 and Flat Cable Il DCA5 4F10 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 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 Repeater Units Up to 64 Repeater Units can be connected per network or Master Boa
195. s 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 performance 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 wit
196. s 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 Bit OUT data As needed 0x0300 to 0x0337 0x0338 to 0x0367 0x0368 to 0x0397 0x0398 to OxOSCF 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 Ox05DA to 0x05DB OxO5DC to 0x1C9B 0x1C9C to 0x201B 0x201C to Ox20FB Ox20FC to 0x237D Ox237E 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 103 Shared Memory Area Specifications Offset address 0x3200 to 0x3203 0x3210 to 0x3213 CMDarea group Section B 3 Word size Access Byte size CMD area PC BD CMD Update timing CMD area BD
197. se 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 2 E 5 2 Wiring the Communications Power Supply Use a round cable Il Flat Cable or Flat Cable Il and connect the communications power supply to the Master Board supply connector Communications connector To the 24 VDC gt communications 190 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 round 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 A Seiren TS current between the external power s
198. sistor Flat Connector Plug z A DCN4 MD4 Multidrop Connector a Communications connector of a Slave or Repeater 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 I When the line is round cable II Round cable I DRS1 T 2 conductor cable Terminating Resistor m Go Round Cable Il DCN4 TR4 DCN4 TM4 Flat Connector Socket Terminating Resistor Connection Locations for Communications Power Supplies This section explains the locations to connect the communications power supplies Example Flat Cables or Il 24 VDC communications power supply Flat Cable or Il Communications connector Slave Unit Slave Unit Terminating Resistor Slave Unit 171 Preparing and Mounting Flat Connectors on the Cables Section E 4 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 round cables Il 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 c
199. st 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 requests 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 Set it to O when the REQ RES is confirmed by polling periodically S9 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 Set the 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 do
200. stops because of unstable communications If the address duplication is not the cause check the wiring or the terminators around the erroneous Slave Unit Identify the erroneous Slave or Repeater Unit by the Communications error flag of the Basic status group occurred NS Red flash Communications error occurred on a Slave Unit Communications error occurred on a Repeater Unit 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 Identify the erroneous Slave Unit by the Node causing a communications stop of the Master status in the Detailed status group Communications stop due to communications error occurred 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 Error code Detailed code
201. 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 Control 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 54 Communications Cycle Control Procedures Section 5 2 Initial state OPEN_SYSTEM OPEN_SYSTEMEX STOP CYCLE 4 Operation Communications IDLE state Cycle Operation u a ug y IDLE oe E of F STOP_IOCYCLE START_IOCYCLE a
202. sub trunk line Round Cable Il Flat Cable I or Flat Cable II P m NND Le Repeater Unit os euscec eee eee mu Communications power supply Sub trunk Round Cable II 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 Master Board m Repeater Unit ICommunications power supply Trunk line or Round Cable II Flat Cable sub trunk line or Flat Cable II Repeater Unit Sub trunk Round Cable II Flat Cable line or Flat Cable II 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 Open Type Cohnector Trunk line i CUN Oper Type Connector Round cable I Terminating Resistor Note J Round cable i Port 1 Upstream 1 Port 2 Downstream i Round Cable Port 1 Upstream Port 2 Downstream Communications power supply connector 1 Overcurrent Shared communications When complying with UL standards install a protection and I O power supply device to limit the current between the 1 current limit 4 A extern
203. 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 board 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 3G8F7 CRM21 or with CompactPCI bus Model 3G8F8 CRM 21 Here are the main features of the CompoNet Master Boa
204. t Argument Returned value Remarks 88 Set the OUT data in Word OUT Slave Units BOOL CPNT SetOutData HANDLE Handle WORD OUT WORD WordOffset WORD WordSize HANDLE Parameter Handle Direction Description Device handle obtained with the function CPNT Open WORD OUT Set the OUT data Set the data equivalent to Word size WORD WordOffset Specify the Word offset for the OUT Slave Unit to which the OUT data is written Settable range 0 to 63 WORD WordSize Specify the Word size of the OUT data to write Observe 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 GetLastError 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_SetBitOutData 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
205. t 0 OFF 15 Reserved area Set 0 OFF A 4 6 CPNT SetDateTime Write Time Data Purpose Call Format m Argument Write the time information BOOL CPNT SetDateTime HANDLE Handle CPNT DATETIME DateTime e Parameter Diwelon Desipin HANDLE Handle Device handle obtained with the function CPNT Open CPNT DATET IME DateTime Set the time data 85 VO 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 GetLastError 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 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 GetLastError R
206. t Enabled flag Enable the relevant flag when a Slave Unit is registered 0 The All setting is invalid No Slave Unit is registered 1 The All setting is valid The Slave is registered 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 0 Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 Event function enabling 1 Monitoring time of event addressed to Slave Units 2 to 4 136 Reserved Shared Memory Area Specifications Section B 3 Detailed format 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 O 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 t
207. tData CPNT SetBitOutData Initial processing IN 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 Write OUT data CPNT_SetOutData CPNT_SetBitOutData Y Read IN data CPNT GetlnData CPNT GetBitlnData y Loop End y Stop communications cycles CPNT_StopCycle Y Close Board CPNT Close Data Inputs and Outputs MA End processing 40 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 2 CPNT_Open 8 e Start Communications cycles in details setting CPNT_StartCycleEx 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 GetlnData CPNT GetBitlnData Y Loop End E y Stop Communications cycles Data Inputs and Outputs A
208. tError 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 function 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 IN Device handle obtained with the function CPNT Open 72 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 GetLastError 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_StartCycleEx 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 Description WORD Boardld IN ID of Board whose existence is checked Specified range OxO 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 o
209. tOutData Set Bit OUT Data to Bit OUT Slave Unit 89 Explicit Messaging API 0 0 0 eee cc e 89 A 6 1 CPNT SendExplicit Send Explicit Message 89 A 6 2 CPNT PeekExplicit Check Response Received 90 A 63 CPNT RegReceiveExplicitNotifyMessage Register Notice of Explicit Response Message Received 91 A 6 4 CPNT_UnRegReceiveExplicitNotifyMessage Unregister Notice of Explicit Response Message Received 91 A 6 5 CPNT ReceiveExplicit Get Explicit Response Message 92 PC Watchdog Timer APLs ornas ania Tna E E E E eee 93 A 7 1 CPNT EnablePCWDTTimer Enable PC WDT 93 A 7 2 CPNT RefreshPCWDTTimer Refresh PC WDT 93 Board Request Notification API 0 0 eee cee eee 94 A 8 1 CPNT RegBDWDTNotifyMessage Register Board Hardware Error Message 94 A 8 2 CPNT UnRegBDWDTNotifyMessage Unregister Board Hardware Error Message 94 A 8 3 CPNT RegRESETNotifyMessage Register Board Reset Request Message 95 A 8 4 CPNT UnRegRESETNotifyMessage Unregister Board Reset Request Message 95 Errors Detectable by Functions 00 0 0 c eee esee 96 69 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 boa
210. taining node by node synchronicity Initial processing Data Inputs and Outputs A Open Board CPNT_Open Y Start communications cycles CPNT StartCycle y Loop Start y Read Basic status group CPNT_GetStatus End processing Precautions for Correct Use An error on the basic status group Get Access to I O CPNT_GetAccessTolO Write OUT data CPNT_SetOutData CPNT_SetBitOutData Y Read IN data CPNT GetlnData CPNT GetBitlnData Release Access to I O CPNT_ReleaseAccessTolO Loop End Error solving C Stop communications cycles CPNT_StopCycle Y Close Board CPNT Close 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 39 Access to I O Data Section 4 1 4 1 3 Access to I O Data with Initial OUT Data Value Setting Function When the communications cycle is started without making any initial setting for the OUT data it keeps sending O 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 y Open Board CPNT Open Write Initial values of OUT data CPNT SetOu
211. ted 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 ll The communications power to Slave Units is supplied through a round cable Flat Cables or Flat Il Flat Cable or Flat Cable II Cables II 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 192 Wiring for Power Supply Section E 5 Not using a Repeater Unit Communications power supply 2 amp connector Overcurrent Communications 1 l 1 tection i 3 1 euntis 4A 1 power supply When complying with UL standards install 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 I or Flat Cable II Slave Units with network Slave Unit power supply 193 Wiring for Power Supply Section E 5 Using a Repeater Unit Communications power supply connector PELLE Overcurrent 1 protection
212. ter Board Data format Offset address 0x0014 Bit 15 14 13 12 11 Vendor Code 10 09 08 07 06 05 04 03 02 01 Device Type Product Code Minor 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 1 1 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 Shared Memory Area Specifications Sectio
213. tered 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 Slave Units These values are the corresponding part of each node addre 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 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 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 78 77 76 75 74 73 72 71 68 67 66 94 93 92 91 90 89 88 87 84 83 110 109 108 107 106 105 104 103 99 126 125 124 123 122 121 120 119 Flags for Bit OUT Slave ese values are the corresponding part 14 13 12 11 10 9 8 7 30 29 28 27 26 25 24 23 46 45
214. 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 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 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 Set the CMD ACK flag of the Interrupt Clear register 0x0006 to 1 to clear the interrupt cause Follow these steps to transmit and or receive Explicit messages Operation procedure Set an Explicit message 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 Setting the Time Information 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 Access to Shared Memory
215. tify a Board hardware error Call Format BOOL CPNT UnRegBDWDTNotifyMessage HANDLE Handle Argument Type Parameter Direction Description HANDLE Handle IN Device handle obtained with the function CPNT Open Returned value It returns TRUE when the message has been successfully unregistered It returns FALSE when an error occurs Detailed error content can be obtained with GetLastError 94 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 Threadld 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 GetLastError e A Board reset request is 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 O is stored in both of WPARAM and LPARAM of the noti
216. tion Bit O Registration table enabled flag Flag Description Set it to 1 ON when the Registration tables are used 0 OFF Disabled 1 ON Enabled All Registered Slave Participation Standby flag Reserved area Set 0 OFF Communications cycle optimization flag 0 OFF Disabled 1 ON Enabled 9 to 15 Reserved area Set 0 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 set in units of 10 ms Settable range 1 to 65535 Setting it to O 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 0 VendorCode DeviceType ProductCode MajorRevision Description 0 OFF Not checked 1 ON Checked 4 to 5 Reserved area 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 135 Shared Memory Area Specif
217. tion error in the Master status are cleared Set the PC Watchdog Timer 0x3001 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 Timer value 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 00 esses 144 C 1 1 Input time Slave Unit gt Master Board 144 C 1 2 Output time Master Board Slave Unit 144 C 1 3 Descriptions of Parameters 0 0 cece ee eee 144 143 Remote 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 TNetCyc 9 1 Termin Tec access Bit Input Unit Tin TNetin TNetCyc Termin TRelAcc Synchronous Word Input Unit Tec acc
218. to 5 Reserved area Set 0 OFF loUnitInfo 384 Set 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 1W Set Word OUTO size 1W to Set Word OUT6S size 1W Set Bit INO size 1W to Set Bit IN127 size 1W Set Bit OUTO size 1W to Set Bit OUT127 size 1W 78 Communications Control API Parameter VendorCode 3 84 Section A 3 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 ProductCode 384 MajorRevision 384 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 200001 4 points 00010 8 points 20001 1 16 points 00100 32 points 200101 48 points 00110 64 points 200111 80 points 01000 96 points 201001 112 points 01010 128 points 01100 160 points 01110 192 points 210000 224 points 210010 256 points 01011 144 points 01101 176 points 01111 208 points 10001 240 points others prohibited IN setting enabling flag 0 Disabling IN number setting 1 Enabling IN number se
219. ts 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 Irregal configuration error an error of Repeater levels One or more Slaves or Repeater Units had node address duplications Note 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 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 wv 2 Correspond the I O points to Slave Units Assign each of these inputs and outputs to a Slave Unit wv 3 Decide the number of nodes 4 Decide the number of connected nodes b d 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
220. tting Reserved area Set 0 OFF Number of OUT channels Se 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 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 79 Communications Control API Section A 3 Argument Type Parameter Direction Description HANDLE Handle IN 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 GetLastError Remarks It stops the communications cycles
221. tup Section 3 5 Communication Cycle This function is used to disregard any unused communications parts based on Optimization Function 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 Communications 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 I O 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 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
222. tus 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 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 Y 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 Y Detecting the error cause Compare the Error occurrence factors and the on site situation Detect and eliminate the cause 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 e e Power not supplied The power is not supplied KARI Wait for startup It waits for a st
223. upply and the Unit to 4 A protection i current limit 4 A r a ee Terminating Resistor Open Type Connector 191 Wiring for Power Supply Section E 5 Using a Repeater Unit When complying with UL standards install a device to limit the current between the external power supply and the Unit to 4 A or Round Cable less for the communications power supply Communications ower suppl 1 Overcurrent fi 4 al 1protection 1 V current limit 4 A1 Communications Overcurrent Round Cable I iy protection roe power supply 1 current limit 4 A i G AN anadi am m Sub A Open Type Connector Trunk line Connector Reh Open Type m Connector Multi power supply Round Cable Multi power supply 1 O power supply Communications power supply Overcurrent i 1 protection 1 1 1 current limit 4 DUM Repeater 7 Communications eae ap L Round Cable power supply 1 current limit 4 A 1 UN E i IBS 1 remm GE ON Sub trunk Open Type N E Ll Al BDL1 Connector p7 r E BDH2 BS 1 a B alm 1 X Ea S g H Open Type S Open Type q L D Round Cable Es uni Connectar Tj Connector Multi power supply Multi power supply Terminating vial Resistor I O power supply T Precautions for Correct Use Depending on the I O device to which the Slave Unit is connec
224. urns TRUE when the function succeeds It returns FALSE when an error occurs The error details can be obtained with the function GetLastError 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 GetBitlnData Get Bit IN Data from Bit IN Slave Unit Purpose Read the Bit IN data from Bit IN Slave Units Call Format BOOL CPNT GetBitlnData HANDLE Handle WORD BitIN WORD WordOffset WORD WordSize 87 VO Data Access API Argument Returned value Remarks Parameter Handle Direction Section A 5 Description Device handle obtained with the function CPNT_Open BitlN 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 Bit IN 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 GetLastError 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 Forma
225. ust 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 total 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 Increase the thickness of the cables Increase the output voltage of the power supply Shorten the wiring Locate the power supply in the middle of the network Slave Unit Slave Unit Slave Unit Slave Unit Load Load Load Design the wiring so that AE AE sig sod 24 VDC Power stable power voltage is Supply NAAN A AAN supplied to the end load ls I 24 VDC Power If a stable power voltage cannot be supplied to the end load Supply place the power supply in the middle
226. ut and 2 Output Bit MIX Slave Unit BIT OUT area ESEENENBEZERSENENU BIT IN area Ea Edu 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 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 31 Status 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
227. ve 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 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 Bit 0 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 of Word OUT Slave Unit with node address 1 OUT 2 OUT data of Word OUT Slave Unit with node address 2 area 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
228. 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 Slave Unit Terminating Resistor Y ul Repeater Unit Terminating Resistor Repeater Terminating Slave Unit Resistor 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 Extending the Communications cable Increasing the number of connected nodes Creating a branch connection from the trunk line and Converting cable types 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
229. ycles CPNT StartCycle Initial processing Register Notice of Explicit Response Message Received CPNT_RegReceiveExplicitNotifyMessage Loop Start I O process and so on An Explicit message request NO Send Explicit Message CPNT SendExplicit Unregister Notice of Explicit Response Message Received CPNT_UnRegReceiveExplicitNotifyMessage Stop Communications cycles CPNT_StopCycle Y Close Board CPNT Close End processing Windows message process Notify the Explicit response Get Explicit Response Message CPNT ReceiveExplicit 43 Setting the Time Information 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 44 Initial processing End processing Open Board CPNT_Open Y Start Communications cycles CPNT StartCycle y Loop Start 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 Section 4 4 Implementing the Reset Request 4 5 Implementing the Reset Request To use the Reset service
230. ypes and There are 2 types of Terminating Resistors the connector type and the Characteristics of terminal block type Terminating Resistors Type Connector type Terminal block type Name Terminating Resistor Model DCN4 TM4 DCN5 TM4 DRS1 T Resistance 1210 1210 1210 Power rating 1 4 W 1 4 W 1 4 W Accuracy 196 max 196 max Power handling 0 01 uF 0 01 uF capacity Applicable cable Round cable II Flat Flat Cable Il Round cable I Cable I Connecting A Terminating Resistor can be connected using one of three different Terminating Resistors methods as shown below Method 1 Connect a Flat Connector Socket to the trunk line of a sub trunk line cable Mount a Terminating Resistor onto the Connector Socket When the line is Flat Cable When the line is Flat Cable Il Flat Connector DCN4 TM4 oe SE Resistor Socket Terminating Resistor maung 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 170 Wiring for a CompoNet Network Section E 3 E 3 9 Using Round Cable Il Flat Cable or Flat Cable Il Master Board Supplies power communications When the line is Flat Cable DCN4 TM4 Terminating Re
Download Pdf Manuals
Related Search
Related Contents
AEG COMPETENCE D2160-1 User's Manual Bedienungsanleitung IMPERIAL® HD 5 Twin BEDIENUNGSANLEITUNG ATTENTION ATENCIÓN ATTENTION Philips DECT1211S Centrale de détection CO Manuel d`utilisateur Samsung GALAXY Tab 10.1 3G版<br>(P7500/CM16) 用户手册 付属品 Smart Phone User Manual Copyright © All rights reserved.
Failed to retrieve file