background image

USER’S MANUAL

Cat. No. W485-E1-02

CompoNet  Master Board
for PCI Bus / CompactPCI Bus

TM

3G8F7-CRM21 (for PCI Bus)
3G8F8-CRM21 (for CompactPCI Bus)

Summary of Contents for 3G8F7-CRM21

Page 1: ...USER S MANUAL Cat No W485 E1 02 CompoNet Master Board for PCI Bus CompactPCI Bus TM 3G8F7 CRM21 for PCI Bus 3G8F8 CRM21 for CompactPCI Bus...

Page 2: ...trademark of the Embarcadero Technologies Inc ODVA CIP CompoNet DeviceNet and EtherNet IP are trademarks of the Open DeviceNet Vendor Association Inc Other product names and company names in this manu...

Page 3: ...3G8F7 CRM21 for PCI Bus 3G8F8 CRM21 for CompactPCI Bus CompoNet Master Board for PCI Bus CompactPCI Bus User s Manual Revised September 2013 TM...

Page 4: ...iv...

Page 5: ...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...

Page 6: ...assumed with respect to the use of the information contained herein Moreover because OMRON is constantly striving to improve its high quality products the information contained in this manual is subje...

Page 7: ...6 Board Preparation Procedure 8 1 7 Specifications 9 SECTION 2 Installation and Setup 11 2 1 Mounting a Board 12 2 2 Installing the Drivers 14 2 3 Connecting the Communications Cables 21 2 4 Connecti...

Page 8: ...6 1 LED Indications and Error Handling 68 6 2 Error Log 70 APPENDIX A API Function Reference 73 A 1 Function List 74 A 2 Board Control API 76 A 3 Communications Control API 77 A 4 Status Access API 85...

Page 9: ...Sample Program 154 APPENDIX E Installation and Setup 155 E 1 CompoNet Network Specifications 156 E 2 Wiring Formations 165 E 3 Wiring for a CompoNet Network 167 E 4 Preparing and Mounting Flat Connec...

Page 10: ...x TABLE OF CONTENTS...

Page 11: ...t 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...

Page 12: ...r Units W456 CS1W CRM21 CJ1WCRM21 CS CJ series CompoNet Master Units Operation Manual Provides an overview of CompoNet Networks communications specifications wiring methods and CompoNet Master Unit fu...

Page 13: ...equal to the purchase price of the non complying Product provided that in no event shall Omron be responsible for warranty repair indemnity or any other claims or expenses regarding the Products unles...

Page 14: ...programmable Product or any consequence thereof Data presented in Omron Company websites catalogs and other materials is provided as a guide for the user in determining suitability and does not const...

Page 15: ...ard 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 Audience xvi 2 General Precaut...

Page 16: ...o 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 characteristi...

Page 17: ...upplied 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 momentar...

Page 18: ...unications 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 ext...

Page 19: ...of circuit boards by hand Use only the specified communications cables Do not extend connection distances beyond the ranges given in the specifications Observe the given precautions when wiring the c...

Page 20: ...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 Magn...

Page 21: ...oNet Master Board 3 1 3 Component Name and Function 4 1 3 1 3G8F7 CRM21 for PCI Bus 4 1 3 2 3G8F8 CRM21 for CompactPCI Bus 5 1 4 LED Indication 6 1 5 Network Construction Procedure 7 1 6 Board Prepara...

Page 22: ...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...

Page 23: ...xible Allocation of the Number of Connectable Nodes 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...

Page 24: ...e Status MS and Network Status NS that are defined in the CompoNet protocol This is used to set the board ID It is set as a decimal number The number must not overlap the IDs for other CompoNet Master...

Page 25: ...nd Network Status NS that are defined in the CompoNet protocol This is used to set the board ID It is set as a decimal number The number must not overlap the IDs for other CompoNet Master Boards mount...

Page 26: ...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...

Page 27: ...and the use of Repeater Units does not ensure the synchronicity of communication cycle and distance provide the CompoNet Master Boards in distributed locations 7 Examine the distribution of CompoNet...

Page 28: ...ard on the PC When you use the Board in the Windows operation systems install the driver 3 Install the software Create a program to configure and control the CompoNet Master Board 4 Create a program 5...

Page 29: ...Rev2 2 5 V PICMG 2 0 R3 0 5 V 32 Bit 3U Number of mountable boards 4 pieces 7 pieces Compatible OS Microsoft Windows 2000 Windows XP 32 bit edition Windows Vista 32 bit edition or Windows 7 32 bit edi...

Page 30: ...10 Specifications Section 1 7 1 7 3 Dimensions 3G8F7 CRM21 PCI unit mm 3G8F8 CRM21 CompactPCI unit mm...

Page 31: ...tion 12 2 1 2 Setting the Board ID 12 2 1 3 Mounting the Board on the PC 13 2 2 Installing the Drivers 14 2 3 Connecting the Communications Cables 21 2 3 1 Connecting a Round Cable 21 2 3 2 Connecting...

Page 32: ...the multiple CompoNet Master Boards mounted on it 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 Correc...

Page 33: ...fer to the Operation Manual of the PC you use in order to follow the correct procedures Follow the mounting procedure given below 1 Disconnect all cables from the CompoNet Master Board This includes t...

Page 34: ...ed here for Windows 2000 and Windows 7 When you use Windows XP or WindowsVista displays and procedures differ only slightly but you can take the similar steps Windows 2000 Note To perform the followin...

Page 35: ...e Device Drivers select the button for Search for suitable driver for my device recommended Click the Next button 3 On the wizard page of Locate Driver Files check the box for CD ROM drive Click the N...

Page 36: ...16 Installing the Drivers Section 2 2 4 When the required driver file is found click the Next button 5 The installation is complete when the following page is shown and the Finish button is clicked...

Page 37: ...ce Manager New hardware will be detected automatically Open the Device Manager 1 and double click Other devices 1 To open the Device Manager click the Windows Start Button and select Control Panel Har...

Page 38: ...my computer for driver software 4 Place the enclosed CD ROM into the CD ROM drive 5 Browse for driver software on your computer will be displayed Click the Browse Button specify the CD ROM drive see f...

Page 39: ...19 Installing the Drivers Section 2 2 6 The following dialog box will be displayed Click Install this driver software anyway to start installation 7 The installation will start...

Page 40: ...20 Installing the Drivers Section 2 2 8 A completion message see the following figure is displayed after the installation process is completed Click the Close Button to complete driver installation...

Page 41: ...g a round cable I or Flat Cable I 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 I or II Align the te...

Page 42: ...T branching connection MS NS REMOTE TERMINAL WORD NODE ADR CRT1 CRT1 OD16 OD16 1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 X10 0 63 X1 OUT 0 1 2 3 456 7 8 9 0 1 2 3 456 7 8 9 MS NS REMOTE TERMINAL WORD N...

Page 43: ...ector I Plug DCN4 BR4 is used with Flat Cable I while a Flat Connector II Plug DCN5 BR4 is used with Flat Cable II Align the Plug face with the color seals red white blue and black matching the signal...

Page 44: ...us are used only one side of adjacent two Boards shall use a DCN4 MD4 Multidrop Connector Example of T branch connection of Flat Cable I MS NS REMOTE TERMINAL WORD NODE ADR CRT1 OD16 OD16 1 0 1 2 3 4...

Page 45: ...wer Supply especially E 5 2 Wiring the Communications Power Supply MS NS REMOTE TERMINAL WORD NODE ADR CR CRT1 T1 OD16 OD16 1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 X10 0 63 X1 OUT 0 1 2 3 456 7 8 9 0...

Page 46: ...26 Connecting the Communications Power Supply Cables Section 2 4...

Page 47: ...2 Access to I O Data 35 3 3 Status 35 3 3 1 Basic Status Group 35 3 3 2 Detailed Status Group 36 3 4 Explicit Messages 37 3 5 Detailed Settings at Communications Cycle Startup 37 3 5 1 Registration Ta...

Page 48: ...ber of occupied nodes The number of nodes can be set individually for Word IN Slave 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...

Page 49: ...tion of Word IN Slave Units Node address 0 1 2 3 4 5 6 7 Used by Word IN Slave Unit with node address 0 Used by Word IN Slave Unit with node address 1 Used by Word IN Slave Unit with node address 3 Us...

Page 50: ...wer byte of the 1 word while the upper byte remains open Allocation area for IN Data of a Word IN Slave Unit Allocation area for OUT Data of a Word OUT Slave Unit Note A single allocation area shall n...

Page 51: ...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 Allocation area for O...

Page 52: ...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 it...

Page 53: ...IN 33 BIT IN 41 BIT IN 49 BIT IN 57 BIT IN 65 BIT IN 73 BIT IN 81 BIT IN 89 BIT IN 97 BIT IN 105 BIT IN 113 BIT IN 121 BIT IN 0 BIT IN 8 BIT IN 16 BIT IN 24 BIT IN 32 BIT IN 40 BIT IN 48 BIT IN 56 BIT...

Page 54: ...rea Bit IN Slave Unit whose node address is 0 and Bit OUT Slave Units whose node address is either 0 or 1 cannot participate Image of the above Precautions for Correct Use BIT IN Data Allocation Area...

Page 55: ...pe of access however ensures the synchronicity of every 16 bits of I O data See Section 4 1 1 for the access procedures 3 3 Status Status comprises two general categories One is the Basic Status Group...

Page 56: ...t shows the entire network status and the CompoNet Master Board status See Appendix B 3 3 Status Description Duplication error flag It shows a duplication error for each applicable node The error occu...

Page 57: ...3 5 Detailed Settings at Communications Cycle Startup 3 5 1 Registration Table Function Outline This is the function used to register the model of a Slave Unit to participate along with the correspond...

Page 58: ...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 aft...

Page 59: ...ations 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...

Page 60: ...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 Sl...

Page 61: ...a Value Setting Function 44 4 2 Detailed Setting at Communications Cycle Startup 45 4 3 Explicit Messaging 46 4 3 1 Explicit Messaging 46 4 3 2 Explicit Messaging by Windows Messages 47 4 3 Explicit M...

Page 62: ...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 Open Board CPNT_Open Start communications cycles CPNT...

Page 63: ...right If multiple threads access to I O data processes may collide and the functions may fail YES NO Open Board CPNT_Open Start communications cycles CPNT_StartCycle Loop Start An error on the basic s...

Page 64: ...o start the communications data from the user application YES NO Open Board CPNT_Open Start communications cycles CPNT_StartCycle Loop Start Read Basic status group CPNT_GetStatus An error on the basi...

Page 65: ...and notify the CompoNet Master Board of the detailed settings Loop Start YES NO Open Board CPNT_Open Read Basic status group CPNT_GetStatus An error on the basic status group Error solving Write OUT...

Page 66: ...n any timing where no I O process is required or in threads other than for I O process YES NO An Explicit message request YES NO Loop Start Open Board CPNT_Open Send Explicit Message CPNT_SendExplicit...

Page 67: ..._Open End processing Loop End Stop Communications cycles CPNT_StopCycle Close Board CPNT_Close Initial processing Start Communications cycles CPNT_StartCycle I O process and so on Register Notice of E...

Page 68: ...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 Loop Start Open Board CPNT_Open End processing Loop...

Page 69: ...ce of Identity Objects Precautions for Correct Use A program must ensure that the Board is reset no earlier than 1 second after a Board reset request is received Loop Start Open Board CPNT_Open Final...

Page 70: ...n 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 Loop Start Op...

Page 71: ..._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 A request to reset the...

Page 72: ...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...

Page 73: ...o use the function Loop Start Open Board CPNT_Open Final processing Loop End Close Board CPNT_Close I O process and so on Start Communications cycles CPNT_StartCycle Register Board Hardware Error Mess...

Page 74: ...54 Board Hardware Error Notification Section 4 8...

Page 75: ...om Board to PC 57 5 1 4 Command Access Control 58 5 2 Communications Cycle Control Procedures 58 5 2 1 Outline of the Communications Cycle 58 5 2 2 Controls from the Initial Process to Communications...

Page 76: ...ion 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 t...

Page 77: ...ration procedure Access to Shared Memory 1 Set the Interrupt Mask In the Interrupt Mask register 0x0004 set 1 to cause an interrupt or set 0 not to cause it Step Operation procedure Access to Shared M...

Page 78: ...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 Sl...

Page 79: ...us 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...

Page 80: ...able and the data rate Set the Software Table 0x3900 and the Data Rate 0x3908 in the setting area group 7 Make the detailed settings when the OPEN_SYSTEMEX is used When the OPEN_SYSTEMEX is used set t...

Page 81: ...REQ_ACC_ACK Interrupt Cause in the Interrupt Cause Indication register 0x0005 to be 1 periodically 4 Clear the Interrupt cause after confirming it Set the REQ_ACC_ACK flag of the Interrupt Clear regis...

Page 82: ...mand REQUEST_ RESETSTATUS Select the item to clear from the CompoNet Master Board as the argument of Command area PC BD 0x3200 Set the command REQUEST_RESETSTATUS 2 Notify the command is set Set the C...

Page 83: ...pt cause after confirming it Set the SND_ACK flag of the Interrupt Clear register 0x0006 to 1 to clear the interrupt cause 6 Wait for an Explicit message response This is the case when the BD_SND is c...

Page 84: ...flag of the Interrupt Clear register 0x0006 to 1 3 Wait for 1 second Have a WAIT for 1 second 4 Reset the Board Write 1 in the Board Reset 0x0001 and reset the Board 5 Process after the reset Redo th...

Page 85: ...st Confirmation register 0x0003 changes to 0 4 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...

Page 86: ...to Shared Memory 1 Confirm the interrupt cause Confirm the BD_WDT interrupt cause in Interrupt Cause Indication register 0x0005 2 Clear the interrupt cause Set the BD_WDT flag of the Interrupt Clear r...

Page 87: ...g 68 6 1 1 Identifying Errors 68 6 1 2 LED Indication During Normal Operation 69 6 1 3 LED Indication at Errors and Actions to Be Taken 69 6 1 4 Error Identification by StateStatus 70 6 2 Error Log 70...

Page 88: ...the Network NS LED 2 Identifying the error content Read the Basic status group and the Detailed status group in the CompoNet Master Board Identify the error location and the content In the Windows op...

Page 89: ...ccurs Board operation after error detection CompoNet Master Board stops operation and is in standby Action to be taken If the same error persists even it is connected to other PC replace the CompoNet...

Page 90: ...uses the time information notified by the user application LED StateStatus How to identify the errors Bit Error NS Red light 3 Slave duplication error occurred Identify the erroneous Slave or Repeate...

Page 91: ...ime 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 a...

Page 92: ...it 0x20 Word OUT Slave Unit 0x40 Bit IN Slave Unit Bit MIX Slave Unit 0x50 Bit OUT SlaveUnit 0x70 Repeater Unit Node address Hex No 0x0378 Illegal Repeater or Configuration error Cause Repeater Unit r...

Page 93: ...4 6 CPNT_SetDateTime Write Time Data 89 A 5 I O Data Access API 90 A 5 1 CPNT_GetAccessToIO Get Access to I O 90 A 5 2 CPNT_ReleaseAccessToIO Release Access to I O 90 A 5 3 CPNT_GetInData Get IN Data...

Page 94: ...T_Open To open a specified board CPNT_Close To close a specified board CPNT_Reset To reset a specified board CPNT_IsExistBoard To check whether a specified board is installed API function Description...

Page 95: ...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_UnRegReceiveE...

Page 96: ...d disable it to use Call Format BOOL CPNT_Close HANDLE Handle Argument Returned value It returns TRUE when the function succeeds It returns FALSE when an error occurs The error details can be obtained...

Page 97: ...at BOOL CPNT_IsExistBoard WORD BoardId Argument Returned value It returns TRUE when the Board of specified ID exists It returns FALSE when an error occurs when no Board with specified ID exists or whe...

Page 98: ...le IN Device handle obtained with the function CPNT_Open CPNT_SOFT WARE_TABLE SoftwareTable IN Specify the number of occupied nodes WORD DataRate IN Specify the data rate 0 4 Mbps 1 3 Mbps 2 1 5 Mbps...

Page 99: ...st Type Parameter Direction Description HANDLE Handle IN Device handle obtained with the function CPNT_Open CPNT_SOFT WARE_TABLE SoftwareTable IN Specify the number of occupied nodes WORD DataRate IN...

Page 100: ...When it is enabled set the necessary data to the structure CPNT_EX_TABLE 12 to 15 Reserved area Always set 0 OFF Type Parameter Description WORD OutNode Specify the maximum number of occupied Word OU...

Page 101: ...Units or Repeater Units WORD 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 Type Parameter Description WORD Pol...

Page 102: ...page for the setting items Bit Flag Description 0 Registration table enabled flag Always set it to 1 ON when the Registration table is used 1 All Registered Slave Participation Standby flag 0 OFF Disa...

Page 103: ...110 192 points 01111 208 points 10000 224 points 10001 240 points 10010 256 points others prohibited 5 IN setting enabling flag 0 Disabling IN number setting 1 Enabling IN number setting 6 to 7 Reserv...

Page 104: ...e 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 b...

Page 105: ...ll Format BOOL CPNT_GetDriverVersion HANDLE Handle DRIVER_VERSION_INFO VersionInfo Type Parameter Direction Description HANDLE Handle IN Device handle obtained with the function CPNT_Open BOARD_VER SI...

Page 106: ...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 See Appendix B 3 3 for the dat...

Page 107: ...he function CPNT_Open CPNT_STATU SEX StatusEx OUT Pointer to store the detailed status WORD StatusExInfo IN Specify the detailed status to read Type Parameter Description WORD CommunicationFault 28 Du...

Page 108: ...us group 1 ON Item to read among the Detailed status group 1 Registration error Registered Slave not participating flag 2 Registration error Non registered Slave participating flag 3 Repeater configur...

Page 109: ...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 6 Err...

Page 110: ...or Remarks To execute this function the I O communications must be running It takes a maximum of one communications cycle to exit this function A 5 2 CPNT_ReleaseAccessToIO Release Access to I O Purpo...

Page 111: ...tError Remarks To execute this function the I O communications must be running See Appendix B 3 5 for the content of IN data A 5 4 CPNT_GetBitInData Get Bit IN Data from Bit IN Slave Unit Purpose Read...

Page 112: ...e Parameter Direction Description HANDLE Handle IN Device handle obtained with the function CPNT_Open WORD BitIN OUT Specify the pointer to store Bit IN data Requires the area equivalent to Word size...

Page 113: ...dle CPNT_EXPLICIT_REQ ExplicitReq Argument 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 GetLastEr...

Page 114: ...xplicit 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 BYTE Rsv Reserved area S...

Page 115: ...Notice of Explicit Response Message Received Purpose Unregister the message to notify when an Explicit response message is received Call Format BOOL CPNT_UnRegReceiveExplicitNotifyMessage HANDLE Handl...

Page 116: ...function CPNT_Open CPNT_EXPLI CIT_RES ExplicitRes OUT Set the pointer to store the response Type Parameter Description BYTE Sid Stores the same value as set for Sid of a request BYTE Rsv Reserved area...

Page 117: ...gument 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 When the PC WDT function...

Page 118: ...ction The value 0 is stored in both of WPARAM and LPARAM of the notified message Set either the thread ID or the window handle If both are set an error is returned and the message is not registered A...

Page 119: ...ndle 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 Unregister the Windows message t...

Page 120: ...al 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...

Page 121: ...pt from PC to Board 104 B 2 5 Interrupt Control Register Interrupt from Board to PC 105 B 3 Shared Memory Area Specifications 107 B 3 1 Shared Memory Area Map 107 B 3 2 Board Information 108 B 3 3 Bas...

Page 122: ...or Correct Use The PCI register area must be accessed by 8 bit The Shared memory area must be accessed by 16 bit No access is possible to these areas by 32 bit Register Value Description Vendor ID 0x1...

Page 123: ...Board ID Read 0x0001 Board reset Write 0x0002 Interrupt control register Interrupt from PC to Board Interrupt trigger Write 0x0003 Interrupt request confirmation Read 0x0004 Interrupt control register...

Page 124: ...oard Interrupt Trigger Offset 0x0002 Interrupt Request confirmation Offset 0x0003 Flag Bit Description CMD 0 The PC issues a command request to the Board BD_SND_ACK 1 The PC gives an acknowledgment to...

Page 125: ...0x0004 Flag Bit Description CMD_ACK 0 The acknowledgment made by the Board against the command request made by the PC to the Board BD_SND 1 Used when the Board notifies the PC of an event transmission...

Page 126: ...it7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 Flag BD_WDT REQ_ACC _ACK INIEND Unused REQ_RES SND_ACK BD_SND CMD_ACK Access rule R R R R R R R R Initial value 0 0 0 0 0 0 0 0 bit7 bit6 bit5 bit4 bit3 bit2 bit...

Page 127: ...to 0x029F Bit OUT data 16 32 R W As needed 0x0300 to 0x0337 Detailed status group Duplication error flag 28 56 R As requested 0x0338 to 0x0367 Registration error Registered Slave not participated fla...

Page 128: ...area BD PC 273 546 R Explicit Message 0x3900 to 0x3907 Setting area group Software table 4 8 R W OPEN 0x3908 to 0x3909 Data rate 1 2 R W OPEN 0x390A to 0x390B Logical error checking item 1 2 R W OPENE...

Page 129: ...Name 6 ProductName 5 10 ProductName 8 ProductName 7 11 ProductName 10 ProductName 9 12 ProductName 12 ProductName 11 13 ProductName 14 ProductName 13 14 ProductName 16 ProductName 15 15 ProductName 18...

Page 130: ...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 71 70 69 68 67 66 65 64 13 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 14 111 110...

Page 131: ...59 58 57 56 55 54 53 52 51 50 49 48 12 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 13 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 14 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 9...

Page 132: ...ad 0 OFF Normal 1 ON An error occurred This flag can be on only when the Communications stop due to communications error function is enabled The bit will be 1 or on even if one of the participating Sl...

Page 133: ...be 1 or on if the error counter exceeds the threshold 10 Registration table function state Read 0 OFF Registration table function is disabled 1 ON Registration table function is enabled 11 Reserved ar...

Page 134: ...Unit Offset Word Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 0 Node 7 Node 6 Node 5 Node 4 Node 3 Node 2 Node 1 Node 0 1 Node 15 Node 14 Node 13 Node 12 Node 11 Node 10 Node 9 Node 8 2 Node 2...

Page 135: ...ode 112 15 Node 127 Node 126 Node 125 Node 124 Node 123 Node 122 Node 121 Node 120 Name Access Description Number of the node Read Write It stores Bit IN data from a Bit IN Slave Unit Offset Word Bit...

Page 136: ...41 Node 40 6 Node 55 Node 54 Node 53 Node 52 Node 51 Node 50 Node 49 Node 48 7 Node 63 Node 62 Node 61 Node 60 Node 59 Node 58 Node 57 Node 56 8 Node 71 Node 70 Node 69 Node 68 Node 67 Node 66 Node 6...

Page 137: ...5 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 9 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 10 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 11 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 12 79 78 77...

Page 138: ...36 35 34 33 32 7 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 Flags for Bit IN MIX Slave Units These values are the corresponding part of each node address 8 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...

Page 139: ...16 6 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 7 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 Flags for Bit IN MIX Slave Units These values are the corresponding part of each node address 8 1...

Page 140: ...IN MIX Slave Units These values are the corresponding part of each node address 8 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 9 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 10 47 46 45 44 43 42 41 40 39...

Page 141: ...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 4...

Page 142: ...5 4 3 2 1 0 25 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 26 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 27 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 Name Access Description Event only...

Page 143: ...Mbps 2 1 5 Mbps 3 93 75 kbps Communications cycle time Read It stores the present value for the communication cycle time in units of 0 1 ms Maximum communications cycle time Read It stores the maximu...

Page 144: ...t 62 64 Error counter value for Bit IN MIX Slave Unit 1 Error counter value for Bit IN MIX Slave Unit 0 to to to 127 Error counter value for Bit IN MIX Slave Unit 127 Error counter value for Bit IN MI...

Page 145: ...ess Description NetPower Read 0 Network power is not supplied 1 Network power is supplied Offset Word Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 0 I O information of Word IN MIX Slave Unit 0...

Page 146: ...nit 0 to to 1407 Product Code of Word IN MIX Slave Unit 63 1408 Product Code of Word OUT Slave Unit 0 to to 1471 Product Code of Word OUT Slave Unit 63 1472 Product Code of Bit IN MIX Slave Unit 0 to...

Page 147: ...it16 31 to to 2270 Serial Number of Word OUT Slave Unit 63 Bit0 15 2271 Serial Number of Word OUT Slave Unit 63 Bit16 31 2272 Serial Number of Bit IN MIX Slave Unit 0 Bit0 15 2273 Serial Number of Bit...

Page 148: ...ts 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 poi...

Page 149: ...tion info of Repeater Unit 63 Name Access Description Repeater configuration information Read Bits 0 to 7 Node address of immediate upstream Repeater Unit from a Slave or another Repeater Unit Bits 8...

Page 150: ...ve Unit 126 Alarminformation of Bit OUT Slave Unit 125 Alarminformation of Bit OUT Slave Unit 124 96 Alarminformation of Repeater Unit 3 Alarminformation of Repeater Unit 2 Alarminformation of Repeate...

Page 151: ...B 3 9 for the content of the Registration table 316 64th error code 317 64th detailed code 318 Minute of the 64th error occurrence 0 to 59 Second of the 64th error occurrence 0 to 59 319 Day of the 6...

Page 152: ...er Board to the PC has the following format The data size is fixed Data format Offset address 0x3210 Detailed format Offset Word Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 0 CMD 1 Argument Na...

Page 153: ...o identify to which request the response pertains Set a certain value by the user application Settable range 0x00 to 0xFF Node address with attributes Read Write It specifies the destination node addr...

Page 154: ...e It stores the corresponding error code when an error occurs Stores 0x00 during the normal state SRES End code Read Write It stores the corresponding detailed errorcode when an error occurs Stores 0x...

Page 155: ...and 93 75 kbps 10 04 The command is not in the specified format 10 05 Header error 11 0B The response exceeds the maximum length 22 11 The destination is in the state that cannot receive an explicit m...

Page 156: ...table is set when the Registration Table function is enabled The command OPEN_SYSTEMEX is used to make the setting See Section 3 5 1 for information on the table function Offset Word Bit 15 14 13 12...

Page 157: ...T Slave Unit 127 387 Vendor Code of Word IN MIX Slave Unit 0 to to 450 Vendor Code of Word IN MIX Slave Unit 63 451 Vendor Code of Word OUT Slave Unit 0 to to 514 Vendor Code of Word OUT Slave Unit 63...

Page 158: ...n of Word IN MIX Slave Unit 62 1571 Major Revision of Word OUT Slave Unit 1 Major Revision of Word OUT Slave Unit 0 to to to 1602 Major Revision of Word OUT Slave Unit 63 Major Revision of Word OUT Sl...

Page 159: ...I O size information format in the following page for the set content Vendor Code Read Write Sets these flags when the relevant flag of the Registration table is set to check The values to be set are...

Page 160: ...g 0 Disabled IN number setting 1 Enabled IN number setting 6 to 7 Reserved area Set 0 OFF 8 to 12 Number of OUT channels Set the number of OUT channels for Slave Units Set the Bits 8 to 13 to 0 OFF wh...

Page 161: ...is the time to monitor events addressed to Slave Units Settable range 0 to 65535ms Setting it to 0 will select the default of 2000ms Offset Word Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 0 M...

Page 162: ...s Then it starts the communications cycles OPEN_SYSTEMEX 0x0002 It starts the system with the detailed setting and starts the communications cycles Communications control START_IOCYCLE 0x1001 It start...

Page 163: ...ust be set Mandatory Software table Data rate Required when the relevant function is enabled or when the relevant function needs the setting Logical error checking item Registration Table Bit Descript...

Page 164: ...or after the I O communications is explicitly stopped These are the possible causes of having a situation in which no status change is allowed The I O communications has already started The communicat...

Page 165: ...ing status 1 WORD data items Set the bits to read to 1 ON and the bits not to read to 0 OFF Response code Normal end 0x0000 Remarks The Detailed status in the shared memory that has been requested to...

Page 166: ...ime the Cumulative CRC reception error and the Cumulative code reception error in the Master status are cleared Command SET_PC_WDT Purpose Set the PC Watchdog Timer Code 0x3001 Argument Timer value 1...

Page 167: ...NDIX C Communications Performance C 1 Remote I O Communications Performance 148 C 1 1 Input time Slave Unit Master Board 148 C 1 2 Output time Master Board Slave Unit 148 C 1 3 Descriptions of Paramet...

Page 168: ...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 i...

Page 169: ...put Slave Units additional time per Bit Output Slave Unit Number of Bit Input Slave Units additional time per Bit Input Slave Unit Additional Time per Unit by Slave Unit Type G Calculation Example TIN...

Page 170: ...that is used when more than 32 Word IN Slave Units are connected S1 Number of connected Word IN Slave Units Correction coefficient for each Word IN Slave Unit Data rate Word Outputs Word Inputs Bit ou...

Page 171: ...ts 7 8 additional time per 8 Bit Output Slave Units Additional time per Word Output Slave Unit Additional time per 8 Bit Output Data rate Word Inputs 4 0Mbps 60 Units Slave Unit Type 4 0Mbps 3 0Mbps 1...

Page 172: ...umber of Bit Output Slave Units 7 8 0 55 s TRelAcc Processing Time to Release an Access Right TRelAcc 6 91 s Number of Word Output Slave Units 0 46 s Number of Bit Output Slave Units 7 8 0 55 s TPC Ti...

Page 173: ...153 APPENDIX D Sample Program D 1 Sample Program 154...

Page 174: ...responds 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 a...

Page 175: ...es 173 E 3 7 Extending Communications Cables 175 E 3 8 Connection Locations for Terminating Resistors 176 E 3 9 Connection Locations for Communications Power Supplies 179 E 4 Preparing and Mounting Fl...

Page 176: ...II 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 tot...

Page 177: ...or blue None None Round cable II 4 conductor cable To wire with a commercially available cable To use the communications cable to supply the communications power to all Slave Units with white green or...

Page 178: ...I UNICOMPO RC I T Round Cable I UNICOMPO RC II T Round Cable II CNS F I Round Cable I stationary use Dyden Corporation CNS F II Round Cable II stationary use CNM I Round Cable I robot use CNM II Round...

Page 179: ...Nominal cross section mm2 Allowable current A 1 Red BS positive side of communications power supply 0 75 5 max 2 White BDH signal high 0 5 3 Blue BDL signal low 0 5 4 Black BS negative side of communi...

Page 180: ...able 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 differ...

Page 181: ...at least once to 25 mm 0 75 mm2 2 thirty 0 18 mm strands twisted at least once to 30 mm 0 5 mm2 2 twenty 0 18 mm strands twisted at least once to 25 mm 0 75 mm2 2 thirty 0 18 mm strands twisted at le...

Page 182: ...t Slave Unit Repeater Unit Slave Unit Branch line Branch line Trunk line length Sub trunk line length Sub branch line length Branch line length Slave Unit T branch connection Multidrop connection Term...

Page 183: ...h of a branch line 0 5 m 0 5 m Total length of branch lines 8 m 8 m Branching restriction 3 branches m 3 branches m Number of connectable Units and Units per branch line 1 1 Maximum length of a sub br...

Page 184: ...ead of a Word OUT Slave Unit Item Round cable I Round cable II Flat Cable I or II Length of a trunk line or a sub trunk line Maximum length when two Repeater Units are used 500 m 1500 m Unrestricted w...

Page 185: ...nit with node address 2 You Cannot Use Nodes That Are Allocated the Same Areas at the Same Time Refer to 3 1 1 Settings Required for Starting the Communications Cycle and 3 2 1 Allocation of I O Data...

Page 186: ...g Resistor Repeater Unit Slave Unit Slave Unit Slave Unit Slave Unit Terminating Resistor Master Board Cable type Data rate 4 Mbps 3 Mbps 1 5 Mbps 93 75 kbps Round cable I Trunk Branch Trunk Branch Tr...

Page 187: ...ts 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...

Page 188: ...e Units A 24 VDC communications power supply is connected to the communications power supply connector on the Master Board or the Repeater Unit At the end of the network line you must connect either a...

Page 189: ...Connector Communications power supply lines 2 Communications signal lines 2 Relay terminal block Communications power supply BDL BDH BS BS BDL BDH BS BS BDL BDH BS BS BDL BDH BS BS Open Type Connecto...

Page 190: ...nector I Socket When Flat Cable I is used Slave Units can be connected in parallel also by multidrop connections A DCN4 MD4 Multidrop Connector is used for this connection Communications power supply...

Page 191: ...e Master Board connections Slave Unit Repeater Unit connections Cable branches T branch connections Multidrop connections Flat Connector Plug Flat Connector Plug Word Slave Unit or Repeater Unit Bit S...

Page 192: ...iffer by the type of cable used as the communications cable When Using Round Cable I or II with Open Type Connectors Use a DCN4 TB4 Open Type Connector to connect a round cable I or II to the Master B...

Page 193: ...ly Available relay Terminal Blocks The cable wires are connected to the terminals of a relay terminal block Example Round cable I Precautions for Correct Use Before connecting the cable wires to the t...

Page 194: ...et Flat Cable II Attach a DCN5 BR4 Flat Connector II Plug already connected to Flat Cable to a DCN5 TR4 Flat Connector II Socket Note The same type of cable must be used for the trunk line and branch...

Page 195: ...owever is the maximum trunk line length See Section 1 2 1 Flat Cable I Attach a DCN4 BR4 Flat Connector I Plug to a DCN4 TR4 Flat Connector I Socket that has already been equipped with a cable stopper...

Page 196: ...from the Master Board DCN5 TR4 Flat Connector II Plug DCN5 TR4 Flat Connector II Socket There must be only one Terminating Resistor that is connected at the opposite end of the trunk line from the Mas...

Page 197: ...Connector Socket 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 li...

Page 198: ...line is Flat Cable I When the line is round cable I or II When the line is round cable II DCN4 MD4 Multidrop Connector Flat Connector Plug Communications connector of a Slave or Repeater Unit an upstr...

Page 199: ...onnector provided on a Repeater Unit 3 For a Round Cable II you can also use the DRS1 T Terminating Resistor If you do insulate the ends of the BS and BS lines Using Round Cable I The BS and BS termin...

Page 200: ...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...

Page 201: ...ine 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 cabl...

Page 202: ...Housing 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 Name Appearance Model Purpose Special Tool Pliers DWT A01 A p...

Page 203: ...ble wire colors match the cable label colors on the Flat Connector I Socket Insert the tips of the cable wires all the way into the cable stopper in the cover 4 Attaching the Housing Reconfirm that th...

Page 204: ...on the DWT A01 Pliers 5 2 Squeeze the Pliers firmly until the lock on the connector clicks into place Precautions for Correct Use Do not pressure weld the connector cover at the edge Do not use the b...

Page 205: ...prevent short circuiting use a sharp cutting tool such as a nipper After cutting confirm that there is no remaining wire coming out 2 Setting the Cable Stopper required only when the cable is extende...

Page 206: ...the cable in the cover 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 stoppe...

Page 207: ...w of the connector cover with the center of the pressure welding block on the DWT A01 Pliers 5 2 Squeeze the Pliers firmly until the lock on Connector clicks into place Precautions for Correct Use Do...

Page 208: ...sharp cutting tool such as a nipper After cutting confirm that there is no remaining wire coming out 2 Mounting the Cable Confirm that the cable colors match the cable label colors shown on the Flat C...

Page 209: ...of the pressure welding block on the DWT A01 Pliers 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 Do not us...

Page 210: ...le 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 2 Setting the...

Page 211: ...ting the Cable 3 1 Place the cable on the Connector with its white line facing upward near the cover opening For T branch connections For Cable extension or connecting a Terminating Resistor Center of...

Page 212: ...4 Pressure Welding the Connector Use a DWT A02 Special Tool Pliers to pressure weld and connector the cable 4 1 Place the Connector on the pressure welding block of the DWT A02 Pliers Align the Connec...

Page 213: ...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 2 Mounting the Cable...

Page 214: ...e 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 s...

Page 215: ...minal on the PORT1 connectors of the Repeater Units I O power Supplied separately from the communications power to each I O power supply terminal on the Units To prevent noise generation the power mus...

Page 216: ...s 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 Communica tions power supply...

Page 217: ...ard or Repeater Unit BS BDH BDL BS BS BS BS BD H BD L BS Overcurrent protection current limit 4 A Communications power supply connector on Master Unit or downstream port s communications power supply...

Page 218: ...ve the Number of used channels Current consumed by a sensor the Number of used sensors 2 In case of an Output Slave unit Consumption current by the communications power supply Current consumed by a Bi...

Page 219: ...e 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 BS BS BS BS BDH BDL V G V G V G BDH BDL...

Page 220: ...und Cable I Terminating Resistor 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 suppl...

Page 221: ...BS BS BDH BDL Overcurrent protection current limit 4 A Trunk line 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 f...

Page 222: ...G BDH BDL BDH BDL BDH BDL BS BS BS BS BS BS BS BS BS BS BS BS BDH BDL BDH BDL BDH BDL V G V G I O power supply Trunk line Slave Unit Terminating Resistor Round Cable II Flat Cable I or Flat Cable II S...

Page 223: ...unications power supply connector on the Master Unit Communications power supply The communications power is supplied to the downstream communications port power supply connector on the Repeater Unit...

Page 224: ...g as they are separated by a Repeater Unit Trunk line or sub trunk line Sub trunk line Master Board Repeater Unit Repeater Unit Trunk line or sub trunk line Communications power supply Communications...

Page 225: ...e Multi power supply Slave Unit Round cable I Terminating Resistor 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...

Page 226: ...ed the limits Precautions for Correct Use Exceeding the allowable current limit may result in heat or burnout 24 VDC Power Supply Slave Unit current consumption I1 Terminating Resistor Slave Unit curr...

Page 227: ...available cables and the permissible cable extension length Use the following approximation formula if you want to add some margin in the cable selection Where R is the cable conductor resistance 0 0...

Page 228: ...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 sin...

Page 229: ...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 mu...

Page 230: ...210 Wiring for Power Supply Section E 5...

Page 231: ...s error occur rence flag 39 Connecting the Master Board 172 CPNT_ChangeToIdleState 84 CPNT_ChangeToRunState 84 CPNT_Close 76 CPNT_EnablePCWDTTimer 97 CPNT_GetAccessToIO 90 CPNT_GetBitInData 91 CPNT_Ge...

Page 232: ...195 N Network Parameter 140 Network Power State 125 Network power supply 195 NS LED 6 O Open Type Connector 21 OPEN_SYSTEM 28 OPEN_SYSTEMEX 37 Optimizing Communications Cycle 3 P Participated Slave Un...

Page 233: ...Index 213 T Terminating Resistor 167 168 170 176 U Using Different Cable Types 160 V Voltage Drop 207 W Word IN Data 114 Word OUT Data 115...

Page 234: ...214 Index...

Page 235: ...es the changes made to the manual during each revision Page numbers refer to the previous version Revision code Date Revised content 01 July 2009 Original production 02 September 2013 Information was...

Page 236: ...216 Revision History...

Page 237: ......

Page 238: ...PANY 2EGIONAL EADQUARTERS 2 52 0 6 7EGALAAN OOFDDORP 4HE ETHERLANDS 4EL AX 2 42 3 NE OMMERCE RIVE 3CHAUMBURG 5 3 4EL AX 2 3 0 04 4 O LEXANDRA 2OAD OBBY LEXANDRA 4ECHNOPARK 3INGAPORE 4EL AX 2 4 2OOM AN...

Reviews: