Home
Omron CJ1W-DRM21 User's Manual
Contents
1. Remote I O communications will restart if a user turns OFF a bit that is ON More than one of these switches may be turned ON at the same time If the switch for a slave that is not using remote I O communications is turned ON it will be ignored A Unit that has been disconnected can still perform message communica tions Turning ON this bit does not effect the communications cycle time except that it increases blank time in the communications cycle Note All Disconnect Connect Switches are cleared and return to OFF when the power is turned OFF If required write the ladder program to turn them back ON when the power is turned ON by Disconnect ON User Stops remote I O communications for the corresponding Slave Connect n gt Switch OFF User Starts remote I O communications for the corresponding Slave 70 Allocated CIO Area Words Section 3 2 3 2 5 Unit Status 1 Word n 10 Word n 10 n CIO 1 500 25 x unit number Status Controlled Unit operation by 00 Unit Error ON Unit Displays DeviceNet Unit operating errors Flag This bit turns ON if any bit from 01 to 15 in Unit Status 1 turns ON OR of bits 01 to 15 Usage example When writing the ladder program for remote I O commu nications set a NC input conditions for this bit to control Slave I O pro cessing OFF Unit Indicates that the an error has not occurred or turns OFF when the
2. changed The Communications Cycle Time Reference Table words m 15 to m 18 will clear before the switch returns to OFF if the change was successfully com pleted Note The Communications Cycle Time Setting Failed Flag word n 12 bit 12 will turn ON if there is a setting error In that case the Communications Cycle Time Reference Table words m 15 to m 18 will not be cleared Allocated CIO Area Words Section 3 2 Bit Name Status Con Unit operation Operation condi Default trolled tions setting by CPU Mas Scan Unit ter list oper func sta ating tion tus mode Commu Clears data in the Communications Cycle Time Refer nications ence Table words m 15 to m 18 The data that is Cycle cleared will be updated with new data Time Returns to OFF after the data in the Communications Refer Cycle Time Reference Table words m 15 to m 18 ence has been cleared Table Clear Switch 3 2 2 Software Switches 2 Word n 1 All switches are turned ON by the user The Unit automatically turns them OFF after the function is executed Once a function is set by turning a switch ON except for the switches listed below it is saved regardless of whether the power is turned OFF and back ON again e Slave COS Send Switch bit 12 e Unit Setup File Restore Switch bit 14 e Unit Setup File Backup Switch bit 15 If multiple bits are turned ON simultaneous
3. User set allo cations 16 Masters Configurator required 16 Masters even without the Configurator Routing table registration Not necessary When creating a routing table registration in a local network table is necessary Unit No that can be set Oto F Oto F Masters on a single network Multiple Masters Configurator required Multiple Masters even without the Configura tor Remote I O communica tions Master O O Slave X O Message communications Explicit message send FINS message com munications Explicit message send FINS message com munications Note Can send and receive explicit mes sages to the PC to which a C200H DeviceNet Master Unit or CVM1 CV DeviceNet Master Unit is mounted Cannot sent or receive FINS mes sages Registration in the scan list when using only message communications Required Not required Area used to exchange data with the CPU Unit not includ ing remote O allocation Allocated CIO Area words 2 000 to 2 009 10 x unit number 1 500 to 1 524 25 x unit number Allocated DM Area words Not used D30000 to D30099 100 x unit number Dedicated DM area D06032 to D06033 2 x unit number Not used Note With user set allocations using the allocated DM Area words however the Allocation Size Setup Table must be allocated to a position in I O mem ory 29
4. 200 flashing Scan list operation in progress The scan list is being saved in flash memory or the scan list is being cleared Troubleshooting with the DeviceNet Unit Indicators 9 1 2 Troubleshooting Errors Occurring in the DeviceNet Unit Error cate gory Master func tion Remote I O communications stopped by a communications error Indicators 7 segment Software set tings errors CPU Unit status error Unit status error Structure error Incorrect setting Multiple switches ON Master func tion Structure I O area duplication errors I O area range exceeded Unsupported slave Verification Non existent slave errors Illegal vendor Illegal connection path I O size mismatch Illegal device Illegal product code Unsupported connection Red flashing Remote I O communications error Red flashing Network errors Network power supply error Transmission timeout error OFF or Red flashing Memory access errors Message monitoring timer list logic error Slave scan list logic error Master scan list logic error Memory access error Red flashing Network errors Node address duplication Bus Off detected Red lit CPU Unit exchange Unit number duplication CPU Unit faulty H2 Red flashing OFF DeviceNet Unit faulty Red
5. 8 output points NPN DRT1 OD08 8 output points PNP DRT1 OD08 1 16 output points NPN DRT1 OD16 16 output points PNP DRT1 OD16 1 Remote I O Terminals with Transistors and 3 tier Terminal Block 16 input points NPN DRT1 ID16T DRT1 ID16T 1 16 input points NPN DRT1 ID16TA NPN 16 input points PNP NPN 16 input points PNP DRT1 ID16TA 1 16 output points NPN DRT1 OD16T 16 output points PNP DRT1 OD16T 1 16 output points NPN DRT1 OD16TA 16 output points PNP DRT1 OD16TA 1 8 input points 8 out put points NPN DRT1 MD16T 8 input points 8 out put points PNP DRT1 MD16T 1 8 input points 8 out put points NPN DRT1 MD16TA 8 input points 8 out put points PNP DRT1 MD16TA 1 Simple wiring not necessary to tighten multiple wires together and wiring locations are easy to understand The DRT1 LID16TA 1 does not need a separate power supply for internal circuits uses the communications power supply Remote I O Terminals with Transistors and Connectors 32 input points NPN DRT1 ID32ML 32 input points PNP DRT1 ID32ML 1 32 output points NPN DRT1 OD32ML 32 output points PNP DRT1 OD32ML 1 16 input points 16 output points NPN DRT1 MD32ML 16 input points 16 output points PNP DRT1 MD32ML 1 Compact 35 x
6. 65 CPU Unit errors 1 word 2 bytes e CPU Operating Mode Attribute ID 64 Hex Changes the CPU Unit operating mode The Attribute Values are as follows 0001 Hex PROGRAM mode 0002 Hex MONITOR mode 0004 Hex RUN mode Note The specified code for the above operating modes are 1 word 2 byte data and are specified with the low byte first For example for PRO GRAM mode the code is specified as 01 Hex followed by 00 Hex Ac cordingly the low to high bytes for the above codes are set as high to low bytes in I O memory when setting the codes as data for oper and S of CMND 490 e Clearing CPU Unit Errors when Attribute ID 65 Hex Clears any fatal or non fatal errors in the CPU Unit Sets the error clear code to Attribute Value The error clear codes are listed in the following table Error code Data cleared Hex FFFE Current error clears the highest priority error 0008B Interrupt task error 009A Basic I O error 009B PC Setup error 02F0 Inner Board non fatal error 0300 to 035F Special I O Unit error 00A0 to 00A1 SYSMAC BUS error 0500 to 055F Special I O Unit settings error 00E7 I O verification error When registered and actual I O tables are different When disconnecting or connecting I O Units Receiving Explicit Messages Section 6 5 Error code Data cleared Hex OOF7 Battery error 0200 to 020F CS CJ series CPU Bus Unit error last 2 digits are binary code for the U
7. Master Status Area 1 15 CEEI ONN Device CPU Net Unit Unit 6 1 6 Message Monitoring Timer Note A message monitoring timer monitors responses for the DeviceNet Unit A timer can be set for each device that will be communicated with each mes sage destination Message monitoring timers are supported for both explicit message and FINS message communications The timers can be set with version 2 or later of the DeviceNet Configurator The default setting is 2 seconds 2 000 ms The set ting range is 500 to 30 000 ms If the response from the remote communications device message destina tion is slow the timer setting must be increased In particular responses take time in FINS message communications that cross different network layers so this setting must be increased The next message cannot be sent to the same communications device during the response waiting time so the setting should not be set too high The DeviceNet Unit uses this timer to monitor message timeouts The CPU Unit performs the monitoring based on the response monitoring time for CMND SEND 090 and RECV instructions There will be no effect therefore if either the message monitoring timer or the response monitoring time for CMND SEND RECYV instructions setting only is increased or decreased Both must be increased or decreased for there to be an effect Set the response monitoring time for the CMND SEND 090 and RECV
8. 0 0 02 ee eee 15 13 Specifica ns sre se ee Seas oN eed ties BE Ee Rae Be e 21 123 1 DeviceNet Uniti tyi sy te ea Se Ph Ae heya 21 1 4 Comparison with Previous Models 0 000 e ee ee eee 29 1 5 Outline of the Configurator 0 00 0 00 33 125 1 Modelsss3 esse aos E oh ke ee en 33 1 5 2 Configurator Specifications 00 00 00 eren 34 1 6 Basic Operating Procedures 0 0 0 eee eee 36 1 6 1 Network Installation Procedure 000 36 1 6 2 Hardware Preparations for Communications 36 1 6 4 Procedures Prior to Starting Communications 38 1 7 List of Usage Methods by Purpose 0 00 0 e eee eee 42 Overview of DeviceNet Section 1 1 1 1 Overview of DeviceNet DeviceNet is a multi bit multi vendor network that combines controls and data on a machine line control level and that conforms to DeviceNet open field net work specifications Three types of communications are supported 1 Remote I O master commu nications that automatically transfer I O between slaves and the CPU Unit to which a DeviceNet Unit is mounted without any special programming in the CPU Unit 2 Remote I O slave communications that automatically transfer I O between the Master and the CPU Unit to which a DeviceNet Unit is mounted and 3 Message communications that read write messages control operation or perform other functions for other CPU Units
9. The CPU Unit fatal non fatal error data is returned in 1 word 2 byte hexa decimal format as follows 01 Hex Error 00 Hex No error 15 1 Error e CPU Unit Model when Attribute ID 65 Hex The CPU Unit model is returned in ASCII Size 2 bytes Always 1400 Hex Model 20 bytes fixed Unused area is filled with 20 Hex spaces and returned 20 bytes Byte Byte Byte Byte Byte 14 00 Unitname 20 20 CPU Unit Write Service Code 10 Hex This PLC Object service writes CPU Unit information including the operating mode and clearing errors Command Block Attribute ID Class ID Service Code Attribute Value Destination node address Instance ID 169 Receiving Explicit Messages Response Block Parameters 170 Section 6 5 Service Code Destination node address No of bytes received Destination node address command The node address of the CS CJ series DeviceNet Unit to which to write data specified in 1 byte 2 digit hexa decimal Service code command response 10 Hex is specified for commands For responses the highest bit will turn ON and 90E Hex will be returned Class ID command Always 002F Hex Instance ID command Always 0000 Hex Attribute ID command Information to write is specified by the attribute ID The attribute IDs are listed in the following table Attribute ID Hex Attribute value size CPU Unit operating mode 1 word 2 bytes
10. 01 Hex CIO Area CIO 0000 to 17FF Hex 0 to 6143 03 Hex DM Area DM 0000 to 7FFF Hex 0 to 32767 04 Hex Word Area WR 000 to 01FF Hex 0 to 511 05 Hex Holding Area HR 000 to 01FF Hex 0 to 511 08 Hex to Expansion Data Memory EM 0000 to 7FFF Hex 0 to 32767 for all 14 Hex Bank 0 to C 13 banks banks Step 3 Turn ON the Slave User Allocations Switch Turn ON the Slave User Allocations Switch word n 1 bit 11 Step 4 Turn ON the Slave Enable Switch Turn ON the Slave Enable Switch word n 1 bit 06 This will allocated the above areas as slave areas and the DeviceNet Unit will start slave remote I O communications Once slave communications are enabled by turning ON the Slave Enable Switch the Unit will continue to perform slave communications even after the power is turned OFF and back ON again Slave User Allocations Table in the Allocated DM Area Words Bit Word m 8 Word m 9 Word m 11 ete IN block 4 area Word m 12 First word of the IN 1 area Word m 13 IN 1 area size Specify the size 15 0 area Eirst word of the OUT 1 area Ee a ed AFCA S ZE pesmama Slave output OUT area Bit 15 0 Master First word Specify the first word a specified Specify the first word Slave input IN area Bit 15 0 First word y specified es poe k to to Ee ee weg Specify the first word gt Specify the size
11. 45 Nomenclature and Functions Section 2 1 2 1 Nomenclature and Functions 2 1 1 Nomenclature and Functions CS1W DRM21 DRM ess m Tt OT Indicators eI UNIT E Unit No switch y This switch sets the unit number of the DeviceNet Unit a 1S i as a one digit hexadecimal value 05 X10 Sav X10 Node address switches These switches set the node address as a two digit decimal value 1 2 s 4 DIP switch The pins have the following functions Pins 1 and 2 Baud rate Pin 3 Continue Stop communications for error when used as a Master Pin 4 Hold clear I O for communications error when used as a Slave Communications connector Connect the Network communications cable to this connector The communications power is also supplied through this connector A parallel connector with screws KXW4B 05C1 H1 D is provided for node connection CJ1W DRM21 Indicators Unit No switch This switch sets the unit number of the DeviceNet Unit as a one digit hexadecimal value Node address switches These switches set the node address as a two digit decimal value DIP switch The pins have the following functions Pins 1 and 2 Baud rate Pin 3 Continue Stop communications for error when used as a Master Pin 4 Hold clear I O for communications error when used as a Slave Commun
12. Ambient and cabinet humidity with no condensation or icing Dust dirt accumulation Are the Units installed securely Are the communications connec tors fully inserted Are the external wiring screws tight Are the connecting cables undamaged None No looseness No looseness Installation No looseness No damage 225 Maintenance and Replacement Section 9 4 9 4 3 Replacing Faulty Units Precautions Note Settings after Replacing DeviceNet Units 226 Note 1 2 3 1 2 3 Replace a faulty DeviceNet Unit as soon as possible Refer to the DeviceNet Slaves Operation Manual W347 for details on replacing slaves We recom mend having spare Units available to restore network operation as quickly as possible Observe the following precautions when replacing a faulty Unit e After replacement make sure that there are no errors with the new Unit e When a Unit is being returned for repair attach a sheet of paper detailing the problem and return the Unit to your OMRON dealer e If there is a faulty contact try wiping the contact with a clean lint free cloth dampened with alcohol To prevent electric shock when replacing a Unit be sure to stop communica tions in the network and turn OFF the power supplies to all of the nodes mas ter and slaves before removing the faulty Unit When the master is being used the scan list network file must be registered after replaci
13. Attribute ID command The read information is specified by the attribute ID The attribute IDs are listed in the following table Attribute ID Hex Contents Attribute value size CPU Unit operating mode 1 word 2 bytes CPU Unit errors 1 word 2 bytes CPU Unit model 22 bytes e CPU Operating Mode when Attribute ID 64 Hex Reads the CPU Unit operating mode e CPU Unit Errors when Attribute ID 65 Hex Reads if there are any fatal or non fatal errors in the CPU Unit e CPU Unit Model when Attribute ID 66 Hex Reads the CPU Unit model No of bytes received response The number of bytes received from the destination node address remote node onwards is returned in hexadecimal Destination node address response The node address of the CS CJ series DeviceNet Unit that returned the response is returned in hexadecimal 168 Receiving Explicit Messages Section 6 5 Read data response The specified information is returned in order e CPU Unit operating mode attribute ID 64 Hex The CPU Unit operating mode is returned in 1 word 2 byte hexadecimal for mat as follows 0001 Hex PROGRAM mode 0002 Hex MONITOR mode 0004 Hex RUN mode PROGRAM mode MONITOR mode RUN mode Note The codes for the above modes are 1 word 2 byte data and are returned in low byte first For example for PROGRAM mode the code is returned as 01 Hex followed by 00 Hex e CPU Unit Errors when Attribute ID 65 Hex
14. Master Example Settings for User set Allocations through Allocated DM Area Words 128 This example uses the following settings for unit number 0 e OUT block 1 area and first word WR 04 Hex 50 0032 Hex 20 byte size 14 Hex 10 words e IN block 1 area and first word WR 04 Hex 100 0064 Hex 10 byte size OA Hex 5 words Section 5 3 User set Allocations e Slave User Allocations Table m 8 m 9 m 10 m 11 m 12 m 13 OUT block 1 area WR 04 Hex First word of OUT block 1 50 0032 Hex 30010 OUT block 1 size 20 bytes 14 Hex 10 words IN block 1 area WR 04 Hex 30012 First word of IN block 1 100 0064 Hex 30013 IN block 1 size 10 bytes 0A Hex 5 words e Slave areas OUT area 1 15 00 W050 W051 W052 W053 to W059 IN area 1 15 00 W100 W101 W102 W103 W104 Step 1 Turn ON the Slave User Allocations Switch Make sure that slave communications have stopped prior to performing this operation Turn ON the Slave User Allocations Switch word n 1 bit 11 CIO 150111 in this example This will allocate the above areas as slave areas and the DeviceNet Unit will start slave remote I O communications Step 2 Turn ON the Slave Enable Switch Turn ON the Slave Enable Switch word n 1 bit 06 CIO 150106 in this exam ple This will allocate the above areas as slave areas and the DeviceNet Unit will start slave remote I O communications 129 User set Allocations Sec
15. Specifies the first word of the allocation size setup table Setting results See Setting Results Gives the setting results Note See Allocation Size Setup Table p 84 for more details on the first 00 Hex word of the allocation size setup table Word range The block is not allocated 01 Hex CIO Area CIO 0000 to 17FF Hex 0 to 6143 03 Hex Data Memory DM 0000 to 7FFF Hex 0 to 32767 04 Hex Work Area WR 0000 to 01FF Hex 0 to 511 05 Hex Holding Relay HR 0000 to 01FF Hex 0 to 511 08 to 14 Hex Expansion Data Memory EM Bank 0 to bank C 13 banks 0000 to 7FFF Hex 0 to 32767 for all banks 83 Allocated DM Area Words Section 3 3 Setting Results Code Description Completed normally Details No area e Incorrect area setting e The allocated size in the allocation size setup table is 0 Address range specifi cation error The first word is outside the setting range Parameter error The OUT or IN size in the allocation size setup table exceeds 200 bytes Both the OUT and IN blocks are set for no allo cations No slaves are allocated Address range over flow The block or the allocation size setup table ex ceeds the valid word range e The block is larger than 1 000 bytes Wrong operating mode The CPU Unit is not in PROGRAM mode Unit busy Service cannot be executed
16. Total size 1 000 words max for a total of 2 blocks 2 000 words max for a total of 4 blocks Slave allocation limits Slaves with more than 8 points The leftmost byte bits 07 to 15 cannot be used Slaves with 8 points Allocated to the leftmost or rightmost bytes not allocated a word Slaves with 16 points Allocated one word Slaves with more than 16 points Note Allocated multiple words with an odd number of bytes only the rightmost byte is allo cated in the last word Functions will vary as shown below depending on whether allocations are set through the allocated DM Area words Master User Allocations Table or through the Configurator e Words are always allocated to slaves in order of ascending node ad dresses when allocations are set with the allocated DM Area words The order can be determined by the user when the Configurator is used However even when using the allocated DM Area words nodes do not have to be allocated words reducing the number of words re quired e Only two blocks OUT 1 and IN 1 can be allocated when setting are made with the allocated DM Area words area but there are four blocks OUT 1 2 and IN 1 2 available with the Configurator 107 User set Allocations ss Section 4 4 e The first bit for node allocations is always bit 00 when setting alloca tions with the allocated DM Area words but can be either bit 00 or bit 08 with the Configurato
17. All of the required Slaves are participating in communications No errors are being indicated at the DeviceNet Unit Messages aren t being produced in the Network from another company s configurator for example PON The values provided by these equations may not be accurate if another com pany s Master or Slave is being used in the Network 8 1 1 Communications Cycle Time and Refresh Time This section explains the communications cycle time communications time per slave and refresh time required for calculating processing time by the DeviceNet Unit Communications Cycle Time Communications Cycle Time Graph 190 Communications cycle time ms The communications cycle time is the time from the completion of a Slave s remote I O communications processing until remote I O communications with the same Slave are processed again The communications cycle time is used to calculate the maximum I O response time The communications cycle time depends on the number of Masters in the Network and on whether or not message communications are being per formed The following explanation is for a network with one Master For net works with several Masters refer to More than One Master in Network in the following section The following graph shows communications cycle time for the number of slaves when there are both 16 point output and 16 point input slaves Inputs Bit strobe Outputs Poll connection 2 4 6 8 10 1
18. CIO 3401 CIO 3201 01 CIO 3301 ClO 3501 CIO 3701 CIO 3602 ClO 3402 CIO 3202 02 CIO 3302 ClO 3502 CIO 3702 CIO 3661 ClO 3461 CIO 3261 61 CIO 3361 ClO 3561 CIO 3761 CIO 3662 ClO 3462 CIO 3262 62 CIO 3362 ClO 3562 CIO 3762 CIO 3663 ClO 3463 CIO 3263 63 CIO 3363 CIO 3563 CIO 3763 101 Fixed Allocations Note 4 3 2 Procedure Section 4 3 More than one Master Unit can be included in a single PC with fixed alloca tions as shown below 3 Units max Master Unit Master Unit Slave Slave Step 1 Place the CPU Unit in PROGRAM mode Step 2 Turn ON the Master Enable Switch Step 3 Turn ON the Scan List Clear Switch Step 4 Select Fixed Allocations Area 1 to 3 If the master communications have been disabled if Master Function Enable Flag word n 11 bit 03 is OFF turn ON the Master Enable Switch word n bit 06 to enable master communications Once Master communications have been enabled by turning this switch ON it will not change even if the power is turned OFF and back ON again Note If the master communications are enabled if Master Function Enable Flag word n 11 bit 03 is ON skip this step and go onto the next step If the Master Enable Switch is turned ON when master com munications are enabled a Unit error will occur and a C2 error will be displayed on the 7 segment display on the front panel If the Unit is in the Scan List Enable mode if Scan List Disabled F
19. DRT1 DA02 1 to 5 V O to 10 V 10 to 10 V 0 to 20 mA or 4 to 20 mA output switchable Resolution 1 6 000 CQM1 1 O Link Unit 16 internal inputs 16 internal outputs between CQM1 and Master CQM1 DRT21 Remote I O communications between PCs CPM2A CPM1A I O Link Unit 32 internal inputs 32 internal outputs between CPM2A CPM1A and Master CPM1A DRT21 Remote I O communications between PCs Note For details on Slaves refer to the DeviceNet CompoBus D Slaves Operation Manual W347 11 Overview of DeviceNet Section 1 1 Waterproof and Environment resistant Slaves Communications Cable Round Connectors Name Appearance I O points Model number Remarks Waterproof Terminals 4 input points NPN DRT1 IDO4CL Dust and drip proof structure 4 input points PNP DRT1 IDO4CL 1 ie oe resistance 8 input points NPN DRT1 IDO8CL f XS2 Series connector system 8 input points PNP DRT1 IDO8CL 1 eliminates the need for tools 4 output points NPN DRT1 OD04CL for sensor valve or other con 4 output points PNP DRT1 OD04CL 1_ 7ectons 8 output points NPN DRT1 ODO08CL 8 output points PNP DRT1 ODO8CL 1 Environment resis 8 input points NPN DRT1 IDO8C Spatter dust and drip proof tant Terminals 8 output points NPN DRT1 OD08C structure for environmental 16 input points NPN DRT1 HD16C featsianee UF 8 are pen ad XS2 Series connector syst
20. N Caution Failure to abide by the following precautions could lead to faulty operation or Xiv the PC or the system or could damage the PC or PC Units Always heed these precautions e Install double safety mechanisms to ensure safety against incorrect sig nals that may be produced by broken signal lines or momentary power interruptions e Enable the scan list to before operating the system e When adding a new node to the network make sure that the baud rate is the same as other nodes e Use specified communications cables e Do not extend connection distances beyond the ranges given in the spec ifications e Always turn OFF the power supply to the personal computer Slaves and Communications Units before attempting any of the following e Mounting or dismounting the DeviceNet Unit Power Supply Units I O Units CPU Units or any other Units e Assembling a Unit e Setting DIP switches or rotary switches e Connecting or wiring the cables e Connecting or disconnecting connectors e Be sure that the terminal blocks connectors Memory Units expansion cables and other items with locking devices are properly locked into place Improper locking may result in malfunction e Be sure that all the mounting screws terminal screws Unit mounting screws and cable connector screws are tightened to the torque specified in the relevant manuals Incorrect tightening torque may result in malfunc tion e Leave the label attac
21. To Slaves block 1 Address Address Address Address l address order To Slaves OUT block 2 pa address order IN block 1 Address lt 4 From Slaves Address Address IN l address order block 2 lt 4 From Slaves Any order can be used for block allocations and for slave allocations within each block Each address is allocated at least one byte rightmost e More than one word is allocated for each slave with more than16 I O points using it s node address e The leftmost or rightmost byte of the word is allocated to each slave that has less than 16 I O points Master Remote I O Communications Section 4 1 4 1 2 Remote I O Master Specifications Slave alloca Fixed allo Select one of the following fixed allocation areas using the Fixed Allocated Area Switches 1 tion methods _ cations 2 and 3 in the software switches in the allocated CIO Area words Allocated 1 0 Size Fixed Alloca Fixed Alloca Fixed Alloca words CIO tion Area Set tion Area Set tion Area Set Area ting 1 ting 2 ting 3 Output 64 words 3200 to 3263 3400 to 3463 3600 to 3663 OUT area Input IN 64 words 3300 to 3363 3500 to 3563 3700 to 3763 area Select one of the above areas using the software switches All are fixed at 1 word per node address The default setting is Fixed Allocation Area Setting 1 User set By allocated Set th
22. Tou Protocol overhead TBYTE IN The input byte transmission time Bin The number of input words TBYTE OUT The output byte transmission time Bout The number of output words Baud rate Tou TBYTE IN TBYTE OUT 500 kbps 0 306 ms 0 040 ms 0 036 ms 250 kbps 0 542 ms 0 073 ms 0 069 ms 1 014 ms 0 139 ms 0 135 ms 125 kbps For Input Slaves take Boyt to be 0 and for Output Slaves take B y to be 0 Refresh Time The refresh time is the time required for I O data to be exchanged between the PC s CPU Unit and the DeviceNet Unit The CPU Units cycle time is increased when a DeviceNet Unit is mounted as shown below I O refresh DeviceNet Unit I O refreshing time ms 0 7 0 001 x the number of words refreshed See note 1 The number of words refreshed is the total number of words in the I O area that are used by the Slaves including any unused words between words actually used by the Slaves For example if there are only two Input Slaves with node addresses 1 and 5 the 5 input words for nodes 1 through 5 would be refreshed even though the input words for nodes 2 3 and 4 are unused 2 If message communications are being performed just add the number of words used in message communications to the above number of words for whenever messages are being processed 3 When the message communications are performed an event execution time must be added to the PC cycle time 4 For details
23. 05FE D00004 0000 D00005 0064 D02000 2801 D02001 0000 D02002 0004 Section 6 4 Number of command bytes Number of response bytes Destination network address 1 Destination node address 05 Destination unit address FE or 10 Response communications port 0 no retries Response monitoring time D02003 0B8E Response source node address 11 0B Hex Normal completion 8E Hex D02004 2F00 Vendor code stored from high to low byte Receiving Explicit Messages Section 6 5 Program Example 071 BSET 0000 D00000 D02999 Sets 0000 in D00000 to D02999 First Scan Flag 021 MOWe 9009 D00000 Place data into control data words to specify sending 9 bytes to node 05 unit FE on network 01 and to 021 receive 10 bytes in return MOV 000A D00001 MOV 0001 D00002 MOV 05FE D00003 MOV 0000 D00004 MOV 0064 D00005 MOV 2801 D01000 Place the command data for EXPLICIT MESSAGE SEND into D01000 to D01004 MOV 0BOE D01001 MOV 0001 D01002 MOV 0001 D01003 MOV 0100 D01004 MOV 0001 0000 Places 0001 into CIO 0000 Execution condition 0000 A202 1511 oo 00 HH Sano D01000 D02000 D00000 Sends 9 bytes of command data to node 05 unit FE on network 01 and receives 10 bytes of response data and Port M Enabled Commu stores it in D02000 Flag nications 025 Parmitted ASL 0000 Shifts the contents of CIO 0000 one bit to the left 0000 A202 A219 01 00 00 021 IF 4 MOV A203
24. 173 Receiving Explicit Messages Section 6 5 e Message Exists Does Not Exist When the MSG instruction is executed by the CPU Unit the bit corresponding to the message number will turn ON and be returned in 2 bytes from low to high bytes 15 8765 43 210 Message No 0 1 exists 0 does not exist Message No 1 1 exists 0 does not exist Message No 2 1 exists 0 does not exist Message No 3 1 exists 0 does not exist Message No 4 1 exists 0 does not exist Message No 5 1 exists 0 does not exist Message No 6 1 exists 0 does not exist Message No 7 1 exists 0 does not exist e Error Code The highest priority error code of the errors existing when the command is executed will be returned in 2 byte decimal from low to high bytes If there are no errors the error code will be 0000 Note For information on the severity of error codes refer to the CS1 Series CPU Unit Operation Manual W339 or the CJ Series CPU Unit Op eration Manual W393 e Error Messages If the above error codes have occurred when FAL FALS instructions are executed with registered messages those messages are returned in 16 byte ASCII If there are no registered messages or if the error codes have not occurred due to execution of FAL FALS instructions the code is returned in ASCII with 20 Hex space in 16 bytes Byte Data Read Service Code 1C Hex Byte Data Read reads any I O memory area data in a CPU Unit wit
25. 6 1 4 Message Communications Specifications 138 6 1 5 Message Communications Error Indications 139 6 1 6 Message Monitoring Timer 0 00 00 000005 140 6 1 7 Message Communications Errors 00 000 00005 140 6 2 FINS Commands and Responses 00022 ee eee eee 141 6 2 1 FINS Communications 0 0 00 eee eee eee 141 6 2 2 Sending Receiving FINS Command Responses 142 6 2 3 Units Supporting FINS Communications 143 6 2 4 FINS Command Lists 0 0 0 0 eee eee ee 143 6 3 Using FINS Message Communications 000000000 145 6 3 3 Data Send Receive Instructions 000000005 148 6 3 4 Sending FINS Commands 00 0000 0005 150 6 3 5 Using SEND 090 RECV 098 and CMND 490 151 6 4 Sending Explicit Messages 1 0 0 cee eee 158 6 4 1 Sending Explicit Messages 0 0 00 000 000005 159 6 4 2 Sending Explicit Messages Using CMND 490 161 6 5 Receiving Explicit Messages 0 0 e eee eee eee 165 6 5 1 List of PLC Object Services 0 0 0 2 e eee eee 166 6 3 6 Connecting Networks for FINS Communications 157 133 Overview Section 6 1 6 1 Overview Message communications enable messages to be set between nodes on a DeviceNet network when required by system conditions The me
26. Attribute Not supported Service Not supported Vendor specification addition No 252 Multi vendor Applications Appendix E DeviceNet Object 03 Hex Yes No Object class Attribute 1 Revision 2 Service DeviceNet service Parameter option 0EGet Attribute Single No ID content Get read Set write Object class Attribute 1 MAC ID 2 Baud rate 3 BOI 4 Bus off counter 5 Allocation information 6 MAC ID switch changed 7 Baud rate switch changed 8 MAC ID switch value 9 Baud rate switch value Service DeviceNet service Parameter option OE Get Attribute Single No 4B Allocate Master Slave Connection Set No 4C Release Master Slave Connection Set No Connection Object 05 Hex Object class Attribute Not supported Service Not supported Max number of instances 203 253 Multi vendor Applications Object instance 1 254 Section Instance type Information Explicit Message Appendix E Max No of instances Produc tion trig ger Cyclic Transport type Server Transport class 3 Attribute ID content 1 State Set write 2 Instance type 3 Transport class trigger 4 Produced connection ID 5 Consumed connection ID 6 Initial comm characteristics 21 hex 7 Produced connection size 553 8 Consumed connection size Format 16 16 557
27. Baud rate 500 Kbps 4 Communications cycle time 3 ms no remote I O communications 5 PC s cycle time 10 ms 6 DeviceNet Unit s refresh time 2 ms See note Note The PC s cycle time will be delayed as shown below for one De viceNet Unit For details refer to Refresh Time on page 192 0 7 ms number of occupied words x 0 001 ms Request from One Client BYTE DATA READ BYTE DATA READ processing time PC s cycle time x 2 a e Shared memory F F DeviceNet internal buffer Communications cycle Read request Client 197 Message Communications 198 Note Section 8 2 Shown below is the response time required to return data for 100 words e BYTE DATA READ request sending time Tgrs DeviceNet header 4 bytes Parameters 3 bytes 7 bytes no frag ment Therefore Tgrs 1 communications cycle time Tay 3 ms e PC s processing time Tpc x 2 Tpc X 2 PC s cycle time x 2 10x2 20ms e BYTE DATA READ response receiving time Tarr DeviceNet header 3 bytes Number of words to be read x 2 203 bytes Therefore Tarr 1 203 bytes 6 communications cycle time 35 com munications cycle time e DeviceNet Unit refresh time Tar 2 ms The message response time will be as follows Tam Tec X 2 Tay X 35 Tar X 2 3 20 105 4 132 ms Shown below is the response time required to return data for 100 words to 8 clients e BYTE DATA READ request sending time Tgrs DeviceNet h
28. C200 I O Link Unit C200HW DRM21 with 32 output pts 2 words Analog Input Terminal with 4 input pts DRT1 AD04 105 Fixed Allocations Section 4 3 Resulting Slave Allocation OUT area 1 Node address Pts ClO 0 0 pts 3200 1 8 pts 3201 2 0 pts 3202 3 16 pts 3203 4 8 pts 3204 5 16 pts 3205 6 32 pts 3206 7 None 3207 8 0 pts 3208 9 None 3209 10 None 3210 11 None 3211 12 None 3212 to to 63 None 3263 IN area 1 Node address Pts CIO 0 8 pts 1 0 pts 2 16 pts 3 0 pts 4 8 pts 5 16 pts 6 0 pts 7 None 8 64 pts 9 None 10 None 11 None 12 None to 63 None Turn ON the Scan List Enable Switch 106 15 08 07 00 fst dus Adress 1 Allocation disabled Allocation disabled Not used 15 08 07 00 Address 5 y Allocation disabled Allocation disabled vl Allocation disabled for other slaves Address 0 of IN area already allocated Address 1 allocated 1 byte leftmost byte allocation disabled Allocation disabled for other slaves Address 3 allocated 1 word Address 4 allocated 1 byte leftmost byte allocation disabled Address 5 allocated 1 word Address 6 allocated 2 words Same as above Allocation disabled for other slaves Address 8 of IN area already allocated Allocation disabled for other slaves Address 8 of IN area already allocated Allocation disabled for other slaves Address 8 of IN area already allocated Alloc
29. CVM1 DRM21 V1 63 nodes CS Series C200HX HG HE C200HS C200HW DRM21 V1 63 nodes Not supported Max message length CS Series CS1W DRM21 CJ Series CJ1W DRM21 SEND 192 RECV 193 CMND 194 542 bytes start ing with command code 267 words 269 words CVM1 CV Series CVM1 DRM21 V1 SEND 192 RECV 193 CMND 194 starting with command code 76 words 78 words 160 bytes CS Series C200HX HG HE C200HW DRM21 V1 IOWR 223 ing with command code 160 bytes start Note FINS message communications are supported between any two PCs with a CS CJ series DeviceNet Unit CS1W DRM21 CJ1W DRM21 They are not supported for PCs with a C200H DeviceNet Master Unit C200OHW DRM21 Overview of DeviceNet Section 1 1 V1 or a CVM1 CV series DeviceNet Master Unit CVM1 DRM21 V1 Refer to 6 3 Using FINS Message Communications for details Communications Software Switches and Communications Status Dedicated words in the CPU Unit are allocated for DeviceNet communications software switches and status Master Software switches Control scan list registration clearing remote I O communications start stop and other parameters Status area Enables monitoring communications errors communications status of Masters registered Slave data normal Slave data etc 1 1 3 Masters Mountable position Master Slave Maximum number of func
30. Check the I O table with the I O Table Verification operation and correct it if necessary After correcting the I O table perform the I O Table Create operation A CPU Bus error occurred Make sure that the Unit is connected properly Restart the Unit Replace the Unit if it doesn t restart An I O Bus error occurred Make sure that the Unit is connected properly Restart the Unit Replace the Unit if it doesn t restart Note Refer to the CS1 Series CPU Unit Operation Manual W339 or the CJ Series CPU Unit Operation Manual W393 for more details on these errors 9 3 2 Remote I O Communications Disabled Use the following table to troubleshoot the network when remote I O data communications won t start The I O Data Communications Flag remains OFF in Master Status 1 Error Probable cause All of the DeviceNet Unit s indicators are OFF Check whether power is being supplied to the PC Check whether the DeviceNet Unit is mounted in the Backplane cor rectly When a watchdog timer WDT error has occurred in the PC follow the procedures described in the PC s manual to correct the problem All of aCS1W DRM21 or CJ1W DRM21 Unit s indicators will be OFF when a CPU Bus Unit error has occurred Check for a CPU Bus Unit error Restart the Unit Replace the Unit if it doesn t restart The DeviceNet Unit s MS indicator is ON and If the DeviceNet Unit s 7 segment display is displaying an error code green b
31. Comparison with Previous Models Section 1 4 Item C200HW DRM21 V1 CS1W DRM21 CJ1W DRM21 Remote I O communica tions Master 30 Fixed alloca C200H DeviceNet words in ClO Area CS CJ series DeviceNet words in CIO Area tions 1 600 points 50 input words 50 output 2 048 points 64 input words 64 output words words Output area CIO 0050 to CIO 0099 Select one of the following using the soft Input area CIO 0350 to ClO 0399 ware switch Output area 1 CIO 3200 to CIO 3263 2 CIO 3400 to CIO 3463 3 ClO 3600 to CIO 3663 Input area 1 CIO 3300 to CIO 3363 2 ClO 3500 to CIO 3563 3 CIO 3700 to CIO 3763 Node addresses 0 to 49 node address Node addresses 0 to 63 node address order 1 word node address order 1 word node address e Slaves with 8 points Require 1 word even though they are allocated the rightmost byte requires 1 node address e Slaves with 16 points Require 1 word require 1 node address e Slaves with over 16 points Require multiple words require multiple node addresses User set allo Set by the Configurator Set from allocated DM Area words Master cations User Allocation Setup Table or the Configu rator When using the message communications function 1 600 pts max 800 input words 800 output words When not using the message communica tions function 4 800 pts max 2 400 input words 2 400 output words When set from allocated DM Area words 16 000 pt
32. Fixed Allocation or User set Allocations Using DM Connection path settings cannot be made User set Allocations Using Configurator The Configurator can be used to set the type of I O data in the slave using the connection path The user can use this method to set the I O data type in the master and the remote I O communications slave The connection path is saved by the Configurator to the CS CJ series DeviceNet Unit scan list and when the remote I O communications are started the connection path is set to the slave via the DeviceNet network Master Connection Connection path Slave 237 DeviceNet Connections Appendix B Master COS Send Switch COS transmission is possible only for User set allocations using the Configurator When required remote I O output data can be output from the master to a specified slave Output data can be sent at the communications cycle timing to the specified slave by other connections selected automatically or by the user only when using the Configurator In this case the communications timing is not dependant on the communications cycle time but it is dependant on the CPU Unit cycle time Note When there are a lot of masters or slaves using COS communications or when the number of transmis sions using COS is high it has a large impact on the remote I O communications performance for each normal communications cycle time and responses may be delayed Therefore give ample consideration
33. Format 8 8 555 Format 16 8 8 16 556 9 Expected packed rate 12 Watchdog time out action 1ors 13 Produced connection path length 0 14 Produced connection path empty 15 Consumed connection path length 0 16 Consumed connection path empty 17 Production inhibit time Service DeviceNet service Parameter option 05 Reset No OE Get Attribute Single No 10 Set Attribute Single No Object instance 2 Section Instance type Information Polled I O Multi vendor Applications Appendix E Max No of instances Produc tion trig ger Cyclic Transport type Server Transport class 2 Attribute ID content 1 State Set write 2 Instance type 3 Transport class trigger 4 Produced connection ID 5 Consumed connection ID 6 Initial comm characteristics 7 Produced connection size See note 1 8 Consumed connection size See note 2 9 Expected packed rate 12 Watchdog time out action 0 13 Produced connection path length 4 14 Produced connection path 20 94 24 01 hex 15 Consumed connection path length 4 16 Consumed connection path 20 94 24 01 hex 17 Production inhibit time Service DeviceNet service Parameter option 05 Reset No OE Get Attribute Single No 10 Set Attribute Single Note
34. Release direction 2 2 3 Handling Precautions e Always turn OFF the power supply to the PC before mounting or dis mounting a Unit or connecting or disconnecting cables 53 Installing the DeviceNet Unit Section 2 2 e Provide separate conduits or ducts for the I O lines to prevent noise from high tension lines or power lines e Leave the label attached to the Unit when wiring Removing the label may result in malfunction if foreign matter enters the Unit e Remove the label after the completion of wiring to ensure proper heat dis sipation Leaving the label attached may result in malfunction CS1W DRM21_ Remove the label after wiring CJ1W DRM21_ Remove the label after wiring Ir m o o o g 54 Installing the DeviceNet Unit Section 2 2 2 2 4 External Dimensions CS1W DRM21_ 13 7 101 12 _15 8 gt These diagrams show the dimensions of the DeviceNet Unit Refer to the CS7 Series CPU Unit Operation Manual W339 or the CU Series CPU Unit Opera tion Manual W393 for the dimensions of the Unit when it is mounted to the Backplane All dimensions are in mm CJ1W DRM21_ OOP ee 55 SECTION 3 A
35. Select Start Program Omron CxX Server CX Net Network Configura tion Tool to start the CX Net 2 Select Edit FINS Local from the Routing Table Menu The following PC Routing Table Window will appear xw PLC Routing Table Eile Edit Options Help Dele S a caja v gt E Unknown O 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 amp Unit 00 amp Unit 01 Mey Unit 02 fe Unit 03 Mey Unit 04 amp Unit 05 Mey Unit 06 amp Unit 07 fe Unit 08 Me Unit 09 amp Unit 10 amp Unit 11 My Unit 12 Mey Unit 13 My Unit 14 amp Unit 15 Main View Overview Table View Offline Unknown 3 Click on the Table View Tab A table like that shown below will appear 147 Using FINS Message Communications Section 6 3 xw PLC Routing Table File Edit Options Help dealais EA PVA ey Unit 00 ee Unit 01 ey Unit 02 ey Unit 03 ee Unit 04 ee Unit 05 ey Unit 06 ey Unit 07 ey Unit 08 ey Unit 09 ee Unit 10 ey Unit 11 ey Unit 12 ey Unit 13 ey Unit 14 ey Unit 15 Local Network Remote Network sou i 5 is _ a 5 i Wain Wiew Gverniew Table View Unknown lOffline 4 Use the left side table to create the local network table Input the unit num bers and corresponding local network addresses 5 Use the right side table to create the relay network table Input the final net work addresses and correspondin
36. The standard communications cycle time can be updated with these switches Temporary Setting Word n bit 12 Returns to the previous set Switch for Com ting when the power is turned munications Cycle OFF or the Unit is restarted Time Communications Word n bit 13 Also effective the next time Cycle Time Refer the Unit is started because ence Table Clear the set value is stored in non Switch volatile memory 1 Allocated DM Area Words Section 3 3 Word Bit 15 Bit 00 m Communications cycle time setting ms Details Communications 0000 to 01F4 Hex Sets the communications cycle time in milli Cycle Time Set O to 500 seconds Setting range 0 to 500 ms ting If this bit is set to 0 the optimum time calcu lated by the Unit will be used If a value higher than 500 ms is set then the Unit will operate at 500 ms If the setting cannot be correctly made for some reason the Scan List Register Clear Failed Flag word n 12 bit 11 in Master Sta tus 1 and the Temporary Setting Switch for Communications Cycle Time word n bit 12 will be turned OFF Note If the setting is smaller than the optimum communications cycle time calcu lated by the Unit and stored internally in the Unit then the value calculated by the Unit will be used 3 3 2 Master User Allocations Setup Table This table is set by the user to specify the I O words used by the master Only OUT block 1 and IN bl
37. Unit No hexadecimal x 1 node address decimal x 2 Front panel DIP switch Baud rate stop or continue communica tions when an error occurs Display section Two LED indicators 2 colors Display Unit and network status Two digit 7 segment display Displays the DeviceNet Unit node address error code and node address where an error occurred 2 dot LED indicators Display whether the registration scan list is enabled or not Front connector One communications connector communications data CAN H and CAN L communications power supply V V shielded Use the XW4B 05C1 H1 D connector provided to connect the communications cable Note Use the XW4B 05C4 T D connector sold separately for multi drop connections 27 Specifications Section 1 3 Item Communications power supply voltage Specifications 11 to 25 VDC supplied from the communications connector Influence on CPU Unit cycle time 0 7 ms 0 001 x the number of words allocated Current consumption CS1W DRM21 Communications power supply 30 mA at 24 VDC supplied from the communications connector Internal circuit power supply 290 mA max at 5 VDC supplied from the Power Supply Unit CJ1W DRM21 Communications power supply 18 mA at 24 VDC supplied from the communications connector Internal circuit power supply 290 mA max at 5 VDC supplied from the Power Supply Unit External dimensions CS1W DRM21 35 x 130
38. bit 00 from a Program ming Device Start master remote I O communications with the scan list enabled Use the software switches to start or stop communications Check to see if both the MS and NS indicators are lit green on the master and all slaves Switch the CPU Unit to RUN mode User set Remote I O Allocations Using DM Area Settings 1 2 3 1 2 Turn ON the communications slave and PC power supplies Note Turn ON the communications power supply prior to turning ON the slave power supply or the slaves may not go online Switch the CPU Unit to PROGRAM mode 97 Master Remote I O Communications Section 4 1 8 Turn ON the Master Enable Switch word n bit 06 The master will remain enabled even if the power is turned OFF and back ON again Note Execute this only when master communications are turned OFF If the Master Enable Switch is turned ON when master communica tions are enabled a Unit error will occur and a C2 error will be dis played on the 7 segment display on the front panel Set data in the Master User Allocation Setup Table words m 1 to m 6 and the Allocation Size Setup Table in the DM Area words allocated to the Unit from the PC Programming Device Turn ON the Master User set Allocations Switch word n bit 11 Start master remote I O communications with the scan list enabled Use the software switches to start or stop communications Check to see if both the MS and NS indicators are l
39. e Locations subject to temperatures or humidities outside the range speci fied in the specifications e Locations subject to condensation as the result of severe changes in tem perature e Locations subject to corrosive or flammable gases e Locations subject to dust especially iron dust or salt e Locations subject to exposure to water oil or chemicals e Locations subject to shock or vibration Provide proper shielding when installing in the following locations e Locations subject to static electricity or other sources of noise e Locations subject to strong electromagnetic fields e Locations subject to possible exposure to radiation e Locations near to power supply lines xiii Application Precautions 5 N Caution The operating environment of the PC System can have a large effect on the longevity and reliability of the system Improper operating environments can lead to malfunction failure and other unforeseeable problems with the PC System Be sure that the operating environment is within the specified condi tions at installation and remains within the specified conditions during the life of the system 5 Application Precautions Observe the following precautions when using the DeviceNet Unit N WARNING Failure to abide by the following precautions could lead to serious or possibly fatal injury Always heed these precautions e Always connect to a class 3 ground 100 Q or less when installing the Units
40. into a DeviceNet Unit 4 3 Fixed Allocations 4 3 1 Allocated Words OUT Words in the CS CJ series DeviceNet CIO Area in the CPU Unit are allocated An area of words can be selected from one of three fixed allocation areas Use a Software Switch to select the allocation area Each area is comprised of an OUT area that is used to write output data to slaves and an IN area that is used for input from slaves in remote I O commu nications area word IN area word Selection method Fixed allocation area 1 CIO 3200 to CIO 3263 CIO 3300 to CIO 3363 Turn ON the Master Fixed Allocation Setting 1 Switch word n bit 08 Fixed allocation area 2 CIO 3400 to CIO 3463 CIO 3500 to CIO 3563 Turn ON the Master Fixed Allocation Setting 2 Switch word n bit 09 Fixed allocation area 3 CIO 3600 to CIO 3663 CIO 3700 to CIO 3763 Turn ON the Master Fixed Allocation Setting 3 Switch word n bit 10 A maximum of 3 DeviceNet Units can be included as masters in a single PC because the three allocation areas above are set individually for fixed alloca tions The default setting is fixed allocations area 1 Each OUT IN area is allocated to a slave according to its node address as shown below Allocated words are determined by the node address in fixed allocations as shown Node Area3 Area2 Areat OUT area address IN area Areat Area2 Area3 ClO 3600 ClO3400 CIO 3200 00 CIO 3300 ClO 3500 CIO 3700 ClO 3601
41. lit OFF Node address setting error Communications speed setting error CPU Unit faulty H6 I O table not registered CPU Unit memory faulty CPU Unit faulty Hb Routing table logic error I O refresh error CPU Unit service monitoring error CPU Unit watchdog timer error Red flashing OFF Slave function Remote I O communications error Red flashing Unit errors Special Unit error CPU Unit exchange CPU Unit fatal error Output OFF error Note 1 Section 9 1 The 7 segment display will alternate between the Unit s node address and the code given in the tables in this section 2 When a master function structure error or verification error occurs only the most recent error is displayed for each slave If the Unit is set to stop 201 Troubleshooting with the DeviceNet Unit Indicators Section 9 1 remote I O communications for a communications error two errors can be displayed The slave s communications error and its most recent error Master Errors Remote I O Communications Stopped Error tog Hex bya Communications o p F p Error Likely Cause Pin 3 on the master s DIP switch is set to stop communications in the event of a communications error and communications have been stopped due to a remote I O communications error network power s
42. n 24 turns ON 80 Remote I O Communica tions Flag ON OFF Remote I O Communica tions Flag The same as I O Data Communications Flag word n 12 bit 15 Note Although the bit configurations are the same the word addresses are different because this is a CS CJ series CPU Bus Unit Change the words using a replacement operation from the Programming Device Allocated DM Area Words Section 3 3 3 3 Allocated DM Area Words Data is stored at the offset positions shown in the figure below starting from the first word allocated to the Unit in the DM Area The first word can be calculated as follows from the unit number setting First word m D30000 25 x unit number Word Bit 15 Bit 00 Direction Outputs m Communications Cycle Time Setup Table CPU Unit DeviceNet Unit m 1 to 3 Master User Allocations Setup Table 7 words m m 8 to Slave User Allocations Setup Table 7 words vO m 14 CPU Unit DeviceNet Unit m 15 to Communications Cycle Time Reference Table 4 words m 18 m 19 to 30 Master User set Allocations Reference Table 12 words m m 31 to j5 Slave User set Allocations Reference Table 12 words m m 43 to Slave Detailed Status Table 32 words Inputs m 74 CPU Unit DeviceNet Unit m 75 to m 99 Reserved by system 3 3 1 Communications Cycle Time Setup Table This table sets the communications cycle time for the master
43. points None Words allocated in PC memory Input Output Two sta 0 words tus words I O connec tions None Basic I O Units Transistor Input Units 16 input points 1 word 0 words M3 terminal block 16 input points 1 word 0 words Connector made by MOLEX 16 input points 1 word 0 words Connector made by FUJITSU 16 input points 1 word 0 words Connector D sub 25 pin 32 input points 2 words 0 words High den sity connec tor made by FUJITSU Transistor Output Units 16 out put points O words 1 word M3 terminal block 16 out put points O words 1 word Connector made by MOLEX 16 out put points O words 1 word Connector made by FUJITSU 16 out put points O words 1 word Connector D sub 25 pin 32 out put points O words 2 words High den sity connec tor made by FUJITSU Relay Out put Units 16 out put points O words 8 out put points O words M3 terminal block Unit power supply voltage 24 VDC sup plied from out side Installa tion DIN track Model number DRT1 COM Remarks GT1 ID16 GT1 ID16 1 GT1 ID16MX GT1 ID16MX 1 GT1 ID16ML GT1 ID16ML 1 GT1 ID16DS GT1 ID16DS 1 GT1 ID32ML GT1 ID32ML 1 GT1 OD16 GT1 OD16 1 GT1 OD
44. representative before applying a PC System to the above mentioned applica tions Safety Precautions N WARNING N WARNING Never attempt to disassemble a Unit or touch the inside of Unit while power is being supplied Doing so may result in serious electrical shock or electrocu tion Provide safety measures in external circuits i e not in the Programmable Controller CPU Unit including associated Units referred to as PC in order to ensure safety in the system if an abnormality occurs due to malfunction of the PC or another external factor affecting the PC operation Not doing so may result in serious accidents e Emergency stop circuits interlock circuits limit circuits and similar safety measures must be provided in external control circuits e The PC will turn OFF all outputs when its self diagnosis function detects any error or when a severe failure alarm FALS instruction is executed As a countermeasure for such errors external safety measures must be provided to ensure safety in the system e The PC outputs may remain ON or OFF due to deposition or burning of the output relays or destruction of the output transistors As a counter Operating Environment Precautions 4 N WARNING N Caution N Caution measure for such problems external safety measures must be provided to ensure safety in the system e When the 24 VDC output service power supply to the PC is overloaded or short circuited the vo
45. scan Only 1 connection automatically selected by figurator list disabled or the DeviceNet Unit Either a polling or bit enabled strobe connection is used User set allocations Only 1 connection automatically selected by using allocated DM __ the DeviceNet Unit based on the I O area Area word settings set in the Master User Allocations Table With Configu User set allocations The user can select the connection to be rator using Configurator used for each node address with the Config urator e g poll could be used for data and COS could be used for status Automatic selection or user selection can be specified Two connections can be used simulta neously for one slave but COS and cyclic cannot be used simultaneously Setting Connection Type The settings for remote I O communications connections differ depending on the allocation method as outlined below Fixed Allocation or User set Allocations Using Allocated DM Area Words The Master CS CJ series DeviceNet Unit automatically selects either poll or bit strobe whichever makes the communications cycle time shortest User set allocations Using Configurator The Master CS CJ series DeviceNet Unit can make an automatic selection the same as above or the user can select up to two connections for a Slave The setting method is outlined below 1 Select the Master Node in the Network Configuration Window in the Configurator 2 Select Device Parameter
46. slave status 1 word n 14 76 slave status 2 word n 15 78 software switches 1 word n 60 software switches 2 word n 1 65 unit status 1 word n 10 71 unit status 2 word n 11 72 DM Area 59 81 allocation size setup table 84 communications cycle time reference table 87 communications cycle time setup table 81 master user allocations setup table 82 master user set allocations reference table 87 slave detailed status 89 slave user allocations setup table 85 slave user set allocations reference table 88 overview 58 VO Link Units 4 C200H I O Link Unit 5 12 CQM 1 I O Link Unit 11 errors 223 I O memory read write for CPU Units 167 T O response times maximum 192 minimum 194 CS1 series and C200HX HG HE HS PCs 194 I O Terminals 4 environment resistant 4 12 water resistant 12 VO Units connecting cable 14 See also Master Units See also Slave Units indicators Index display section 27 Master Unit 200 meaning 47 message communications errors 139 seven segment display 48 status MS and NS 47 troubleshooting 200 222 inspection 225 installation 51 instructions CMND 490 150 151 RECV 098 149 151 SEND 090 148 151 L ladder programs replacing 233 M maintenance 225 cleaning 225 inspection 225 Master Units 6 9 connecting another company s slave to an OMRON mas ter 251 device profile 252 errors 202 T O allocations 82 See also I O allocations indicators 200 m
47. to the system performance when using COS DeviceNet Units use the Master COS Send Switch in the allocated CIO Area words to execute COS transmis sions from the master to slaves The procedure is outlined below Step 1 Before executing COS transmission the connection for the destination slave must be set to COS in the master scan list using the Configurator Step 2 If the bit allocated to each node address from n 2 words to n 5 words is turned from OFF to ON the output data is sent to that node address at a timing independent of the communications cycle time COS send switch OFF to ON I O refresh CPU Unit user program DeviceNet Unit Communications Communications Communications Communications cycle time cycle time cycle time cycle time Slave I O using normal connection COS output Multiple bits can be turned OFF to ON simultaneously and output data can be sent to multiple node addresses simultaneously 238 DeviceNet Connections Appendix B The following diagram shows the transmission timing After the COS send instruction has been sent to the DeviceNet at the I O refresh timing for the CPU Unit the COS transmission is executed to each slave immedi ately after the refresh remote I O communications which each slave is performed during the communications cycle Therefore when there are a lot of destination slaves the COS send timing may be delayed in order of the node addresses Multiple COS send sw
48. 0 0 0 cee cece eee eee 186 SECTION 8 Communications Timing eeeeeeeee0 189 8 1 Remote I O Communications Characteristics 0 00 ee 190 8 2 Message Communications 0 cece een ee 196 SECTION 9 Troubleshooting and Maintenance 199 9 1 Troubleshooting with the DeviceNet Unit Indicators 200 9 2 Error Log Functions sses usuau ennnen cece eee nee 218 9 3 Troubleshooting manae eaaa cece een eee 222 9 4 Maintenance and Replacement 00 0 eee ee 225 Appendices A Allocation Differences from C200H DeviceNet Master Units 229 B DeviceNet Connections 0 0 0 cece cece eee 235 C FINS Commands and Responses for DeviceNet Units 241 D Memory Card Backup Functions 0 0 0 0 erruer rnern 247 E Multi vendor Applications 0 0 251 F DeviceNet Explicit Message Send Command for Other Manufacturer Nodes 261 MON eo ears E E i evace E ds ee A E A deca LOO Revision History 22 4 0isoticsaseevties ed tcaetaviees 267 viii About this Manual This manual describes the installation and operation of CS1W DRM21 DeviceNet Unit for SYSMAC CJ series PLCs and the CJU1W DRM21 DeviceNet Unit for SYSMAC CJ series PLCs and includes the sections described below Please read this manual and all manuals for related products carefully and be sure you understand the information provided befo
49. 1 Number of input bytes used by Slave 2 Number of output bytes used by Slave No 255 Multi vendor Applications Object instance 3 Section Instance type Information Bit Strobed I O Appendix E Max No of instances Produc tion trig ger Cyclic Transport type Server Transport class 2 Attribute ID content 1 State Set write 2 Instance type 3 Transport class trigger 4 Produced connection ID 5 Consumed connection ID 6 Initial comm characteristics 7 Produced connection size 8 Consumed connection size 9 Expected packed rate 12 Watchdog time out action 13 Produced connection path length 14 Produced connection path empty 15 Consumed connection path length 4 16 Consumed connection path 20 94 24 01 hex 17 Production inhibit time Service DeviceNet service Parameter option 05 Reset No OE Get Attribute Single No 10 Set Attribute Single Note 1 Number of input bytes used by Slave 256 No Multi vendor Applications Object instance 4 Section Instance type Information COS cyclic I O Appendix E Max No of instances Produc tion trig ger Cyclic Transport type Client Transport class 0 no ACK 2 with ACK Attribute ID content 1 State Set write 2 Instance type 3 Transport class
50. 224 slave 217 software switch 207 Unit 218 explicit message communications See also communications F features 15 multi vendor network 15 FINS communications command codes 241 completion codes 153 connecting networks 157 See also communications fixed allocations See also I O allocations flags See also communications functions 6 27 46 DeviceNet Configurator 4 15 master 3 6 195 Memory Card backup 186 247 slave 4 7 16 196 VO allocations 92 allocation size setup table 84 fixed 38 39 101 125 allocated words 101 125 changing system components 105 CIO Area 93 connections 236 example 105 procedure 102 125 using remote I O master 97 using remote I O slave 123 methods 122 user set 16 82 85 107 126 connection types 127 130 connections using 236 master user set allocations reference table 87 methods 93 107 126 procedure 38 40 127 setting through allocated DM area words 108 127 setting through Configurator 113 130 slave user set allocations reference table 88 using remote I O master 97 98 using remote I O slave 124 word allocations 22 CIO Area 59 60 C200 master replacement master status 1 word n 24 79 disconnect connect switches words n 6 to n 9 69 master COS send switches words n 2 to n 5 69 238 master status 1 word n 12 74 master status 2 word n 13 75 normal slave table words n 20 to n 23 79 registered slave table words n 16 to n 19 78
51. 47 aeaa OUT size IN sizer Address 63 Address 63 sas gt Node address 63 OUT size IN size sm Specify the first word to 1 63 wd Note 1 Any order can be used for the OUT 1 and IN 1 blocks 2 Node addresses do not have to correspond between output block 1 and in put block 1 Example This is not necessary OUT block 1 IN block 1 Node address 01 4 Node address 01 Node address 02 Node address 02 Node address 03 3 The start bit for node addresses must always be bit 00 and never bit 08 15 08 07 00 Kx 110 User set Allocations Section 4 4 4 Multiple masters cannot share the same slave Master Master x Slave 5 Be sure to use user set allocations and operate the Master Unit with the scan list enabled if multiple masters are connected to a single network Communications will not be possible if there is more than one master with the scan list disabled connected to a network Changing System Components In the following situations the table must be reset the Master User Alloca tions Switch word n bit 11 turned ON and the scan list recreated e Adding a slave e Removing a slave e Changing a node address e Changing a node allocation There is no need to clear the scan list Example Settings for User set Allocations through Allocated DM Area Words This example uses the following settings for unit number 0 e OUT block 1 area and first wo
52. Applications Appendix E Note The refresh area types are shown in the following table Refresh area type Refresh address CIO 0000 to CIO 6143 D00000 to D32767 W000 to W511 H 000 to H511 EM E0_00000 to E0_32767 EM E1_00000 to E1_32767 EM E2_00000 to E2_32767 EM E3_00000 to E3_32767 EM bank 4 E4_00000 to E4_32767 EM bank 5 E5_00000 to E5_32767 EM bank 6 E6_00000 to E6_32767 EM EM EM EM EM EM DM WR HE bank 0 bank 1 bank 2 bank 3 m olol W gt om BR ow bank 7 E7_00000 to E7_32767 bank 8 E8_00000 to E8_32767 bank 9 E9_ 00000 to E9_ 32767 bank 10 EA_00000 to EA_32767 bank 11 EB_00000 to EB_32767 bank 12 EC_00000 to EC_32767 260 Appendix F DeviceNet Explicit Message Send Command for Other Manufacturer Nodes Explicit message send 2801 Explicit Message Send 2801 Sends a DeviceNet explicit message to a specified object and receives a response Command Block poop r 28 01 534 bytes max sana aaa E S _ ee Command Class ID Instance ID Service data code Service code Destination node address Response Block e When a normal response has been returned for the executed explicit message T Command End code No of bytes Service data code received Service code Source node address local node e When an error response has been returned for
53. Areas and Word First word in the Slave OUT 1 area Ranges Details Specifies the OUT 1 area The OUT 1 area is not available if this is set at 0 Specifies the first word in the OUT 1 area OUT 1 area size 00 to C8 Hex 0 to 200 bytes Specifies the size of the OUT 1 area in bytes The OUT 1 area is not allocated when set to 00 Hex Slave IN 1 area See Areas and Word First word in the Slave IN 1 area Ranges Specifies the IN 1 area The IN 1 area is not allocated when set to 00 Hex Specifies the first word in the IN 1 area IN 1 area size 00 to C8 Hex 0 to 200 bytes Specifies the size of the IN 1 area in bytes The IN 1 area is not allocated when set to 00 Hex Setting results Code See Setting Results Name Shows the setting results Word range 00 Hex CIO Area CIO The area is not used 01 Hex Data Memory DM 0000 to 17FF Hex 0 to 6143 03 Hex Work Area WR 0000 to 7FFF Hex 0 to 32767 04 Hex Holding Relay HR 0000 to 01FF Hex 0 to 511 05 Hex Expansion Data Memory EM 0000 to 01FF Hex 0 to 511 Setting Results 86 08 to 14 Hex 0000 Hex Bank 0 to bank C 13 banks Description Completed nor mally 0000 to 7FFF Hex 0 to 32767 for all banks Details 1101 Hex No area Incorrect area setting 1103 Hex Address range specification err
54. Areas Shows the area First word in IN and Word Shows the first word for the block block 1 2 Ranges No of bytes in IN 0000 to Shows the block size in bytes The OUT block block 1 2 03E8 Hex has not been allocated if this is set at 00 Hex 0 to 1 000 bytes Areas and Word Ranges Word range 00 Hex The block is not used 01 Hex CIO Area CIO 0000 to 17FF Hex 0 to 6143 03 Hex Data Memory DM 0000 to 7FFF Hex 0 to 32767 04 Hex Work Area WR 0000 to 01FF Hex 0 to 511 05 Hex Holding Relay HR 0000 to 01FF Hex 0 to 511 08 to 14 Expansion Data Memory EM 0000 to 7FFF Hex 0 to 32767 for Hex Bank 0 to bank C 13 banks all banks 3 3 7 Slave User set Allocations Reference Table The slave block settings can be accessed in the Slave User set Allocations Reference Table A maximum of two OUT and two IN areas OUT 1 IN 1 OUT 2 and IN 2 can be used for slave communications and their area and size can be accessed in the table The OUT 1 and IN 1 areas and sizes are valid even if a Configurator is not being used Word Bit 15 Bit08 Bit 07 Bit 00 m 31 Reserved by system Slave OUT 1 area m 32 First word in the slave OUT 1 area m 33 OUT 1 area size bytes m 34 Reserved by system Slave IN 1 area m 35 First word in slave IN 1 m 36 IN 1 area size bytes m 37 Reserved by system Slave OUT 2 area Always 0 m 38 First word in
55. Available in the following models 8 point Transistor Input Terminal e 8 point Transistor Output Terminal e 16 point Transistor I O Terminal 8 inputs and 8 outputs Remote Adapters e Used in combination with G70D and other I O Blocks to handle relay out puts power MOS FET Relay outputs etc e Available in 16 point input and 16 point output models 1 Link Units e More than one I O Link Unit can be mounted to a CQM1 PC e Link 16 inputs and 16 outputs between the PC and the Master Sensor Terminals e Accept inputs from photoelectric and proximity sensors with connectors e Available in 16 point input and 8 point input 8 point output models e Output signals can be used for sensor teaching and external diagnosis Analog Input Terminals e Convert analog inputs to binary e Switchable between 2 and 4 input points using the DIP switch e Handle inputs of 0 to 5 V 1 to 5 V O to 10 V 10 to 10 V O to 20 mA or 4 to 20 mA Analog Output Terminals e Convert binary data to analog outputs e Provides outputs of 1 to 5 V O to 10 V 10 to 10 V 0 to 20 mA or 4 to 20mA e Available in models with a resolution of either 1 6 000 or 1 30 000 Overview of DeviceNet Section 1 1 Temperature Input Terminals e Temperature data is input as binary data for 4 inputs e Thermocouple and platinum resistance thermometer inputs are available C200H I O Link Units e Special I O Slaves that mount to C200HX H
56. C4095 DM Area D00000 to D32767 EM Area E00000 to E32767 Note 1 A000 to A477 in the Auxiliary Area are write protected 2 There can be up to 13 banks of EM Memory Refer to the operation manual for the CPU Unit for information on whether it has EM Memory and how many banks can be used 3 Do not exceed the boundary of the data areas for the PC you are using Programming Examples Example 1 Sending Data Using SEND CS CJ series DeviceNet Unit No 0 CS CuJ series DeviceNet Unit CPU CS Cu series CPU CS Cu series PC PC Unit address 00 Node 06 a Network 01 4 SEND Operation e The data from the 5 words D01000 to D01004 from the PC with De viceNet Unit 1 with node address 05 are sent to D03000 to D03004 in the PC with DeviceNet Unit 2 with node address 06 e The completion code is stored in D00006 when execution of SEND has been completed Command Details The following command is used SEND S D C S D01000 First source word at local source node D D03000 First destination word at destination node C D00000 First control word settings are given below Hex D00000 0005 Number of words to send D00001 0001 Destination network address D00002 0600 Destination node address 06 Destination unit address 00 CPU Unit D00003 0000 Response communications port 0 no retries D00004 0064 Response monitoring time 154 Using FINS Message Communication
57. Cycle Time and Refresh Time and calculate the communications cycle time for each group as if they were separate Networks ee eee Group A aaa aaa AUB Cains Sse Sale Master A a Master B Slave A Slave B SlaveC SlaveD Slave E Slave F Group A communications Group A communications cycle time Tam a cycle time TRM B In Networks with two Masters the communications cycle time for the entire Network will be the sum of the communications cycle times for the groups Tru Tpm a TRM B Although this example shows only two Masters in the Network the total com munications cycle time for any Network can be calculated by dividing it into groups and adding the communications cycle times of all groups 8 1 4 System Startup Time Master Function This section describes the system startup time for a network operating with the scan list enabled The system startup time is the delay from the time that the DeviceNet Unit master is turned ON until remote I O communications begin Here we assume that the scan list is enabled and that remote I O com munications are set to start automatically at startup The following table shows the system startup times for two cases In the first case the DeviceNet Unit starts up just after all of the Slaves power supplies are turned ON In the second case the DeviceNet Unit is restarted while com munications are in prog
58. D00006 Stores the completion code in A203 to D00006 Port Port Enabled Execution Flag Error Flag ASR 0000 Shifts the contents of CIO 0000 one bit to the right and retry at next cycle CIO 000000 ON 001 END 6 5 Receiving Explicit Messages This CS CJ series DeviceNet Unit contains a PLC Object The Unit will receive messages addressed to the PLC Object process service requests addressed to the CPU Unit and return responses The following services are provided by the PLC Object e CPU Unit status read write e CPU Unit I O memory read write The explicit messages can be received from the following sources e Masters made by other manufacturers e PCs with C200H series DeviceNet Master Units C2OOHW DRM21 V1 165 Receiving Explicit Messages Section 6 5 e PCs with CVM1 CV series DeviceNet Master Units CVM1 DRM21 V1 e PCs with CS CJ series DeviceNet Units Example CS CJ series C200H series DeviceNet Unit DeviceNet Master Unit C200HX HG HE CPU Unit CS CJ series CPU Unit Y Other manufacturer master Explicit messages can be received Note Status and the I O memory read write operations cannot be performed for PCs with a C200H series or CVM1 CV series DeviceNet Master Units The CPU Unit of a CS CJ series DeviceNet Unit can also send an explicit mes sage to read write I O memory of PCs with C200H 1 O Link Units 6 5 1 List of PLC Object Services PLC Objects provide the following services Status Read Write for CP
59. EM file If all setup data for a DeviceNet Unit that starts normally is saved on a Mem ory Card that data can be read and used when replacing DeviceNet Units making the replacement process smooth Device parameter files dvf files created using the Configurator can be saved from the computer to the Memory Card and can be restored to the DeviceNet Unit mounted to the CPU Unit This means that setup data created using the Configurator scan lists and other parameters can be downloaded to DeviceNet Units simply by taking the Memory Card to site Memory Card Backup Functions Section 7 2 Unit Setup File Backup Switch DeviceNet Unit CPU Unit Restore a 7 2 1 Outline of Functions Unit Setup File Restore Switch Configurator computer All setup data Memory Card Save file Load file 1 Backing Up Unit Setup Files Saves all internal Unit setup data to the Memory Card mounted to the CPU Unit Method Turn ON the Setup File Backup Switch word n 1 bit 15 to save the internal Unit setup data to the Memory Card as a Unit Setup File DeviceNet Unit CPU Unit Unit Setup File Backup switch Memory Card 2 Restoring Unit Setup Files Restoring Unit Setup Files involves reading the data and setting it to a Unit The data saved to the Memory Card mounted to the CPU Unit is read to the Unit Method Turn ON the Unit Setup File Restore Switch word n 1 bit 14 to read the Unit setup
60. GRAM mode 1 Turn ON the one of the Master Fixed Allocation User set allocations through the allocated DM Area words area With the CPU Unit in PRO GRAM mode turn ON the Master User Allocations Setup Switch User set allocations through the Configurator Create a list from the Con figurator Acquire a list of online devices use it to create a scan list and then Setting 1 Switches 1 to register the scan list in the 3 Master Unit 2 Turn ON the Scan List Enable Switch 1 Be sure to create a scan list before starting actual system operation 2 It is still possible to communicate with Units with the scan list disabled if a scan list is not created when fixed allocations areas 1 to 3 are used This may result in faulty operation because the Master Unit will communicate with slaves even if they do not start up due to problems such as equipment failure if there is no a scan list Scan List Enabled and Scan List Disabled Scan List Enabled Used for Actual Operation Scan List Disabled Used when Changing System Components 100 The scan list must be made The scan list modes are described here Remote I O communications are performed according to the registered scan list and only with slaves that are on the list A verification error occurs word n 12 bit 00 in the status area turns ON if a slave registered on the scan list is not present on the network if a slave did not start up when re
61. Manual W339 or the CJ Series CPU Unit Operation Manual W393 for details on maintaining I O area data with the IOM Hold Bit 223 Troubleshooting Section 9 3 9 3 4 Communications Error Operation Settings Use the following table to correct problems with the DIP switch setting for con tinuing stopping communications for errors Error Probable cause Communications are stopped even though there is no communications error When pin 3 on the DIP switch is ON communications will be stopped if a communications error transmission timeout or network power supply error occurs While communications are stopped the 7 segment displays will alternately display error code AO and the error code of the communications error that caused the stoppage After a network power supply error or transmission timeout is corrected the indicators will show just the communications stoppage code A0 Communications are stopped by the DIP switch setting but don t resume after tog gling the Clear Communications Error Stop page Bit 9 3 5 Scan List Problems When communications can t be restarted with slaves that were communi cating normally before the stoppage stop the communications again Check that the slave has started up and perform the clear communica tions error stoppage operation It may be necessary to perform the operation twice if the network contains another company s slave that take a long time to joi
62. Note added concerning Configurator Ver 2 10 Page 119 Changes made to 4 5 1 Page 119 Changes made to 4 5 2 Page 120 Note added Page 127 Note 2 added concerning Configurator Ver 2 10 Page 133 Note 2 added concerning Configurator Ver 2 10 Page 140 Explanation of node address 0 added to table Page 142 Revision made to note in section 6 1 6 Pages 146 147 148 149 Sections 6 3 to 6 3 2 newly added Pages 157 158 Section 6 4 moved from previous location in section 6 6 Page 160 Note content changed Page 174 Reference to manual changed in Note Pages 181 182 183 184 185 Sections 7 1 to 7 1 4 newly added Pages 185 186 187 Sections 7 2 to 7 2 2 moved from Appendix Page 193 PC cycle time delay calculation in two Notes changed from 0 25 ms 1 5 ms to 0 7 ms Page 194 Table item changed from TPC TRF to TPC TRF Page 197 PC cycle time delay calculation changed from 0 25 ms 1 5 ms to 0 7 ms Page 200 Information from previous sections 8 2 8 3 moved to pages 48 49 50 Page 222 Reference to Slaves Operation Manual changed Page 225 Reference to Slaves Operation Manual changed Page 225 DNnnBKUP _DAT changed to DNnnBKUP dvf in Note 3 Page 232 Note added 267
63. OFF 0 1 s OFF 0 3 s Master s node Master s eee de 1 s address 1 s eror eo J If there is an error at the DeviceNet Unit The master s error code and master s node address will be displayed if an error has occurred at the master There is no priority in the error codes all errors that have occurred will be dis played in order All error codes begin with letters so they can be distinguished from node addresses immediately Dot Indicators The following table shows the functions of the dot indicators Indicator Content Display Left dot Scan list enabled ON Master function disabled disabled master Flashing Scan list disabled mode OFF Scan list enabled mode Right dot Slave function dis ON Slave function disabled abled OFF Slave operating function disabled 2 1 4 Switch Settings Unit No Switch Use this switch to set the unit number of the DeviceNet Unit as a CPU Bus CS1W DRM21 CJ1W DRM21 Unit The unit number setting determines the CIO and DM area words allo cated to the Unit as software switches and the status area SY Setting method One digit hexadecimal Setting range O to F Note 1 The unit number is set to 0 at the factory 2 Any unit number from 0 to F can be set as long as it hasn t been set on another CPU Bus Unit connected to the same PC 3 Use a small flat blade screwdriver to turn the rotary switches be careful not to damage the switch 4 Always turn OFF the PC
64. Section 3 1 3 1 1 Allocated CIO Area Words Software switches DeviceNet Unit status and error data are allocated in the CIO Area according to the unit number as shown below Software switches are bits used as commands from the CPU Unit to the DeviceNet Unit to enable executing Unit functions Unit number Allocated words CIO 1500 to CIO 1524 Unit number Allocated words CIO 1700 to CIO 1724 CIO 1525 to CIO 1549 CIO 1725 to CIO 1749 CIO 1550 to ClO 1574 CIO 1750 to CIO 1774 CIO 1575 to ClO 1599 CIO 1775 to ClO 1799 CIO 1600 to ClO 1624 CIO 1800 to CIO 1824 CIO 1625 to CIO 1649 CIO 1825 to CIO 1849 CIO 1650 to ClO 1674 CIO 1850 to CIO 1874 N OO or AJOJN oO CIO 1675 to ClO 1699 3 1 2 Allocated DM Area Words The User Allocations Setup Tables and individual address are allocated in the DM area Unit number Allocated words D30000 to D30099 Unit number CIO 1875 to CIO 1899 slave status by node Allocated words D30800 to D30899 D30100 to D30199 D30900 to D30999 D30200 to D30299 D31000 to D31099 D30300 to D30399 D31100 to D31199 D30400 to D30499 D31200 to D31299 D30500 to D30599 D31300 to D31399 D30600 to D30699 D31400 to D31499 NN OO Oo BR oO PM oO D30700 to D30799 D31500 to D31599 59 Allocated CIO Area Words Section 3 2 3 2 Allocated CIO Area Wo
65. The I O areas set in the master scan list or slave scan list do not exist in the CPU Unit This error can occur when the Unit is mounted to a different CPU Unit with a different number of EM banks or EM that has been converted to file memory This error may occur during remote I O communications too DeviceNet Unit Response Records the error in the error log Stops remote I O communications for the function master or slave using the non existent area There is a possibility that this error will occur again If it does occur again restart remote I O communications to return the system to normal operation Flags Allocated for C200H DeviceNet Master Unit CIO n 24 Bit 14 Error Flag and bit 03 the Structure Error Flag will be ON 215 Troubleshooting with the DeviceNet Unit Indicators Section 9 1 CPU Unit Service Monitoring Error CPU Unit Watchdog Timer Error Note 216 CIO Area Flags Allocated to DeviceNet Unit Bit 00 of n 10 Unit Error Flag will be ON together with one of the following combinations e Bit 05 of n 12 the Master I O Refresh Error Flag and bit 01 of n 10 the Master Function Error Flag ON e Bit 05 of n 14 Remote I O Refresh Error Flag and bit 03 of n 10 the Slave Error Flag ON Correction Check the master scan list and slave scan list and reset with a correct alloca tion Error log Hex Red lashing oo oe Likely Cause Servicing from the CPU Unit is not at fixed intervals
66. Troubleshooting with the DeviceNet Unit Indicators Determining Operating Status from the Indicators The following table shows the status of the MS and NS indicators and the 7 segment display during normal operation Indicator status NS 7 segment Network Unit status Initializing with PC Comments Initialization processing with the PC is in progress Restart the DeviceNet Unit if this status continues for an extended period of time Replace the CPU Unit and or DeviceNet Unit if the problem is not cor rected by restarting OFF Master s node address flashing Checking for node address duplication The node address duplication check is performed after initialization Flashing green Master s node address flashing Waiting for remote I O com munications The Unit will have this status until remote I O com munications are performed with the master or slave function When both functions are operating the Unit will have this status until remote I O communi cations are performed with either function Master s node address Waiting for message commu nications connection The Unit will have this status when both the master and slave functions are disabled and the Unit is waiting for a connection by message communica tions Master s node address Remote I O or message com munications in progress This is the normal display when the master and or slave is active
67. Unit will continue Normal operation will resume when the slave scan list is written normally Start the slave remote I O communications CIO Area Flags Allocated to DeviceNet Unit Bits 00 and 03 of n 10 the Unit Error Flag and Slave Error Flag and bit 04 of n 14 Invalid Setup Data Flag will be ON Correction Disable the slave reset the allocations and the enable the slave again or use the Configurator to reset the slave scan list Error log Hen Fed flashing on Likely Cause There is an error in the contents of the master scan list stored in non volatile memory DeviceNet Unit Response Records the error in the error log e The master remote I O communications will be stopped e Message communications and the exchange of data with the CPU Unit as a slave will continue Normal operation will resume when the master scan list is written normally Start the master remote I O communications Flags Allocated for C200H DeviceNet Master Unit CIO n 24 Bit 14 Error Flag and bit 03 the Structure Error Flag will be ON CIO Area Flags Allocated to DeviceNet Unit Bits 00 and 01 of n 10 the Unit Error Flag and Master Function Error Flag and bit 04 of n 12 the Invalid Scan List Data Flag will be ON 211 Troubleshooting with the DeviceNet Unit Indicators Section 9 1 Memory Access Error 212 1 2 3 Note Correction Clear the scan list and register the scan list again or use the Configurator to re
68. With a CS CJ series DeviceNet Unit the DeviceNet network can be treat ed exactly like a Controller Link Ethernet or other network for message communications or remote programming and monitoring by a CX Pro grammer Overview of DeviceNet Section 1 1 1 1 1 Overall System Configuration DeviceNet Unit or DeviceNet Master Unit CS ESIWDRM21 C200HW DRM21 y1 Photoelectric Photoelectric Photoelectric CJ Seri sensors proximi sensors proximi sensors or prox erles CVM1 CV Series ty sensors limit ty sensors limit imity sensors CJ1W DRM21 CVM1 DRM21 V1 switches etc switches etc with connectors ae Eya ae Input Remote Adapter used amp with Input Block Sensor Terminal DeviceNet Configurator M Output Remote personal com p gt Output S gt i CQM1 g gt Outpu Adapter used 3 2 Environment re puter r 7 Terminal ao in Canal ye sistant Terminal eke 3 l Ee Block Inputs outputs TEL i LL i or mixed I O Paced Parte ttt H olenoids olenolds i Photoelectric Solenoids valves etc vanes Gie sensors valves etc proximity T branch Taps or multi drop connections a ote DeviceNet Unit or DeviceNet Master Unit 200H 1 0 Link Unit See note Analog Bee Te ee Output 4 Terminal ji a i Inputs Outputs Outputs Inputs i MULTIPLE 1 0 TERMINAL An
69. a shared RAM when communications cycle is completed Communications cycle ON A i ih I hi TIN TRM TRM TPC TPC TRM TOUT TIN The Input Slave s ON OFF delay Tout The Output Slave s ON OFF delay Tam Network s communications cycle time See page 191 Tpc The PC s cycle time See note below Note The PC s cycle time will be delayed as shown below for one De viceNet Unit For details refer to Refresh Time on page 192 0 7 ms number of occupied words x 0 001 ms The maximum I O response time Tmax is the total of the following terms Tmax Tin Tru Xx 2 Tpc x2 Tout Note 1 Refer to the CompoBus D DeviceNet Slaves Operation Manual W347 for details on the Input and Output Slaves delay times 2 Refer to Refresh Time on page 192 and to the PC s Operation Manual for details on the PC s cycle time 193 Remote I O Communications Characteristics Section 8 1 Minimum I O Response Time The minimum I O response time occurs when the Slave s I O refreshing is executed just after the input signal is received by the DeviceNet Unit and the output signal is output at the beginning of the next I O refresh cycle i lt _ lt Instruction execution Master Unit processing _ _____________ gt TiN TRT IN TPC TRF TRT OUT TOUT Tin The Input Slave s ON OFF delay Tout The Output Slave s ON OFF delay Trtin Input Slave s communications time Slave See
70. about refresh time or PC cycle time refer to operation manual of the PC 8 1 2 I O Response Time Maximum I O Response Time Communications Cycle The maximum I O response time will be as shown below if the DeviceNet Unit Time PC Cycle Time takes in data immediately after I O refreshing and if the communications cycle time is longer than the PC cycle time N PC Instruction Instruction Instruction execution a execution execution ra ON input data Transfers to a Takes into the i shared RAM notice delayed t anen PG stan is PC s internal i completed memory Note 192 Remote I O Communications Characteristics Section 8 1 Tin The Input Slave s ON OFF delay Tout The Output Slave s ON OFF delay Tru Network s communications cycle time See page 191 Tpc The PC s cycle time See note below Note The PC s cycle time will be delayed as shown below for one De viceNet Unit For details refer to Refresh Time on page 192 0 7 ms number of occupied words x 0 001 ms The maximum I O response time Tmax is the total of the following terms Tmax Tint Tam X 2 Tpe x3 Toyt Communications Cycle The maximum I O response time will be as shown below if the DeviceNet Unit Time lt PC Cycle Time takes in data immediately after I O refreshing and if the communications cycle time is shorter than the PC cycle time Z N Instruction Instruction PC execution execution Transfers to the
71. allocations See also I O allocations applicable Units 6 applications precautions xiv C C200HW DRM21 V1 changing ladder programs 79 comparison 29 cables I O Unit Connecting Cable 14 CIO Area See also I O allocations cleaning 225 commands delivering commands through a network 150 explicit message commands 168 FINS commands lists 143 241 communications 22 190 191 connection types 127 130 235 connectors 51 cycle time 81 190 232 See also cycle time errors 224 flags 152 hardware preparation 36 high speed 20 instructions 8 151 completion codes 153 message communications 3 8 15 26 41 133 196 data area sizes 153 data send receive instructions 148 errors 139 140 explicit messages 137 commands BYTE DATA READ 174 BYTE DATA WRITE 177 CPU INFORMATION READ 168 CPU UNIT STATUS READ 172 CPU UNIT WRITE 169 WORD DATA READ 176 WORD DATA WRITE 178 list of PLC object services 166 receiving 165 send command for other manufacturer nodes EXPLICIT MESSAGE SEND 2801 261 sending 158 159 sending using CMND 490 161 FINS messages 135 141 command lists 143 commands ECHO BACK TEST 0801 243 ERROR HISTORY CLEAR 2103 245 READ CONTROLLER INFORMATION 0501 241 READ CONTROLLER STATUS 0601 242 READ ERROR HISTORY 2102 244 RESET 0403 241 connecting networks 157 sending receiving 142 150 Units supporting 143 maximum message response time 197 monitoring timer 140 over
72. an independent system of addresses that does not rely on the addresses used in the DeviceNet net work This enables communications not only with nodes on the DeviceNet network but also with devices and PCs connected via other FA networks such as the SYSMAC NET and SYSMAC LINK Networks 141 FINS Commands and Responses Section 6 2 Refer to SYSMAC CS CJ Series Communication Commands Reference Man ual W342 for details on FINS commands 6 2 2 Sending Receiving FINS Command Responses FINS commands are sent using the CMND 490 instruction for CS CJ series PCs Send receive FINS commands and responses and the data formats used are illustrated in the following diagram Unless otherwise specified all data is hexadecimal 1 byte 1 byte For CS CJ series PC 2 bytes 540 bytes max FINS header O O Ofo _ _ DeviceNet t WY Unit Automatically Command Text generated code cand attached j DeviceNet network Response ee ee kK 4 F CS CJ series CPU Unit 2 bytes 2 bytes 538 bytes max Fins header O O OoJo e ___ Automatically Command Response Text generated code code and attached Command Codes Command codes are represented by a 2 byte hexadecimal code FINS com mands always begin with a 2 byte command code and any parameters that are required follow the command code Response Codes Response codes are represented by a 2 byte hexadecimal code that indicates the results of c
73. and dimensions changed Page 2 Changed to DeviceNet Unit to clarify meaning Page 3 Corrected callout at upper right of page Pages 8 and 25 Number of node for FINS communications changed Pages 8 16 17 18 19 Notes added Pages 10 11 15 Products added Page 15 OS updated in table Page 16 Graphics changed Page 17 Bottom graphic and description changed Page 31 Routing table item added to table Page 33 Maximum words per slave item added to table Page 34 Corrected ClO 3770 number Page 36 37 Added PCI Board info to graphic and tables Page 39 Note added Page 41 Routing table section added Pages 42 43 44 Slight change in procedure Page 48 Graphic added Pages 48 49 50 Information added from previous sections 8 2 8 3 and graphics changed Page 51 Graphics changed Page 52 Note added graphic added Page 55 CJ series explanation added Page 56 Graphic added Page 60 Information added to Software Switches 1 description Pages 62 63 64 65 Table items added Page 95 Address numbers changed in graphic Page 101 Note in item 7 corrected Right changed to Left Page 101 Same note in item 6 corrected Right changed to Left Page 102 Note 2 added concerning Configurator Ver 2 10 Page 105 Change made to Step 2 of 4 3 2 and Step 3 added Page 107 Table changed Page 109 Allocation tables changed Page 114 Changes made to Changing System Components section Page 118
74. as a file to the Memory Card mounted in a CPU Unit This feature greatly simplifies DeviceNet Unit replacement A DeviceNet Unit device parameter file same as data setup file that is prepared offline using the Configurator can be saved on a Memory Card and setup data from the Memory Card can be downloaded to 19 DeviceNet Unit Features Section 1 2 a DeviceNet Unit See Appendix D Memory Card Backup Function for more details CS Cu series DeviceNet Unit Configurator CPU Unit Memory Card File save File load Loads setup data to a DeviceNet Unit using a software switch in CIO Area of the CPU Unit Note Refer to 7 2 Memory Card Backup Functions for details Various Connection Methods Maximum Network Length of 500 m High speed Communications Compatibility with Slow Slaves A Wide Variety of Slaves 20 Normal multi drop T branch multi drop with up to three branches and daisy chain line connections are available These methods can be combined to con struct a flexible system that suits the floor layout A network can connect up to 63 Slaves and can handle remote I O communi cations of up to 2 000 byes 16 000 points without the Configurator per DeviceNet Unit A maximum network length of 500 m is possible with a baud rate of125 Kbps using thick cable High speed communications are possible at up to 500 Kbps for a trunk line length of 100 m The communications cycle time can be set eve
75. backups FINS com mands and responses sending DeviceNet explicit message to Non OMRON nodes and multi vendor applications The following manuals provide information on the DeviceNet and OMRON DeviceNet products Manual Products Contents CS CuU series DeviceNet CS1W DRM21and CJ1W DRM21 Information on CS Cu Unit Operation Manual DeviceNet Units series DeviceNet Units This manual DeviceNet CVM1 DRM21 V1 DeviceNet Master Unit Information on C200H Operation Manual C200HW DRM21 V1 DeviceNet Master Unit series CVM1 and CV CQM1 DRT21 I O Link Unit series DeviceNet Units as DRT1 series DeviceNet Slaves well as general DeviceNet GT1 series DeviceNet Slaves communications specifica tions and wiring methods DeviceNet Configurator WS02 CFDC1 E DeviceNet Configurator Information on using the Ver 2 3G8F5 DRM21 ISA Board Configurator Operation Manual 3G8E2 DRM21 PCMCIA Board DeviceNet Slaves Opera C200HW DRT21 Information on DeviceNet tion Manual CQM1 DRT21 Slaves DRT1 Series DeviceNet MULTIPLE I O DRT1 COM Information on MULTIPLE TERMINAL Operation GT1 Series I O TERMINALS one type Manual of DeviceNet slave Ix Manual SYSMAC CS CJ Series Communication Com mands Reference Manual CS1G H CPU Products E CPU Units CS1W SCB21 41 Serial Communications Boards CS1W SCU21 Serial Communications Unit Contents Information on FINS and Host Link commands that can b
76. be included in a single PC as shown below using user set allocations 16 Units max Master Unit Master Unit Slave Slave 108 User set Allocations Sec tion 4 4 Procedure Step 1 Turn ON the Master Enable Switch Make sure that master communications have disabled by checking to see if Master Enable Function Flag word n 11 bit 03 is OFF and then turn ON the Master Enable Switch word n 14 bit 06 to enable master communications Once master communications have been enabled by turning this switch ON they will remain enabled even if the power is turned OFF and back ON again Note Do not turn ON the Master Enable Switch unless master communi cations are stopped If the Master Enable Switch is turned ON when master communications are enabled a Unit error will occur and a C5 error will be displayed on the 7 segment display on the front panel Step 2 Setting the Master User Allocations Table This table specifies the area and first word for each block and the area and first word for the Allocation Size Setup Table e Master User Allocations Table First word m D30 000 100 x unit no Bit 15 08 07 00 m 1 wd O 0 OUT block 1 area m 2 wd First word of OUT block 1 Can be set anywhere past here m 3 wd O 0 IN block 1 area m 4 wd First word of IN block 1 Area for Allocation m 5 wd O 0 Size Setup Table m 6 wd First word of Allocation Size Setup Table r Can be set anywhere pa
77. because the Unit is busy Cannot execute ser vice 3 3 3 Allocation Size Setup Table The following allocation size setup tables must be set in the I O memory in the CPU Unit to use the Master User Allocations Setup Table The number of bytes set in the allocation size setup table are allocated in word units in order of node addresses for OUT block 1 and then IN block 1 Set the sizes within a range from 0 to 200 bytes 100 words Word Bit 15 1 1 1 63 84 Bit08 Bit07 The Unit master communications have not been disabled Bit 00 Node address 0 OUT size bytes Node address 0 IN size bytes Node address 1 OUT size bytes Node address 1 IN size bytes Node address 63 OUT size bytes Node address 63 IN size bytes Allocated DM Area Words Section 3 3 1 1 142 3 3 4 Allocation size setup table Setting Example The following example shows the allocation when the size bytes for OUT block 1 and IN block 1 is set in the allocation size setup table using the speci fied values Node address 0 OUT size 1 byte IN size 5 bytes Node address 1 OUT size 4 byte IN size 3 bytes Node address 2 OUT size 1 byte IN size 2 bytes 1 4 1 15 OUT block 1 00 5 s Not usable 00 k 3 s 1 01 01 k 1 2 s 2 01 01 k 2 s 3 Not usable 02 k 3 i k 4 k 5 First word of the allocation size set
78. because the other node is busy Transmission failed because of a CPU Unit error Frame discarded due to one of the follow ing e A cyclic service monitoring timeout occurred e A CPU Unit watchdog timer error occurred e Another CPU Unit error occurred Transmission failed because the destination address is not registered in the routing table Transmission failed because the routing table has not been registered Transmission failed because of a routing table error Transmission failed because of too many repeti tions Transmission failed because the command exceeded the max command length Transmission failed because of a header error Packet discarded because the internal recep tion buffer is full Illegal packet discarded Unexpected routing error Packet discarded because the internal trans mission buffer is full Routing failed because maximum frame length was exceeded Packet discarded because of response timeout First byte Second byte FINS message communications command Bit 15 OFF Bits 14 to 8 SNA Bits 7 to 0 SA1 FINS message communications response Bit 15 ON Bits 14 to 8 DNA Bits 7 to 0 DA1 Explicit message communications command Bit 15 OFF Bits 14 to 8 0 Bit 7 ON Bits 6 to 0 Node address of command source Explicit message communications response Bit 15 ON Bits 14 to 8 0 Bit 7 ON Bits 6 to 0 Node address of comma
79. e pea eae er _ s 2 8 Command code PC s SH i CPU By Unit l Node 05 Explicit command block Node address of the non L OMRON node 06 Hex v 15 87 0 c 3L_o 5 F E Destination node address Destination unit address Node 06 Local node address 05 FE or 12 Hex Slave or Master not by OMRON Explicit message Note Depending on conditions the destination slave may not always accept an explicit message Always perform retry processing when sending explicit mes sages FINS Command EXPLICIT MESSAGE SEND 28 01 EXPLICIT MESSAGE SEND will send an explicit DeviceNet message to the specified class and receive a response Command Block 28 01 534 bytes max T Command Class ID Instance ID Service data code Service code Destination node address Response Block Normal Response 28 01 534 bytes max i nit a Service data Service code Destination node address remote node Command Response No of bytes code code received Error Responses The following response is returned if an error occurs for the explicit message l Ec ca l l Command Response No of bytes Error code code code received Service code 94 Hex Destination node address remote node The following response is returned if
80. expand functions Files that can be written e Master parameter files parameters for OMRON Master 1 file per node Note Slave communications are saved as well in the master device parameters file with the DeviceNet Unit Slave device parameter files parameters for slaves 1 file per node Network file all master slave parameters for masters slaves in the device list 1 file network EDS file DeviceNet device definition file 1 file device type 35 Basic Operating Procedures Section 1 6 1 6 Basic Operating Procedures 1 6 1 Network Installation Procedure Note For details on the network installation procedure refer to the DeviceNet Oper 1 Determine the node arrangement the wiring configura tion and the cable lengths 2 A Restrictions on lengths of trunk lines and 2 branch lines and total drop line length Selection of thick cables or thin cables B Separation from noise sources Check Determine a suitable baud rate for the system Do 1 and 2 above meet the DeviceNet specifications ation Manual W267 Only a general description is given here Yes 3 Determine the method for providing a communications power supply Y 4 Arrange for the required devices Delivery of devices Ld 5 Installation 1 6 2 Hardware Preparations for Communications 1 2 3 36 1 Set the initial settings for the DeviceNet Unit Unit No UNIT No Nod
81. from the Configurator for each device The settings for all devices can be stored in the DeviceNet Unit This is called the Message Monitoring Timer List 6 1 5 Message Communications Error Indications There are two ways to obtain information on communications errors that occur in message communications 1 Using the error history in the DeviceNet Unit and 2 Using DeviceNet Unit displays indicators and Master Status Areas 1 2 3 1 Each time a communications error occurs an error code is placed in an er ror record in the error history kept in the RAM of the DeviceNet Unit Up to 64 records can be stored in the error history The time and data the record occurred is also recorded The error history can be read or cleared from the CPU Unit by sending an FINS command to the DeviceNet Unit Error History Read Clear The con tents of the error history can also be monitored from the Configurator Sa 64 records i FINS command Read out gt CPU Unit Monitor Configurator 2 The MS and NS indicators and the 7 segment display on the front panel of the DeviceNet Unit can be used together with the Master Status Area 1 in the CPU Unit to obtain information on a communications error that has oc curred This information can be used as the basis for troubleshooting 139 Overview Section 6 1 Example Routing table error Flashing red Bair of Not relevant 1
82. hexadecimal i e 0 to F Bits 04 to 07 Set to 0 Bits 08 to 10 Transmission port number 0 to 7 Bit 11 to 14 Set to 0 ON No response OFF Response returned Bit 15 Response monitoring time 0001 to FFFF 0 1 to 6553 5 seconds 149 Using FINS Message Communications Section 6 3 Note 1 Indicates a Unit as shown in the following table CPU Unit 00 User program in FA computer 01 CPU Bus Unit 10 to 1F Unit numbers 0 to 15 FE The local Unit 2 Values of 00 to 3E indicate nodes 0 to 63 3 Designates the length of time in 0 1 s units that the PC retries transmis sion when bit 15 of C 3 is OFF and no response is received The default value is 0000 which indicates 2 seconds If baud rate is slow and the re sponse monitoring time is short an error may occur 6 3 4 Sending FINS Commands DELIVER COMMAND CMND 490 Description CMND 490 can be used in the user program of the CS CJ series CPU Unit to 150 send FINS commands to read write I O memory read status data change the operating mode and perform other functions at other nodes CMND 490 transmits the command beginning at word S to the designated Unit at the destination node address in the designated network and receives the response beginning at word D Ladder Symbol Local node source Destination node 490 qem S D c Command Operands Variations 15t command word 1 response word T C
83. is not operating across networks 5 Ifyou prepare a local network table inside the CPU Unit be sure to register the DeviceNet Unit 6 Even if a local network table exists inside the CPU Unit the 7 segment dis play of the DeviceNet Unit may indicate HC and FINS message explicit message communications may not be possible unless the DeviceNet Unit is registered in the local network table Routing Tables The routing tables register the communications path from a Communications Unit on the local PC such as a DeviceNet Unit Controller Link Unit SYSMAC LINK Unit or Ethernet Unit to the network to which the remote PC is con nected The routing tables are made up of two tables the local network table and the relay network table as described below Local Network Tables The local network table lists the unit numbers of the Communications Units mounted to the PC and the addresses of the Networks to which each Unit belongs If multiple Communications Units are mounted to one PC CPU Unit the local network table is used to distinguish between network addresses The following type of table is used to show which Communications Unit data must be sent through to reach a destination network address when sending data to a network address from one PC s CPU Unit Local Network Address CPU Bus Unit s unit number Local network The address 1 to 127 of the network to which the Communi cations Unit belongs CPU Bus Unit
84. least one connection with multiple connections set This error occurs with the scan list enabled or disabled Indicates that a remote I O communications error has not occurred or turns OFF when a remote I O communications error is cleared Reserved by system Master COS Send Fail ure Flag Indicates that COS sent to a slave destination failed Use the Master COS Send Switch n 2 n 3 n 4 n 5 words to send COS The following may be cause failure of COS signal transmission Remote I O communications stopped A COS connection was not established Bus OFF has occurred A network power error has occurred A send timeout has occurred Once this bit turns ON it will remain ON until the operation is suc cessfully completed Indicates that the error has not occurred The bit turns OFF when COS is successfully sent Scan List Registration Flag Indicates that the slave is registered in the scan list The Unit is operating with the scan list disabled or the Unit is not reg istered in the scan list 90 Remote I O Communica tions Flag Indicates that normal remote I O communications were conducted with the slaves at all set connections This bit turns OFF if a timeout occurs in at least one connection with multiple connections set Indicates that remote I O communications failed no slave present no scan list registered verification error structure error or that a communicatio
85. locate different types of information Note Indicates information of particular interest for efficient and convenient opera tion of the product Reference Indicates supplementary information on related topics that may be of interest to the user 1 2 3 1 Indicates lists of one sort or another such as procedures checklists etc Trademarks and Copyrights DeviceNet is a registered trademark of the Open DeviceNet Vendor Association Inc Windows Windows 95 Windows 98 Windows Me Windows NT and Windows 2000 are registered trademarks of the Microsoft Corporation Other product names and company names in this manual are trademarks or registered trademarks of their respective companies The copyright of the DeviceNet Unit belongs to OMRON Corporation OMRON 2000 All rights reserved No part of this publication may be reproduced stored in a retrieval system or transmitted in any form or by any means mechanical electronic photocopying recording or otherwise without the prior written permission of OMRON No patent liability is assumed with respect to the use of the information contained herein Moreover because OMRON is con stantly 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 assu
86. mode No differences Different usage Unit switch returns to OFF when pro cessing completed OFF gt ON Restarts remote I O com munications stopped with communications error based on settings Includes bit 03 remote I O communications start switch functions in CS CJ series DeviceNet Unit Different usage Unit switch returns to OFF when pro cessing completed OFF gt ON Starts communications Includes bit 02 communica tions error stop clear switch functions in CS CJ series DeviceNet Unit Different usage Unit switch returns to OFF when pro cessing completed OFF gt ON Stops remote I O communi cations Different usage Unit switch returns to OFF when pro cessing completed 229 Allocation Differences from C200H DeviceNet Master Units Status Areas Master Status Area 1 An area with the exact same bit configuration as Master Status area 1 used for C200H DeviceNet Master Units was set up This area is called the Master Replacement Status 1 e The following table compares the C200H DeviceNet Master Unit Master Status Area 1 and the CS CJ series DeviceNet Unit Master Replacement Status 1 C200H DeviceNet Master Unit Names for C200H DeviceNet Master Unit Master Status Area 1 Switch Set ting Error or EEPROM Error Flag Node Address Duplicated Bus Off Flag Reserved for system use Configura tion Error Flag Structure Error Flag Send Err
87. network table 1 6 4 Procedures Prior to Starting Communications Using the Master Function To use the master function the Master Enable Switch word n bit 06 must be turned ON from a Programming Device Enable master communications through CS1W DRM21 properties if you are using a Configurator Note 1 Make sure the scan list is enabled when using the master function This will allow you to check whether slaves are online or not from the CPU Unit so that you will be able to determine whether or not the DeviceNet is com municating properly 2 Remote I O communications with a specified slave can be turned OFF disconnected by turning ON 1 the corresponding Disconnect Connect Switch words n 6 to n 9 when a slave is replaced or is registered in the scan list prior to being connected These switches are cleared when the power supply is turned OFF however so a bit must be turned back ON 1 from the ladder program when the power turns ON for it to be valid again Fixed Allocations Use the following procedure to use fixed allocations Refer to 4 3 Fixed Alloca tions for details on fixed allocations 1 2 3 1 Turn ON the communications slave and PC power supplies Note Turn ON the communications power supply before turning ON the slave power supplies or the slaves may not go online 2 Switch the CPU Unit to PROGRAM mode 3 Check Unit Status 2 word n 11 bit 03 from a Programming Device con nected to the CPU Unit to see if
88. node not part of network cannot send No change No change No change No of retries limit exceeded cannot send Remote device busy cannot send Header error cannot send Reception buffer full message destroyed Illegal message received received message destroyed Local node busy cannot send Note 1 The 7 segment display alternately displays the error and the master node address where the error occurred 2 The send response message or reception response message will be de stroyed if any of the following occur e lf any communications instructions SEND 090 RECV 098 or CMND are executed from the PC at intervals less than the message communications time e If messages are received from other nodes at intervals less than the message communications time Be sure that the interval between sending messages i e the interval for executing communications instructions from the PC and the interval for re ceiving messages at any one node are longer than the message commu nications time Refer to 8 2 Message Communications for details on the message communications time 6 2 FINS Commands and Responses 6 2 1 FINS Communications The FINS communication protocol was developed by OMRON for use with factory automation control devices FINS communications enable PC memory read write and operation control without extensive programming in the user program in the PC FINS communications use
89. not have to be registered in the scan list 31 Comparison with Previous Models Starting and stopping remote communications during I O communications C200HW DRM21 V1 Section 1 4 CS1W DRM21 CJ1W DRM21 Starts or stops remote I O communications using the Configurator or the software switch from a Programming Device Remote I O communications with a communications error Sets remote I O communications start or stop when an error occurs in master communica tions set on DIP switch on the front of the Master Communications parameters Can be changed communications cycle time Sending explicit messages to slaves made by another company Supported Master error history Yes Can be read by the Configurator or FINS command Setting communications cycle time Supported by the Configurator Supported with or without the Configurator Monitoring current communi cations cycle time Supported Switch that disables commu nications error stoppage The switch that cancels communications error stoppage is different from the one that starts remote I O communications The same software switch is used to cancel communications error stoppage and to start remote I O communications Error with multiple Units mounted A mounting error occurs with fixed alloca tions An error does not occur even with multiple Units mounted Operation will continue even if the same words are a
90. operations and troubleshooting procedures needed to keep the DeviceNet network operating properly We recommend reading through the error processing procedures before operation so that operating errors can be identified and corrected more quickly 9 1 9 2 9 3 9 4 Troubleshooting with the DeviceNet Unit Indicators 9 1 1 Determining Operating Status from the Indicators 9 1 2 Troubleshooting Errors Occurring in the DeviceNet Unit Error Log Functions 1 0 0 0 0 0 cece eect eee nee ee enn eens 9 2 1 Error Los Table rsson beech else kos EKE REEE RANY SA 9 2 2 Error Codes and Detail Codes 0 000 0 Troubleshooting sose iane nea eea eee ence tenes 9 3 1 CPU Unit s ERR ALM Indicator Lit or Flashing 9 3 2 Remote I O Communications Disabled 9 3 3 TO Link Problems osecas ee i a a eee eee 9 3 4 Communications Error Operation Settings 9 3 5 Scan List Problems 0 0 00 cece eee eee Maintenance and Replacement 0 cece eee eee eee OAT Cleanin i eens si eeteie db Resieog oak elgia ss hophe ee gtoledee nisin sees 9 4 2 InSpection aein ohn eed a He EA a hae ae See 9 4 3 Replacing Faulty Units 0 0 00 0 02 2 200 200 201 218 218 219 222 222 222 223 224 224 225 225 225 226 199 Troubleshooting with the DeviceNet Unit Indicators Section 9 1 9 1 9 1 1
91. pts 50 input 50 output words Without messages 4 800 pts With messages 1 600 pts 1 024 pts 32 input 32 output words 1 280 Max No of I O points per Slave con trollable by Master CS Series CS1W DRM21 CJ Series CJ1W DRM21 100 input 100 output words CVM1 CV Series CVM1 DRM21 V1 CS Series C200HX HG HE C200HS C200HW DRM21 V1 32 input 32 output words Remote O alloca tion areas CS Series CS1W DRM21 CJ Series CJ1W DRM21 CS CJ DeviceNet words in CIO Area and user allocated words in CIO Area DM Area and other areas User allocated words in CIO Area DM Area and other areas CVM1 CV Series CVM1 DRM21 V1 DeviceNet Area CS Series C200HX HG HE C200HS C200HW DRM21 V1 C200H DeviceNet words in CIO Area including dedicated words bits User allocated words in CIO Area DM Area and other areas Overview of DeviceNet Section 1 1 Remote I O Slave only Units Mounted in a PC DeviceNet Unit Master CPU Unit IN area OUT area Max No of I O pts per Slave CPU Unit DeviceNet Unit Slave CPU Unit to which a Slave is mounted CS Series Slaves Unit Model CS1W DRM21 CJ Series CJ1W DRM21 Without the Configurator 32 pts 1 input 1 output word or 3 200 pts 100 input 100 output words With the Configurator 4 800 pts 100 input word
92. slave communications If multiple bits are turned ON simultaneously the requests will generate errors but they will not alter Unit operation The corresponding error bits in the follow ing words will turn ON if a request made by a software switch ends in an error Allocated CIO Area Words Section 3 2 e Unit status area 2 word n 11 e Master Status 1 word n 12 Word n n CIO 1 500 25 x unit number 00 Scan List Enable Switch Status OFF gt gt ON Con trolled by User Unit operation Enables the scan list with fixed allocations Note The allocated words are the ones set for use when with the scan list is disabled The following allocated words are the default settings when the scan list is disabled e OUT area CIO 3200 to CIO 3263 1 word 1 node ad dress e IN area CIO 3300 to CIO 3363 1 word 1 node ad dress Operation condi tions OFF Unit Returns to OFF when the scan list is registered and the Unit starts operating with the scan list enabled CPU Unit oper ating mode Pro gram mode Mas ter func tion En abled Scan list sta tus Dis abled Default setting Scan list dis abled 01 Scan List Clear Switch OFF gt gt ON User Clears and disables the scan list This switch clears the scan list and operates the Unit using fixed allocations with the scan list disabled regardless of the previous operation settings
93. table when using ladder programs in the CS1W DRM21 CJ1W DRM21 that have been used in C200HW DRM21 V1 DeviceNet Master Units and make adjustments as required Use the CX Programmer replacement operation to change ladder program addresses When using a CX Pro grammer Ver 1 2 or earlier use the global replace utility function to globally replace addresses Software Switches Scan List Enable Switch Scan List Clear Switch Remote I O Communi cations Start Switch Remote I O Communi cations Start Switch Remote I O Communi cations Stop Switch C200H DeviceNet Master Unit Unit No Set on rotary switches on front panel 0 to 15 CS CJ series DeviceNet Unit Word address CS CJ C200HX Series HG HE C200HS Unit No 0 to 9 IR 100 10 x unit No Unit No A to F IR 400 10 x unit No 10 IR 2000 10 x unit No CS CJ series word address CIO 1500 25 x unit No Contents for CS CJ series DeviceNet Unit OFF gt ON Registers to scan list the slaves recognized during operation in scan list dis abled mode and starts operation in scan list enabled mode PC Unit in PROGRAM mode Differences from C200H series DeviceNet Master Unit No differences Different usage Switch returns to OFF when pro cessing completed OFF gt ON Disables scan list registra tion and starts operation in disabled mode PC Unit in PROGRAM
94. the dots on the 7 segment display on the Master Unit Left dot not lit Scan list enabled Left dot flashing Scan list disabled Read the network components using the Configurator Save the components as a network component file using the Configurator Switch the CPU Unit to RUN mode Remote I O communications with a specified slave can be stopped to ef fectively disconnect the slave from the network by turning ON the Discon Scan List Section 4 2 nect Connect Switch for that slave words n 6 to n 9 This can be done when a slave is replaced or to register a slave in the scan list in prepara tions to connect it to the network at a later time The Disconnect Connect Switches however are cleared when the power supply is turned OFF so the bit must be turned back ON from the ladder program after the power turns ON in order for it to remain effective 2 Use Configurator Ver 2 10 or later for the CJ1W DRM21 4 2 Scan List A scan list is used to register the slaves with which the Master Unit communi cates in DeviceNet remote I O communications It is the basis on which the Master Unit communicates with slaves The Master Unit does not contain a scan list by default The CS CJ series DeviceNet Unit however has a default setting that allows it to communicate with all slaves even with the scan list disabled but this operating mode should not be used for normal operation Always create a scan list prior to operating the Unit Sc
95. the master function is ON enabled If it is enabled skip step 4 below and proceed to step 5 4 Ifthe master function is OFF disabled turn ON the Master Enable Switch word n bit 06 from a Programming Device connected to the CPU Unit Note Execute this only when master communications are turned OFF If the Master Enable Switch is turned ON when master communica tions are ON a Unit error will occur and a C2 error will be displayed on the 7 segment display on the front panel 5 Turn ON the Master Fixed Allocation Area Setting 1 to 3 Switches word n bits 8 to 10 Master remote I O communications will begin with the scan list disabled 6 Turn ON the Scan List Enable Switch word n bit 00 Master remote I O communications will begin with the scan list enabled 7 Switch the CPU Unit to RUN mode User set Allocations Using Allocated DM Area Words Use the following procedure to set allocations using the words allocated to the Unit in the DM Area Refer to 4 4 User set Allocations for details on user set allocations 1 2 3 1 Turn ON the communications slave and PC power supplies Note Turn ON the communications power supply before turning ON the slave power supplies or the slaves may not go online 2 Switch the CPU Unit to PROGRAM mode 38 Basic Operating Procedures Section 1 6 3 Check Unit Status 2 word n 11 bit 03 from a Programming Device con nected to the CPU Unit to see if the master function is ON ena
96. the slave OUT 2 area Always 0 m 39 OUT 2 area size bytes Always 0 m 40 Reserved by system Slave IN 2 area m 41 First word in slave IN 2 m 42 IN 2 area size bytes 88 Allocated DM Area Words Section 3 3 Note OUT2 is not used Ranges Details OUT 1 2 area See Areas and Word Shows the area First word in the OUT block anges Shows the first word for the 1 2 area OUT 1 2 area size 00 to C8 Hex Shows the area by size in 0 to 200 bytes bytes IN 1 2 area See Areas and Word Shows the area First word in the IN Ranges Shows the first word for the blocks1 2 area IN 1 2 area size 00 to C8 Hex Shows the block size in 0 to 200 bytes bytes Areas and Word Ranges Word range 00 Hex The block is not used 01 Hex CIO Area CIO 0000 to 17FF Hex 0 to 6143 03 Hex Data Memory DM 0000 to 7FFF Hex 0 to 32767 04 Hex Work Area WR 0000 to 01FF Hex 0 to 511 05 Hex Holding Relay HR 0000 to 01FF Hex 0 to 511 08 to 14 Hex Expansion Data Memory EM 0000 to 7FFF Hex 0 to 32767 for Bank 0 to bank C 13 banks all banks 3 3 8 Slave Detailed Status The status of the slaves controlled by the master function of the Unit is pro vided by node address Each word provides the status of two slaves Word Bit15 Bit08 Bit 07 Bit 00 m 37 Detailed slave status at node address 1 Detailed slave status at node address 0 m 38 Detailed slave statu
97. tion 1 0 Fixed Alloca tion Area Area Area Setting Setting Setting 1 2 3 Fixed Alloca tion Size 3200 to 3400 to 3600 to 3263 3463 3663 Output 64 words OUT area Input IN 3300 to 3500 to 3700 to area 3363 3563 3763 64 words Select one of the above areas using the software switches All are fixed at 1 word per node address The default setting is Fixed Allocation Area Setting 1 User set allocations By allo cated DM Area words Set the areas and the first words for the OUT 1 and IN 1 blocks in the Scan List Setup Table in the allo cated DM Area words Set the allocation size for each slave using the Allocation Size Setup Table any words Allocations must be in the order of node addresses Allocated words The input and output areas can be the following sizes starting from any word in any of the following areas CIO Area WR Area HR Area DM Area or EM Area Output 500 words max x 1 block OUT area Input IN 500 words max x 1 block area By Config urator Set the areas for the OUT 1 2 and IN 1 2 blocks the first words and the allocation sizes for all slaves using the Configurator Blocks can be set for nodes in any order Allocated words The input and output areas can be the following sizes starting from any word in any of the following areas CIO Area WR Area HR Area DM Area or EM Area Ou
98. to the CX Programmer via the DeviceNet Section 7 1 7 1 1 Setting Node Addresses When the CX Programmer is connected online it uses FINS message com munications It is thus necessary to set the node address to a number other than O for DeviceNet Units mounted to the target PC DeviceNet Units mounted to a PC which is connected by a serial connection to the CX Pro grammer or DeviceNet Units mounted to a PC relaying between networks If a DeviceNet Unit with the address node 0 exists in the online connection path connection will not be possible 7 1 2 Setting the Message Monitoring Timer of the DeviceNet Unit When connecting the CX Programmer via the DeviceNet set the message monitoring timer inside the following DeviceNet Units to 20 000 ms 20 s e The DeviceNet Unit mounted to the PC with the serial connection to the CX Programmer e The DeviceNet Unit mounted to the PC relaying between networks CX Programmer Ver X Programmer Ver S g 2 1 or later 2 1 or later Set the message monitoring timer of this DeviceNet Unit to 20 000 ms 20 s Set the message monitoring timer of this DeviceNet Unit to 20 000 ms 20 s Use the Configurator to set the message monitoring timer Setting the Message Use the following procedure to set the message monitoring timer Monitoring Timer 1 2 3 1 Select Device Parameter Edit and then click the Message Timer Tab 183 Connecting to the CX Pro
99. trigger 02 hex with Cyclic ACK 12 hex with COS ACK 00 hex no Cyclic ACK 10 hex no COS ACK 4 Produced connection ID 5 Consumed connection ID FFFF hex no ACK 6 Initial comm characteristics 01 hex with ACK OF hex no ACK 7 Produced connection size See note 1 8 Consumed connection size 9 Expected packed rate 12 Watchdog time out action 13 Produced connection path length 14 Produced connection path 20 94 24 01 hex 15 Consumed connection path length 0 no ACK 4 with ACK 16 Consumed connection path empty no ACK 20 2B 24 01 with ACK 17 Production inhibit time Service DeviceNet service Parameter option 05 Reset No OE Get Attribute Single No 10 Set Attribute Single Note 1 Number of input bytes used by Slave No 257 Multi vendor Applications Appendix E Object instance 5 Section Information Max No of instances and above Instance Explicit Message I O Message type Produc Cyclic tion trig ger Transport Server type Transport 0 2 3 class Attribute ID content Set write 1 State 2 Instance type See note 1 3 Transport class trigger See note 2 4 Produced connection ID 5 Consumed connection ID 6 Initial comm characteristics 7 Produced connection size 8 Consumed connection size 9 Expected packed rate 12 Watchdog time out action 13 Produced co
100. who must also have knowledge of electrical systems an electrical engineer or the equivalent e Personnel in charge of installing FA systems e Personnel in charge of designing FA systems e Personnel in charge of managing FA systems and facilities General Precautions N WARNING The user must operate the product according to the performance specifica tions described in the operation manuals Before using the product under conditions which are not described in the manual or applying the product to nuclear control systems railroad systems aviation systems vehicles combustion systems medical equipment amuse ment machines safety equipment and other systems machines and equip ment that may have a serious influence on lives and property if used improperly consult your OMRON representative Make sure that the ratings and performance characteristics of the product are sufficient for the systems machines and equipment and be sure to provide the systems machines and equipment with double safety mechanisms This manual provides information for installing and operating the DeviceNet Unit Be sure to read this manual before operation and keep this manual close at hand for reference during operation It is extremely important that a PC and all PC 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
101. x 101 mm W xH x D CJ1W DRM21 31 x 90 x 65 mm W x H x D Weight CS1W DRM21 172 g including the connector provided CJ1W DRM21 118 g including the connector provided Standard accessories One XW4B 05C1 H1 D connector to connect to a node from a T branch Tap 1 3 2 Comparison between CS1W DRM21 and CJ1W DRM21 Only the following items are different between the CS1W DRM21 and the CS1W DRM21 Otherwise these Units are functionally the same CS1W DRM21 CJ1W DRM21 Consumption current Communications power Communications power supply 30 mA at 24 VDC supply 18 mA at 24 VDC External dimensions 35 x 130 x 101 mm 31 x 90 x 65 mm WxHxD WxHxD Weight including connector 172 g 118g 28 Comparison with Previous Models Section 1 4 1 4 Comparison with Previous Models The following table provides a comparison between the CS1W DRM21 DeviceNet Unit and the C200HW DRM21 V1 DeviceNet Master Unit used ina Unit classification CS Cu series PC C200HW DRM21 V1 C200H Special I O Unit CS1W DRM21 CJ1W DRM21 CPU Bus Unit Mounting position CPU Rack C200H I O Expansion Rack CS series Expansion Rack CPU Rack CS CJ series Expansion Rack No of Mas ters that can be mounted Fixed alloca tions 1 Master 3 Masters Select unique words must be allocated using the software switches 3 Slaves Select unique words must be allo cated using the software switches
102. 0 29 28 27 26 25 24 23 22 21 20 19 18 17 16 n 18 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 n 19 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 Operation with the Scan This table indicates the slaves to which a connection has been established at List Disabled least once When registering a scan list using the Scan List Enable Switch word n bit 00 the bits corresponding to the slaves that are registered are turned ON in this table Operation with the Scan This table indicates the slaves that have been registered in the scan list List Enabled Controlled Unit operation Slave i With the scan list disabled Indicates slaves to which a connection has Registered been established at least once Flags With the scan list enabled Indicates that a slave has been registered in the scan list Indicates that a slave has not been registered in the scan list 78 Allocated CIO Area Words Section 3 2 3 2 12 Normal Slave Table Words n 20 to n 23 This table indicates the slaves that are communicating normally with the mas ter The bits correspond to node addresses The bits for slaves for which nor mal I O connections have been made are turned ON in this table These are not flags to show the remote I O communications status Bit15 Biti4 Biti3 Bitl2 Biti1 BitiO BitO9 Bit0
103. 050 Address 0 Address 0 allocated two bytes 1 word wos1 Address 1 Address 1 allocated 1 byte leftmost byte is not used wos2 Address 2 Address 2 allocated two bytes 1 word W053 Address 5 Address 5 allocated 20 bytes 10 words W062 IN area 1_15 00 W100 Address 1 Address 1 allocated 1 byte leftmost byte is not used w101 Address 2 Address 2 allocated two bytes 1 word ies Address 3 address 3 allocated 1 byte leftmost byte is not used 103 Address 5 Address 5 allocated 20 bytes 10 words W112 Turning ON the Master User Allocations Switch Turn ON the Master User Allocations Switch word n bit 11 ClO 150011 in this example The Master User Allocations Switch will read the allocation results data for the above slaves and create a scan list based on data for slaves that are actually online prior to starting remote I O communications with the scan list enabled User set Allocations Sec tion 4 4 Setting through the Slaves can be allocated words in any order for the following blocks OUT block Configurator 1 OUT block 2 IN block 1 and IN block 2 OUT block 1 User set block order Specified area in I O memory Bit 15 o User set block order First word to to Output to slaves IN block 1 Bit 15 First word specified OUT block 1 to User set block order Bit 18 0 Bit Sagares First word specified to IN block 1 to eas Input from slaves OUT block 2 User set block order Bit
104. 15 i e 0 to F Bits 04 to 07 Set to 0 Bits 08 to 15 Bits 08 to 10 Transmission port number 0 to 7 Bit 11 to 14 Set to 0 ON No response OFF Response returned Response monitoring time 0001 to FFFF 0 1 to 6553 5 seconds Bit 15 Note 1 Indicates a Unit as shown in the following table CPU Unit 00 User program in FA computer 01 CPU Bus Unit 10 to 1F Unit numbers 0 to 15 FE The local Unit 2 Values of 00 to 3F indicate nodes 0 to 63 3 Designates the length of time that the PC retries transmission when bit 15 of C 3 is OFF and no response is received The default value is 0000 which indicates 2 seconds NETWORK RECEIVE RECV 098 Description RECV 098 transfers data beginning at word S from the designated node on the designated Network to addresses beginning at D at the local node Local node destination Ladder Symbol Source node 098 RECV s D c Variations T RECV 098 Operands S 1a source word D i destination word C 1 control word Control Data The control data depends on the source node The following information is for DeviceNet Networks Word Bits 00 to 07 Number of words 1 to 269 i e 0001 to 010D Source network address Set to 0 0 to 127 i e 00 to 7F 0 local network Bits 08 to 15 Source unit address Source node address Bits 00 to 03 No of retries 0 to 15 in
105. 15 0 Address First word specified Bit First word specified o Output to slaves OUT block 2 to IN block 2 User set block order Bit_15 o Bit 15 Input from slaves The block allocation order block allocation areas and order of node addresses in each block can be set by the user each address is allocated at least one byte rightmost or leftmost byte e More than one word is allocated for each slave according to it s node address with more than16 I O points e The leftmost or rightmost byte of the word is allocated to each slave that has less than 16 I O points 113 User set Allocations Section 4 4 Procedure Step 1 Set the area start word and words allocated for each block using the Config urator Step 2 Allocate words to all node addresses in each block as shown below using the Configurator OUT block 1 Node address 00 DRT1 OD16 16 output pts Node address 03 DRT1 DA02 2 analog output points 32 bits IN block 1 Node address 01 DRT1 ID08 8 input pts tS __ Node address 02 DRT1 ID08 8 input pts e Each address is allocated at least one byte rightmost or leftmost byte Note a The order of all blocks can be set as desired by the user O OUT block 1 IN block 2 OUT block 2 IN block 1 b Node addresses do not have to correspond between an output block and input block Example This is not n
106. 1513 25 x unit No 1 When scan list has been created using Con figurator and operating in scan list enabled mode user set allocations 0 When operating in scan list disabled mode or when operating in scan list enabled mode based on the scan list registered by software switch settings fixed allocations Shown in 1 byte code for CS1W DRM21 CJ1W DRM21 Communications Cycle Time Present Value Name C200H DeviceNet Master Unit CS CJ series Contents for CS CJ C200H DeviceNet Unit series DeviceNet Unit DeviceNet Word address Bit CS CJ series Bit Master Unit CS CJ C200HX HG word Series HE C200HS address Communica tions cycle time present value D06033 2 x unit No DM6033 2 x unit No The present value of the communications cycle time is stored in 4 digit BCD The unit is ms The digits below decimal place are rounded up Stored in hexadecimal Registered Slave Table C200H DeviceNet Master Unit For CS CJ series DeviceNet Unit CS CJ series C200H DeviceNet Master Unit Word address Bit Registered slave table 232 CS CJ Series 4 words starting with 2002 10 x unit No C200HX HG HE C200HS Unit No 0 to 9 4 words starting with IR 102 10 x unit No Unit No A to F 4 words starting with IR 402 10 x unit No 10 word address 4 words starting with n 16 No differences
107. 16MX GT1 OD16MX 1 GT1 OD16ML GT1 OD16ML 1 GT1 OD16DS GT1 OD16DS 1 GT1 OD32ML GT1 OD32ML 1 GT1 ROS16 GT1 ROP08 13 Overview of DeviceNet Section 1 1 Unit 1 0 Words allocated I O connec Unit Installa Model Remarks points in PC memory tions power tion number Input Output supply p E voltage Special Analog 4 inputs 4 words O words M3 terminal 24 VDC DIN track GT1 AD04 Inputs I O Units Input Units block sup 4 to 20 mA See 8 inputs 8 words 0 words Connector _ Plied GT1 ADOsMx O to 20 mA note made by from out Oto5V MOLEX side 1to5 V 3 0 to 10 V 10 to 10 V Analog 4 out O words 4 words M3 terminal GT1 DA04 Outputs Output puts block 4 to 20 mA Units 0 to5V 1to5V 0 to 10 V 10 to 10 V 4 out O words 4 words Connector GT1 DA04MX Outputs puts made by 0 to 5 V MOLEX 1to5V 0 to 10 V 10 to 10 V Tempera 4 inputs 4 or 8 0 words M3 terminal GT1 TSO4T Sensor ture Input words block types R S Unit varies K J T B L 4 inputs With 0 words M3 terminal GT1 TSO4P Sensor data for block types mat Pt100 JPt100 Counter 1 input 3 words 3 words M3 terminal GT1 CT01 1 external Unit block input 2 external outputs Note The front panel indicators and other parts of Analog Input Units Analog Out 14 Note put Units and Counter Units differ from
108. 2 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 Number of Slaves s Communications cycle time 500 kbps ms s Communications cycle time 250 kbps ms 4 Communications cycle time 125 kbps ms Remote I O Communications Characteristics Section 8 1 Communications Cycle Time Calculation Use the equations shown below to calculate the communications cycle time TRm for a network with one Master Note that if the result of this calculation is less than 2 ms the actual communications cycle time will be 2 ms Trmu Communications time per Slave High density Unit processing time Explicit message processing time COS Cyclic connection time ms 0 01 x N 1 0 ms Communications Time per Slave This is the communications time required for a single Slave Communications time per Slave represents the total of the Communica tions time per Slave for all the Slaves in the network High density Unit Processing Time 3 5 ms This is added if there are any Slaves in the network that use at least 8 bytes for input output or both Explicit Message Processing Time 0 11 x Tg x n ms Only added when explicit communications sending or receiving are per formed n Number of explicit messages both sending and receiving that occur in one cycle time Tg The baud rate factor 500 kbps Tp 2 250 kbps Tp 4 125 kbps Tp 8 COS Cyclic Connect
109. 200H DeviceNet Master Unit C200HW DRM21 V1 mounted to CS CJ series CPU Units the ladder programs must be changed when replacing the C200HW DRM21 V1 with this Unit Remote I O Communications and Status Monitor Ladder Programs e When using a CX Programmer Ver 2 0 use its replacement function to globally replace addresses e When using a CX Programmer Ver 1 2 or earlier use the global replace utility function to globally replace addresses 233 Allocation Differences from C200H DeviceNet Master Units Replace the addresses as shown in the following table Area type First word of IN area in fixed remote I O alloca tions C200HW DRM21 V1 This Unit CS1W DRM21 Can be allocated to CIO 350 from Config urator or in allocated DM Area words Appendix A Remarks Completely compati ble First word of OUT area in fixed remote I O alloca tions Word 50 Can be allocated to CIO 50 from Configu rator or in allocated DM Area words Completely compati ble Software switches IR 2000 10 x unit No CIO 1500 25 x unit No Communications error stop clear Bit 02 Bit 02 Remote I O communications start Bit 03 Bit 03 Remote I O communications stop Bit 04 Bit 04 Only word address changed Master status area 1 IR 2000 10 x unit No 1 CIO 1500 25 x unit No 24 Only word address changed Master status area 2 Scan list registration by
110. 4 bit 08 in Unit Status 2 will turn ON if there is a setting error Operation conditions CPU Slave Unit func oper tion ating mode Default setting Slave Fixed Alloca tion set ting 1 enabled Slave COS Send Switch Sends COS IN data to the master Returns to OFF after transmission is completed regard less of whether it was completed normally or in error 68 Reserved by system Unit Setup File Restore Switch Status Con trolled by Unit operation Operation conditions CPU Mas Unit ter oper func ating tion mode Reads Unit settings scan list communica tions cycle time settings etc from the file on a Memory Card in the CPU Unit and writes the data as Unit settings See 7 2 Memory Card Backup Functions for details The Unit automatically restarts Note After the file data is read the Unit automatically restarts with the new data Returns to OFF when the Unit restarts if the data is read properly Note The File Read Write Error Flag word n 11 bit 08 in Unit Status 2 will turn ON if there is a setup data error or a file read error Scan Slave list func sta tion tus Default setting Allocated CIO Area Words Section 3 2 Bit Name Status Con Unit operation Operation conditions Default trolled by CPU Mas Scan Slave Setting Unit ter list func oper func sta tion ating tio
111. 60 x 80 mm W x D x H Connects to a Relay Terminal through a MIL cable Does not need a separate power supply for internal cir cuits uses the communica tions power supply Remote Adapters 10 16 input points NPN DRT1 ID16X 16 input points PNP DRT1 ID16X 1 16 output points NPN DRT1 OD16X 16 output points PNP DRT1 OD16X 1 Compact 85 x 50 x 40 mm W x D x H Connects to a G70D Relay terminal and can be used fora relay output or a power MOS FET relay output Overview of DeviceNet Section 1 1 Name Sensor Terminals Appearance I O points 16 input points NPN Model number DRT1 HD16S 8 input 8 output points PNP DRT1 ND16S Remarks Connected to photoelectric and proximity sensors with connectors Temperature Input Terminals 4 thermocouple input points 4 words DRT1 TSO4T 4 temperature resis tance thermometer input points 4 words DRT1 TS04P Thermocouple inputs Temperature resistance ther mometer inputs Analog Input Termi nals 4 input points 4 words or 2 input points 2 words DRT1 AD04 1to5V 0to 5 V Oto 10 V 10 to 10 V O to 20 mA or 4 to 20 mA input switchable Resolution 1 6 000 4 input points 4 words DRT1 ADO4H 1to5V 0to5V 0to 10 V 0 to 20 mA or 4 to 20 mA input switchable Resolution 1 30 000 Analog Output Termi nals 2 output points 2 words
112. 70 Fixed Alloca tion Fixed Alloca tion Output OUT area tothe slave from the master Input OUT area to the master from the slave Note Select one of the preceding areas using the software switches All are fixed at 1 word per node address The defa ult setting is Fixed Allocation Area Setting 1 User set allocations By allo cated DM Area words Set the areas the first words and slave allocation size for the OUT 1 and IN 1 blocks total of 2 blocks using the Slave User Allocation Setup Table in the allocated DM Area words Allocated The input and output areas can be the words following sizes starting from any word in any of the following areas CIO Area WR Area HR Area DM Area or EM Area Output OUT area from this slave Input IN area to this slave 100 words 100 words By Config urator Set the areas for the OUT 1 2 and IN 1 2 blocks the first words and the slave allocation sizes using the Configurator Allocated The input and output areas can be the words following sizes starting from any word in any of the following areas CIO Area WR Area HR Area DM Area or EM Area Output OUT area from this slave Input IN area to this slave 100 words 100 words Max No of I O points per DeviceNet Unit slave Fixed allocations 32 points 1 input word 1 output word User set allo
113. 8 BitO7 Bito6 Bit05 Bit04 BitO3 BitO2 Bit01 Bitoo n 20 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 n 21 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 n 22 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 n 23 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 In the following cases the status of communications up to the most recent status is saved and then status is cleared when communications are restarted i e when connection is made again e Communications power supply error e Send timeout e Remote I O communications stopped e When a communications error occurs with DIP switch pin 3 remote I O communications stop continue setting for communications errors on the front panel ON stop This table is updated continuously by Unit Unit Slave Nor mal Flags Indicates normal connection Indicates that not all connections have been made 3 2 13 C200H Master Replacement Master Status 1 Word n 24 To simplify changes to ladder programs for a C200H DeviceNet Master Unit C200HW DRM21 V1 Master Replacement Status 1 which has the same bit configuration as Master Status Area 1 is provided for C200H DeviceNet Mas ter Units Word n 24 n CIO 1 500 25 x unit number Status C200HW DRM21 V1 status OFF Controlled by Details and CS1
114. 8203 021 MOV E800 021 MOV 0005 021 MOV 0001 Execution condition 0000 A202 15110 00 00 00 490 CMND D01000 D02000 Port Online Flag Enabled word n 11 Flag bit 00 025 0000 A202 A219 01 00 00 021 H m MOV A203 Port Port Enabled Execution 026 Flag Error Flag ASR D02999 D00000 D00001 D00002 D00003 D00004 D00005 D01000 D01001 D01002 D01003 0000 D00000 0000 D00006 0000 001 END Sets 0000 in D00000 to D02999 Place data into control data words to specify to read 5 words D01000 to D01004 from the PC of node 06 and network 01 to the PC of node 05 Place the command data for MEMORY AREA READ into D01000 to D01003 Places 0001 into CIO 0000 Reads 5 words D01000 to D01004 from the PC of node 06 and network 01 to the PC of node 05 and stored the data beginning at D02000 Shifts the contents of CIO 0000 one bit to the left Stores the network error response code in A203 to D00006 Shifts the contents of CIO 0000 one bit to the right to reset CIO 000000 6 3 6 Connecting Networks for FINS Communications CS CJ series DeviceNet Units can perform FINS communications between networks DeviceNet networks are handled the same way as other FA net works such as Controller Link or SYSMAC LINK and the OA network Ether net DeviceNet networks can be connected to the other DeviceNet networks or to other types of networks Note Explicit message comm
115. Appendix A Allocation Differences from C200H DeviceNet Master Units Normal Slave Table C200H DeviceNet Master Unit For CS CJ series DeviceNet Units Word address CS CJ Series C200HX HG HE C200HS Unit No 0 to 9 4 words starting with IR 106 10 x unit No Unit No A to F 4 words starting with IR 406 10 x unit No 10 4 words starting with ClO 2006 10 x unit No Word address CS CJ Series 4 words starting with n 20 Bit C200H DeviceNet Master Unit With the CZOOHW DRM21 V1 normal slave information is held and when remote I O communica tions are started again the infor mation is cleared to OFF even in the following cases Network power supply error Send timeout Remote I O communications stopped When remote I O communica tions are stopped due to a com munications error only the bits for the slaves that caused the stop page will turn OFF Also the cor responding Slave remote I O communications timeout in the detailed information for that slave m 37 to m 68 bit 11 or bit 03 will turn ON The communications tim eout bits for all other slaves will remain OFF For the CS1W DRMa21 or CJ1W DRM21 however all normal slave information will turn OFF when the remote I O communications are stopped including for a communi cations error Replacing Ladder Programs from C200HW DRM21 V1 If ladder programs have already been created for C
116. C Address L Address H command The address of the first word to which the data is written is specified in hexadecimal as shown below Address L The lower 2 digits when the first word address is displayed in 4 digit hexadecimal Address H The higher 2 digits when the first word address is displayed in 4 digit hexadecimal Write data response The specified area and write data is returned in order from word L lower byte bits O to 7 to word H higher byte bits 8 to 15 No of bytes received response The number of bytes received from the destination node address remote node is returned in hexadecimal Destination node address response The node address of the CS CJ series DeviceNet Unit that returned the response is returned in hexadecimal The actual address L address H and number of read words that can be spec ified depends on the mode of CPU Unit for the CS CJ series DeviceNet Unit and the type of memory areas Do not exceed the boundary of the data areas for the PC you are using 179 SECTION 7 Other Functions This section describes connecting to CX Programmer via the DeviceNet and the Memory Card backup function 7 1 7 2 Connecting to the CX Programmer via the DeviceNet 182 7 1 1 Setting Node Addresses 0 0 00 00 cece ee eee 183 7 1 2 Setting the Message Monitoring Timer of the DeviceNet Unit 183 7 1 3 Setting the Frame Length when Using the CX P
117. CPU Unit to PROGRAM mode Turn ON the Slave Stop Switch word n 1 bit 07 from the PC Program ming Device to stop slave communications Allocate areas as follows a Set the Slave User Allocation Setup Table m 8 to m 13 words and the Allocation Size Setup Table in the allocated DM Area words from a Programming Device b Turn ON the Slave User Allocations Switch word n 1 bit 11 from a Programming Device Turn ON the Slave Enable Switch word n 1 bit 06 from a Programming Device to enable slave communications Switch the CPU Unit to RUN mode Slave remote I O communications will start up Slave communications must be disabled prior to area allocation and must be enabled after area allocation The order of the procedure is 1 stop slave communications allocate areas and then enable slave communica tions The allocated areas will not be valid if the procedure is done in any other order In fixed allocation or user set allocations through the allocated DM Area settings area allocations must be set with slave communications disabled and will be transferred to Units when slave communications are enabled User set Remote I O Allocations Using the Configurator 124 1 2 3 1 Connect the Configurator to the network through a serial line or dedicated Board Card Turn ON the communications slave and PC power supplies Note Turn ON the communications power supply prior to turning ON the slave power supply or the sla
118. CS series DeviceNet Unit CS1W DRM21 CJ series DeviceNet Unit CJ1W DRM21 Operation Manual Revised July 2001 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 dam age to property NDANGER Indicates an imminently hazardous situation which if not avoided will result in death or serious injury N WARNING Indicates a potentially hazardous situation which if not avoided could result in death or serious injury 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 displays and on some OMRON products often means word and is abbreviated Wd in documentation in this sense The abbreviation PC means Programmable Controller and is not used as an abbreviation for any thing else Visual Aids The following headings appear in the left column of the manual to help you
119. Configurator D06032 2 x unit No 1 bit 15 CIO 1500 25 x unit No 13 Note Allocated as status code Error history D06032 2 x unit No 1 bit 00 CIO 1500 25 x unit No bit 15 of 11 Cannot be accessed from ladder program First word of registered slave table IR 2000 10 x unit No 2 CIO 1500 25 x unit No 16 Only word address changed First word of normal slave table IR 2000 10 x unit No 6 CIO 1500 25 x unit No 20 Message Communications in Ladder Programs Instructions Message communica tions instructions C200HW DRM21 V1 IOWR instructions DRM21 This Unit CS1W Only word address changed Remarks CMND instructions SEND RECV also possi ble for FINS data commu nications Change instructions and message data Instruction execution con ditions Message Communica tions Enabled Flag IR 2000 10 x unit No 1 bit 12 AND condition for 1 Mes sage Communications Permitted Flag CIO 1500 25 x unit No 24 bit 12 and 2 Network Communica tions Enabled Flag A20200 to A20207 Cor respond to ports 0 to 7 Change execution conditions Note The Message Communications Permitted Flag CIO 1500 25 x unit No 24 bit 12 is the same even when online as CIO 1500 25 x unit No 11 bit 00 Note If there is a routing table in the CS CJ series CPU Unit the DeviceNet Unit must be registered in it when replaci
120. Configurator online and read the network file that was previously saved 3 Use the Edit Device Parameters operation specify the DeviceNet Unit that has been replaced and write the settings from the network file to the De viceNet Unit Maintenance and Replacement Section 9 4 1 2 3 Note Creating a New Network File Use the following procedure to write the settings to the DeviceNet Unit from a network file saved on a disk 1 Turn ON power to the DeviceNet Unit slaves and the Configurator Place the Configurator online and display the Device List 3 Specify the DeviceNet Unit that has been replaced and use the Edit De vice Parameters operation to register slaves and allocate I O 4 Write the settings to the devices 1 When using user set remote I O allocations always save the network file to a floppy disk or hard disk to restore operation quickly if the DeviceNet Unit needs to be replaced 2 When the CPU Unit is replaced be sure that all data in the DM Area HR Area and other memory areas is transferred to the new CPU Unit before starting operation 227 Appendix A Allocation Differences from C200H DeviceNet Master Units The following table shows the CS1W DRM21 CJ1W DRMa21 DeviceNet Unit allocation areas that correspond to the C200HW DRM21 V1 DeviceNet Master Unit allocation areas Note The following table does not include the allocation areas that exist only in CS CJ series DeviceNet Units Refer to this
121. G HE PCs and read write data from the Master to the specified words in the CPU Unit e Read and write areas specified for up to 512 bits each 32 words each e Any memory area words can be read or written using DeviceNet explicit messages RS 232C Units e Special I O Slaves that provide two RS 232C ports and control I O from the Masters MULTIPLE I O TERMINALS e Multiple I O Units can be combined under a Communications Unit and treated as a single Slave e Special I O Units such as Analog I O Units and High speed Counter Units are also available Overview of DeviceNet Section 1 1 1 1 2 Applicable Units and DeviceNet Functions Remote I O Master Max No of Slave nodes per Master Master CS Series CS1W DRM21 CJ Series CJ1W DRM21 CVM1 CV Series CVM1 DRM21 V1 DeviceNet Unit Master CPU Unit Slaves Without Configurator With Configurator 63 nodes CS Series C200HX HG HE C200HS C200HW DRM21 V1 50 nodes 63 nodes 32 nodes 63 nodes Max No of control points per Master CS Series CS1W DRM21 CJ Series CJ1W DRM21 2 048 pts 64 input 64 output words or 16 000 pts 500 input 500 output words 32 000 pts 500 words x 4 blocks CVM1 CV Series CVM1 DRM21 V1 2 048 pts 64 input 64 output words 6 400 100 words x 4 blocks CS Series C200HX HG HE C200HS C200HW DRM21 V1 1 600
122. I O memory in the command block format Command Format Example Writing Error Clear Codes to the CPU Unit 162 Note Set in this order starting from the word specified for the CMND 490 operand S first command word and continuing with words with higher addresses 28 01 01 10 00 2F 00 00 65 FE FF L A Jt JK J Y Y Y N Y v Command Service code Code Destination node address Instance ID Service Data Class ID Method for Setting Data from CMND 490 Operand S FINS command code Node address Service Code Class ID Instance ID Service Data Service Data In the same way response data is set from the starting with the word specified for CMND 490 operand D first response word and continuing with words with higher addresses in I O memory in the response block format Service data that is in word 2 byte or double word 4 byte units such as word data and ERROR CLEAR codes is specified from low to high U bytes in command block format For example to specify word data 1234 specify 34 and then 12 To specify 12345678 specify 78 to 56 to 34 to 12 The command blocks are shown in the following diagram Sending Explicit Messages Section 6 4 Command Block Eg For 1234 Service Data Service Data The format from CMND 490 operand S onwards will be set as follows Example 1234 Example 12345678 From higher b
123. MND 490 1 control word Using FINS Message Communications Section 6 3 Note Note Word Bits 00 to 07 Bits 08 to 15 C Number of command bytes to send 0 to 542 i e 0000 to 021E C 1 Number of response bytes to receive 0 to 542 i e 0000 to 021E C 2 Destination network address Set to 0 0 to 127 i e 00 to 7F 0 local network C 3 Destination unit FINS address Destination node address C 4 Bits 00 to 03 Bits 08 to 10 No of retries 0 to 15 Transmission port number i e 0 to F 0 to 7 Bits 04 to 07 Bit 11 to 14 Set to 0 Set to 0 Bit 15 ON No response OFF Response returned C 5 Response monitoring time 0001 to FFFF 0 1 to 6553 5 seconds 1 Indicates a Unit as shown in the following table CPU Unit 00 User program in FA computer 01 CPU Bus Unit 10 to 1F Unit numbers 0 to 15 FE The local Unit Values of 00 to 3E indicate nodes 0 to 63 Designates the length of time in 0 1 s units that the PC retries transmis sion when bit 15 of C 3 is OFF and no response is received The default value is 0000 which indicates 2 seconds If baud rate is slow and the re sponse monitoring time is short an error may occur Explicit messages can be sent to OMRON slaves and DeviceNet devices made by other manufacturers by setting the FINS command code to 28 01 When this is done set the response monitoring time in C 5 to at least the value set for th
124. Manipulating data in data areas and force setting resetting bits CIO Area DM Area EM Area Timer Counter Area Transition Area Step Area MEMORY AREA READ Command code MEMORY AREA WRITE MEMORY AREA FILL MULTIPLE MEMORY AREA READ MEMORY AREA TRANSFER COMPOSITE REGISTRATION READ REGISTER COMPOSITE READ Manipulating parameters PC Setups I O tables rout ing tables etc PARAMETER AREA READ PARAMETER AREA WRITE PARAMETER AREA CLEAR Manipulating program areas PROGRAM AREA PROTECT PROGRAM AREA PROTECT CLEAR PROGRAM AREA READ PROGRAM AREA WRITE PROGRAM AREA CLEAR Controlling operation RUN RUN DEBUG MONITOR modes STOP PROGRAM mode Reading PC model infor mation CONTROLLER DATA READ CONNECTION DATA READ Reading PC status CONTROLLER STATUS READ CYCLE TIME READ 143 FINS Commands and Responses 144 Function Manipulating the PC clock Name CLOCK READ Section 6 2 Command code CLOCK WRITE Manipulating messages MESSAGE READ MESSAGE CLEAR FAL FALS READ Controlling access rights ACCESS RIGHT ACQUIRE ACCESS RIGHT FORCED ACQUIRE ACCESS RIGHT RELEASE Manipulating error data ERROR CLEAR ERROR LOG READ ERROR LOG CLEAR Manipulating File Memory FILE NAME READ SINGLE FILE READ SINGLE FILE WRITE MEMORY CARD F
125. Multiple PCs in a Single Network Multiple DeviceNet Units can be connected in a single network for message communications between PCs as well as for remote I O communications between PCs and slaves in multiple groups This feature allows a DeviceNet to be used as a common bus that can integrate all types of control with less wiring CS CJ series DeviceNet Unit CS CJ series Master Master PC CS Cu series DeviceNet Unit Master Master PC DeviceNet Unit Slave Slave PC Pera eee eR ee i Remote I O Remote I O Note Refer to 4 1 Master Remote I O Communications for details Multiple DeviceNet Units on a Single PC Up to 16 CS CJ series DeviceNet Units can be mounted to a single PC This feature enables greater DeviceNet remote I O control capacity and ensures that DeviceNet can easily handle line expansion as well as other applications CS Cu series DeviceNet Unit master See note 1 DeviceNet CS CJ series DeviceNet Unit master CS CJ series DeviceNet Unit slave See note 2 CS Cu series DeviceNet Unit master See note 1 Note DeviceNet Unit Setup Files Memory Card Backup _ Multiple Units can be mounted without the Configurator 2 DeviceNet Units set as both slaves and or masters can be mounted at the same time 3 Refer to 4 7 Master Remote I O Communications for details Setup data e g scan lists in a DeviceNet Unit can be written
126. O n 24 Bit 14 Error Flag and bit 07 Comparison Error Flag will be ON CIO Area Flags Allocated to DeviceNet Unit Bit 00 of n 12 Comparison Error Flag and bits 00 and 01 of n 10 Unit Error Flag and Master Function Error Flag will be ON Correction Inspect the slave and then create the scan list again 7 segment Error log Hen Red ashing oa Likely Cause The Configurator is set to check the product code and the slave s product code does not match the registered scan list Occurs with the scan list enabled 20 97 Troubleshooting with the DeviceNet Unit Indicators Section 9 1 Verification Error Unsupported Connection Remote I O Communications Error 206 DeviceNet Unit Response Records the error in the error log The master will periodically attempt to reconnect with the slave with the verifi cation error Flags Allocated for C200H DeviceNet Master Unit CIO n 24 Bit 14 Error Flag and bit 07 Comparison Error Flag will be ON CIO Area Flags Allocated to DeviceNet Unit Bit 00 of n 12 Comparison Error Flag and bits 00 and 01 of n 10 Unit Error Flag and Master Function Error Flag will be ON Correction Inspect the slave and then create the scan list again Error Tog Hex ei i ommo oa Likely Cause The device does not support the I O service specified in the scan list Occurs with the scan list enabled DeviceNet Unit Response Records the error in the error log The master
127. ORMAT FILE DELETE VOLUME LABEL CREATE DELETE FILE COPY FILE NAME CHANGE FILE DATA CHECK MEMORY AREA FILE TRANSFER PARAMETER AREA FILE TRANSFER PROGRAM AREA FILE TRANSFER Force setting resetting bits FORCED SET RESET FORCED SET RESET CANCEL Refer to SYSMAC CS CJ Series Communication Commands Reference Man ual W342 for information on FINS commands addressed to CS CJ series PCs Using FINS Message Communications Section 6 3 Commands Addressed to DeviceNet Units Command code Name Page RESET CONTROLLER DATA READ CONTROLLER STATUS READ ECHOBACK TEST ERROR LOG READ ERROR LOG CLEAR Command to Send Explicit DeviceNet Messages Name Command code 28 01 EXPLICIT MESSAGE SEND 6 3 Using FINS Message Communications There are two instructions that can be executed to send and receive data from CS CJ series CPU Units SEND 090 and RECV 098 There is another instruction that can be executed to send any FINS command CMND 490 6 3 1 Setting Node Addresses Set the nodes for FINS message communications to node addresses other than 0 Node address 0 has a special meaning local node in message com munications If 0 is set as a node address for the Unit message communica tions will not be possible 6 3 2 Creating Routing Tables The DeviceNet Unit functions as a Communications Unit in the same way as the SYSMAC LINK Uni
128. OUT 2 area Not used e IN 2 area Not used Note Same as notes 1 to 3 for bit 08 Returns to OFF after fixed allocations have been set Slave Fixed Allo cation set ting 3 switch Allocates the following words to the slave e OUT 1 area input to the CPU Unit CIO 3770 1 word allocated e IN 1 area output from the CPU Unit CIO 3670 1 word allocated e OUT 2 area Not used e IN 2 area Not used Note Same as notes 1 to 3 for bit 08 Returns to OFF after fixed allocations have been set Default setting Slave Fixed Alloca tion set ting 1 enabled 67 Allocated CIO Area Words Section 3 2 Bit Name Slave User Alloca tions Switch Status Con trolled by Unit operation Reads setup data from the Slave User Allocations Setup Table in the DM Area and registers slave user set alloca tions Once registered the Unit will operate with slave user set allocations regardless of whether the power is turned OFF and back ON again until slave communications are disabled i e until Slave Disable Switch word n 1 bit 07 is turned ON Slave communications must be disabled before this switch is turned ON Note After the switch is turned ON turn the Slave Enable Switch word n 1 bit 06 ON to enable user set allocations Returns to OFF at the start of operation for slave user set allocations Note The Slave Function Enable Stop Failed Flag word n 1
129. READ command Operation e The PC with DeviceNet Unit 1 with node address 5 reads the data from the 5 words D01000 to D01004 from the PC with DeviceNet Unit 2 with node address 06 e The MEMORY AREA READ command 01 01 is used to read variable data e Command data is written starting from D01000 in the PC with De viceNet Unit 1 with node address 5 and the response data is written starting from D02000 e The completion code is stored in D00006 when execution of SEND has been completed Command Details The following command is used CMND S D C S D01000 First command word at local node Settings Hex D01000 0101 Command Code D01001 8203 Command parameters D01002 E800 Command parameters D01003 0005 Command parameters D D02000 First response word at local node C D00000 First control word Settings Hex D00000 0008 Number of command bytes D00001 000E Number of response bytes D00002 0001 Destination network address D00003 0600 Destination node address 06 Destination unit address 00 CPU Unit D00004 0000 Response communications port 0 no retries D00005 0064 Response monitoring time 156 Using FINS Message Communications Section 6 3 Example Program A500 Ta 071 BSET 0000 D00000 First Scan Flag 021 MOV 0008 021 MOV 000E 021 MOV 0001 021 MOV 0600 021 MOV 0000 021 MOV 0064 021 MOV 0101 021 MOV
130. S CJ series DeviceNet Unit Master CS CJ series CPU Unit OUT area CS CJ series CPU Unit OUT area CS CJ series DeviceNet Unit Slave nean a Slaves Note 1 In the following descriptions the areas used to transfer data from the mas ter to the slaves are called OUT areas and the areas used to transfer data from the slaves to the master are called the IN areas 2 Inthe following descriptions a CS CJ series DeviceNet Unit set to function as a master is referred to as a Master Unit and a CS CJ series DeviceNet Unit set to function as a slave is referred to as a Slave Unit 5 1 1 Allocation Methods All slaves are allocated words in the I O memory of the CPU Unit to which the Master Unit is mounted They are allocated using one of the following meth ods 1 Fixed allocations 2 User set allocations 122 Slave Remote I O Communications Section 5 1 5 1 2 Remote I O and Slave Communications Specifications tem Specifications O S Specifications Select one of the following fixed allocation areas using the Slave Fixed Allocated Area Switches 1 2 and 3 in the software switches in the allocated CIO Area words Allocation method Fixed allo cations Allocated words CIO Area 1 0 Size Fixed Allo cation Area Setting 1 Fixed Allo cation Area Setting 2 Fixed Allo cation Area Setting 3 Output OUT area 1 word 3370 3570 3770 to
131. Sending Explicit Messages Section 6 4 6 4 1 Sending Explicit Messages The FINS command code 28 01 can be used to send explicit DeviceNet mes sages to OMRON slaves and DeviceNet devices made by other manufactur ers The use of explicit messages is illustrated in the following diagram Slave or Master DeviceNet De by other CPU Unit viceNet Unit manufacturer Explicit FINS FINS Explicit message header a A header message ICMND 490 DeviceNet Use 28 01 for the network FINS command code FINS FINS Response Response header call header p The local DeviceNet Unit is specified as the destination in the communica tions instruction in the PC s user program not the OMRON Special Slave or DeviceNet device made by another manufacturer and the node address of the actual destination i e the Slave or Master made by another manufac turer is specified in the command data for the explicit message send com mand FINS command CMND Control data in C 3 Destination node address Local node address Destination unit address Unit No of DeviceNet Unit 10 Hex Explicit message Slave or Master not by OMRON 159 Sending Explicit Messages Section 6 4 The following diagram shows an example of actual node address specifica tions M Machine No of DeviceNet Unit 2 The node address of the non OMRON node is set as the see destination node address in the FINS command data
132. Servicing is normally monitored at 11 s DeviceNet Unit Response e Records the error in the error log e Stops master and slave remote I O communications Performs the following processing if it receives FINS frames that must be passed along to the CPU Unit e Returns an error response 0302 Hex to commands requiring a re sponse e Discards other frames and stores an error record 010B Hex in the er ror log Note There is a possibility that this error will occur again If it does occur again restart remote I O communications to return the system to normal operation Flags Allocated for C200H DeviceNet Master Unit CIO n 24 There is no status notification because communications with the CPU Unit are disabled CIO Area Flags Allocated to DeviceNet Unit There is no status notification because communications with the CPU Unit are disabled Correction Inspect the CPU Unit s operating environment Error log Hex Red lashing o ooo Likely Cause An error occurred in the CPU Unit The CPU Unit s watchdog timer error can occur during initialization DeviceNet Unit Response e Records the error in the error log e Stops master and slave remote I O communications Performs the following processing if it receives FINS frames that must be passed along to the CPU Unit Troubleshooting with the DeviceNet Unit Indicators Section 9 1 CPU Unit Fatal Error Output OFF Error Slave Errors Remote I O Communication
133. The C200HW DRT21 1 O Link Unit also contains a PLC Object so that the I O memory of the CPU Unit of the I O Link Unit can be read written from other devices The C200HW DRM21 V1 and CVM1 DRM21 V1 DeviceNet Master Units however do not have PLC Objects the I O memory of the CPU Unit for these Units cannot be read or written from other devices 6 1 4 Message Communications Specifications po tem Specification S Applicable PC CS CJ series Unit model number CS1W DRM21 CJ1W DRM21 Max No of communica FINS mes 62 node address 0 cannot be used for FINS communications tions nodes per Unit sages Explicit mes 63 sages Communications instruc Sending SEND and RECV instructions tions receiving data FINS com CMND 490 instruction mands There are FINS commands addressed to the PC and others addressed to the CS CJ series DeviceNet Unit Note FINS commands can be sent to PCs with CS CJU series DeviceNet Units mounted to them FINS commands cannot be sent to PCs with C200HW DRM21 V1 or CVM1 DRM21 V1 DeviceNet Master Units mounted to them Explicit CMND 490 instruction DeviceNet Sends explicit messages to masters slaves made by other manufacturers messages PCs with C200H I O Link Units or PCs with CS CJ series DeviceNet Units mounted to them Sources destinations 1 1 Broadcasting is not supported Data length excluding command code SEND 267 words max RECV 269 words max CMND 542 bytes ma
134. The fixed allocations used the last time the scan list was disabled will be used OFF Unit Returns to OFF when the scan list data is cleared and the Unit starts operating with the scan list disabled Pro gram mode En abled En abled Scan list dis abled 61 Allocated CIO Area Words Section 3 2 Bit Name Remote O Com munica tions Start Switch Status Con trolled by Unit operation Starts remote I O communications Note 1 The switch is ignored if remote I O commu nications are already running 2 This switch is used to restart remote I O communications if they are stopped by a communications error Communications with a slave will fail even if remote I O communications are started if the Disconnect Connect Switch corre sponding bit in words n 6 to 9 is ON 1 Connect Returns to OFF at the start of remote I O communica tions Note This switch will stop remote I O communications if DIP switch pin 3 on the front panel remote I O communications start stop with a communica tions error is ON stop and there is an ongoing communications or send error Operation condi tions CPU Mas Scan Unit ter list oper func sta ating tion tus mode Remote I O Communi cations Start Switch This switch functions the same as bit 02 above Note This switch is used to ensure compatibility between the software switche
135. U Units Services Service code CPU Unit Informa tion Read CPU Unit Write CPU Unit Status Read 166 Class ID Instance ID Request service data Attribute ID 64 Hex Contents Reads the operating mode of the CPU Unit Attribute ID 65 Hex Reads if there is a fatal or non fatal error in the CPU Unit Attribute ID 66 Hex Reads CPU Unit model Attribute ID 64 Hex Attribute Value Changes the operating mode of the CPU Unit Attribute ID 65 Hex Attribute Value Clears errors None Reads the detailed status of the CPU Unit Operation status Stop run CPU standby Operating modes PROGRAM MON ITOR RUN Fatal error information Error flags including memory errors I O bus errors system errors Messages Message No when MSB instruction executed by CPU Unit Error codes Error code for the most serious errors Error messages Messages stored in CPU Unit when FAL FALS instruction executed Receiving Explicit Messages Section 6 5 O Memory Read Write for CPU Units Service Service Class ID Instance ID Request Contents code service data Byte Data Read Specifies Address No Reads the specified node data in byte units area 01 Hex of read bytes The word data is read in order from high to to 14 Hex low bytes Read data 200 bytes max Word Data Address No Reads the specified node data in word Read of read units T
136. V1 PCs with CVM1 CV series DeviceNet Master Units CVM1 DRM21 V1 PCs with CS CJ series DeviceNet Units and DeviceNet masters made by other manufacturers using explicit messages 137 Overview Section 6 1 Note A specific FINS command command 2801 is used to send explicit mes sages Sending Receiving Network commu CMND 490 using FINS command code 2801 Hex Automatically responds to explicit messages nications instruc can be used to send explicit messages to from other devices tion DeviceNet devices See note Remote devices Masters slaves made by other manufacturers Sup Masters made by other manufacturers and supported ported services determine supported functions PCs with CS CJ series DeviceNet Units functions PCs with CS CJ series DeviceNet Units mounted pcs with C200H series DeviceNet Master Units Remote CPU Unit status read write and I O memory PCs with CVM1 CV series DeviceNet M read write functions supported fee series DeviceNet Master P i i i i Gs withy C200F O Link Units mounted Remote All listed devices support status read write and m PO MeO ON ed Mite TOngNGNESUp O memory read write for the local CPU Unit Note A specific FINS command command 2801 is used to send explicit messages Note This CS CJ series DeviceNet Unit CS1W DRMa21 or CJ1W DRM21 contains a PLC Object so that the I O memory of the CPU Unit of the DeviceNet Unit can be read written from other devices
137. W DRM21 status ON OFF Unit Memory Error Flag Switch Set ting Error or EEPROM Error Flag This is the same as a Unit memory error word n 10 bit 04 Note This bit is also used for incorrect switch settings for the C2Q00OHW DRM21 V1 The Unit will not start if the switch settings are incorrect Node Address Duplicated Bus Off Flag ON OFF Node Address Duplicated Bus Off Flag This bit turns ON if any one of the following flags turns ON Node Address Duplicated Flag word n 10 bit 06 e Bus Off Flag word n 10 bit 05 Reserved by system Reserved by system Reserved by system 79 Allocated CIO Area Words Section 3 2 Bit Name Configura tion Error Flag Status ON OFF Controlled by C200HW DRM21 V1 status Configura tion Error Flag Details and CS1W DRM21 status This bit turns ON if any of the following flags turn ON e Routing Table Error Flag word n 10 bit 12 e Invalid Message Timer List Flag word n 10 bit 13 e Invalid Scan List Data Flag word n 12 bit 04 e Remote I O Refresh Error Flag word n 12 bit 05 Note The C200HW DRM21 V1 does not support slave communications Scan list data errors for slave communications are not relevant Structure Error Flag ON OFF Structure Error Flag This is the same as the Structure Error Flag in word n 12 bit 01 Send Error Flag ON OFF Send Error Flag This bit tur
138. a slave that is allocated multiple words has one of the words allocated to the node address of another Slave I O area range exceeded A slave is allocated an area out side the fixed allocations area This occurs whenever slaves are allocated multiple words and a slave is allocated a word beyond node address 63 in the fixed allo cations area Unsup ported Slave The I O size of a slave exceeds 200 bytes 100 words This occurs if either the IN or the OUT size exceeds 200 bytes Error occurs in either fixed or user set allocations with the scan list enabled 118 Verification Error Flag word n 12 bit 00 turns ON No slaves present A Slave registered in the scan list is not present I O size mis matched The I O size registered in the scan list does not match the I O size of the slave Note _ O size is compared in 8 point 1 byte units If 1 O size is registered at 8 points for example then an error I O size mismatch will not occur with a Slave with just one input point con nected Incorrect vendor The vendor registered in the scan list does not match the slave ven dor Incorrect device type The device type registered in the scan list does not match the slave device type Incorrect product code The product code registered in the scan list does not match the slave product code Incorrect connection bus The connection bus registe
139. able operation DeviceNet Unit Response The only response is the error code displayed on the 7 segment display The error display will be cleared the next time that a settings operation is com pleted normally Correction Change the Unit s status to allow the operation and try the operation again Error Tog Hex Gi oo se ge 207 Troubleshooting with the DeviceNet Unit Indicators Section 9 1 Incorrect Setting Multiple Switches ON Network Errors Network Power Error 208 Note Likely Cause The setting operation failed because a structure error occurred DeviceNet Unit Response The only response is the error code displayed on the 7 segment display The error display will be cleared the next time that a settings operation is com pleted normally Correction Correct the cause of the structure error See errors dO to d2 7 segment Error log Hex 5 i Likely Cause There was an error in the parameters specified in the user settings and the requested settings could not be made DeviceNet Unit Response The only response is the error code displayed on the 7 segment display The error display will be cleared the next time that a settings operation is com pleted normally Correction Check the parameters in the user settings and try the operation again 7 segment Error log Hex 6 i Likely Cause Two or more software switches were ON simultaneously or a second software switch was turned ON b
140. ace error or routing table error Correct the error and reset the Unit Power isn t being supplied or the Unit is being reset The Unit is online with the network and remote I O com munications have been established with a slave regis tered in the scan list or message communications have been established Flashing The Unit is online with the network but neither remote I O communications nor message communications have been established Either the scan list is being read or both remote I O communications and message commu nications are disabled ON A fatal communications error has occurred Network communications are not possible Node address duplicated or Bus Off error Flashing A non fatal communications error has occurred Com munications error setup error or verification error OFF The Unit is not online with the network There is no network power supply the Unit is being reset a minor failure or a sending error has occurred 47 Nomenclature and Functions Section 2 1 2 1 3 Seven Segment Display 48 In addition to the MS and NS indicators DeviceNet Units have a 2 digit 7 segment display that normally indicates the master node address When an error occurs the display will alternate between the error code and the node address of the faulty slave There are dot indicators at the lower right corner of each digit The left dot indicator shows whether
141. ails refer to the DeviceNet Configurator Operation Manual W382 33 Outline of the Configurator Section 1 5 Main functions of _ Configurator m Setup functions a m Remote I O master allocations with creation of a scan list and remote I O slave allocations m Enabling or disabling master or slave function of CS CJ series DeviceNet Unit Setting master device parameters except scan list parameters i e connection settings device data checks and communications cycle time Setting other manufacturers slave and master device parameters Displaying a device information list M Monitoring functions Monitoring master status Unit status Master error logs and communications cycle data Saving offline device information prepared with master device Storage functions parameters or online network device information Data is saved Note 1 as network configuration files Master device parameters used in a scan list are created with either of the following methods a Using the Parameter Wizard b Setting all parameters Connect only one Configurator to each Network Do not use the Configurator in a location with too much electromagnetic noise particularly when using a PCMCIA Card If noise is too extreme the computer may run out of control although there will be no negative effects on the DeviceNet network even if noise causes the computer to run out of cont
142. alog sensors Inverters Thermocouple etc valves etc platinum resistance Bar code thermometer readers etc Note The Configurator is required if more than one Master is connected in a single network when a CVM1 DRM21 V1 or C200HW DRM21 V1 is used Master Features DeviceNet Master Units and DeviceNet Units Support remote I O communications between OMRON PCs CS series CJ series CVM1 CV series or C200HX HG HE HS and slaves Support message communications between OMRON PCs or between an OMRON PC and slaves and masters from other companies VME Master Boards Supports remote I O communications between a VME System and slaves Overview of DeviceNet Section 1 1 Configurator Features e Enables user set allocations for remote I O choice of node address order 2 area allocations etc e Enables serial connection to the Programming Device Port of a PC e Enables user settings for DeviceNet remote I O communications connec tions e Enables multiple Masters on a single PC e Enables multiple Masters in a single network Slave Features I O Terminals e Provide general purpose I O via terminal blocks M3 e Available in the following models e 8 point Transistor Input Terminal 16 point Transistor Input Terminal e 8 point Transistor Output Terminal e 16 point Transistor Output Terminal Environment resistant Terminals e Improved I O Terminals that conform to IP66 for spatter water and oil resistance e
143. also communications replacement 226 replacing ladder programs 233 See also setup routing tables 146 local network tables 146 relay network tables 147 RS 232C Units 5 12 265 Index S safety precautions xii scan lists 99 errors 224 setup saving setup files 19 186 247 seven segment display meaning 48 Slave Units 7 9 20 communications time 191 connecting an OMRON slave to another company s con figurator 251 connecting another company s slave to an OMRON mas ter 251 environment resistant 12 errors 217 faulty node address display 48 general purpose 10 T O allocations 85 See also I O allocations monitoring 18 multiple 19 programmable 12 programming 18 remote I O communications 122 procedures 123 specifications 25 123 See also adaptors See also I O Link Units See also I O Terminals See also MULTIPLE I O TERMINAL Units See also RS 232C Units See also terminals special 12 status 89 system startup time 196 user set allocations reference table 88 using slave function 39 water resistant 12 specifications default settings 26 general 21 network length 20 other functions 27 remote I O 24 25 95 startup procedures communications 38 startup times 195 status areas comparison with previous models 230 indicators 47 Master Unit 200 read write for CPU Units 166 switches 27 46 procedures prior to starting communications 38 settings 49 errors 224 software swit
144. an List Contents The contents of the scan list is listed in the following table When a Master Unit goes online it compares each of these items with the slaves that are actually connected to the network The items that are compared however will Node address depend on the allocation method that is used Description Node address for every Slave Fixed allocations Compared User set allocations using allocated DM Area words User set allocations from the Configurator Compared Allocated IN OUT sizes and allocation Settings of the num ber of bytes allocated to every slave in a data area of the Master Unit Compared Compared Vendor Unique manufacturer ID Not compared Set from Configurator Device type Unique product type value Not compared Set from Configurator Product code Unique product model value Not compared Set from Configurator Connection type Applicable DeviceNet protocol See Appendix B DeviceNet Connec tions for details Automatically set Automatically set or set from Configurator Connection path Type of slave I O data See Appendix B DeviceNet Connec tions for details Cannot be set Set from Configurator 99 Scan List Section 4 2 Creating the Scan List Note The way that a scan list is prepared varies with the allocation method as shown below Fixed allocations With the CPU Unit in PRO
145. are recorded in EEPROM as well as RAM The error log records in EEPROM are retained even when the Unit s power is turned OFF or the Unit is restarted The error log records in EEPROM are copied to RAM when the DeviceNet Unit is turned ON When the error log is read with a FINS command or from the Configurator only the error log records in RAM are read When the error log is cleared with a FINS command or from the Configurator the error log records in RAM and EEPROM are erased Refer to 9 2 2 Error Codes and Detail Codes for a table listing the error codes The error log table can be read or cleared by sending a FINS command to the DeviceNet Unit Use the DeviceNet Units unit address as the FINS com mand s destination unit address The unit address is the unit number 10 Hex Refer to the SYSMAC CS CJ Series Communication Commands Reference Manual W342 for details on using the FINS commands Refer to the Appen dix E FINS Commands and Responses for DeviceNet Units for details on FINS commands addressed to the DeviceNet Unit Error Log Functions Section 9 2 When using the Configurator the error log can be monitored with the master error history read operation With the Configurator the error log can only be monitored and the data cannot be saved Time Information The CPU Unit s time information is used for the time stamps in the DeviceNet Unit s error log records If the time information cannot be read from the CPU Unit t
146. aster Slave Slave code status status 1 status2 function function function function status 1 status 2 status 1 status 2 End Codes End code hex Contents Normal end Command length exceeds maximum command length Service cannot be executed Parameter Details Operation status Units status 1 Unit status 2 Master function status 1 Mas ter function status 2 Slave function status 1 Slave function status 2 response e Operation Status Fixed at 01 hex e Units status 1 Unit status 2 Master function status 1 Master function sta tus 2 Slave function status 1 Slave function status 2 The same value as the status in the allocated CIO Area words is returned ECHOBACK TEST 0801 Performs an echo back test communications test between nodes between specified nodes Command Block 538 bytes max 08 0i Command _ Test data code Response Block a E bytes max Command End code Test data code End Codes End code hex Contents Normal end Command length exceeds maximum command length The command length is insufficient for the smallest command There is no test data Parameter Details Test Data Command Response 243 FINS Commands and Responses for DeviceNet Units Appendix C For commands the data to be sent to the specified node is specified with a maximum of 538 bytes For responses The test data that was sent by the command is
147. aster Unit Master Unit Slave Slave Note Use Configurator Ver 2 10 or later for the CJ1W DRM21 Example of User set Allocations Using the Configurator Allocation status OUT area IN area Node OUT block 1 IN block 1 address Output Input 15 00 15 00 00 16 pts Opts CIO 1950 Allocation 00 CIO 1900 Allocation 02 01 8 pts 8pts CIO 1951 Allocation 01 Not used CIO 1901 Allocation 01 Allocation 03 02 16 pts 16 pts CIO 1952 Allocation 02 03 0 pts 8pts ClO 1953 Allocation D 40 10 32 pts Opts CIO 1954 Allocation f NSdress Output Input 15 QUT block 00 15 IN BISERA 00 04 0 pts 48 pts 01000 Notused Allocation 12 10 wd Allocation gt 09 0 pts 8 pts 11 wd Allocation gt 04 12 8 pts 16 pts 12 wd Allocation j 13 wd Not used 14 wd Allocation 12 15 wd Not used Allocation 09 115 Starting and Stopping Remote I O Communications Section 4 5 Configurator Setting Methods Refer to the DeviceNet Configurator Operation Manual W382 for setting methods 4 5 Starting and Stopping Remote I O Communications 4 5 1 Starting Remote I O Communications Remote I O communications start automatically after the power is turned ON or the Unit is restarted The I O Data Communications Flag word n 12 bit 15 is turned ON when remote I O communications is started with at least one slave 4 5 2 Stopping Remote I O Comm
148. aster Units can be used User set alloca By DM Area words O See note O tions By Config urator O See note Precautions 96 Same as previous net works e The communications cycle time is longer Note The communications cycle time for the network in the figure above is TA TB if sections A and B above are separate networks with a communications cycle time of TA and TB Multiple Master Units cannot share a single Slave Unit Bus Off errors communications stopped by multiple transmis sions may occur if multiple Master Units with disabled scan lists are present on a single net work The cycle time of the PC is long er Make sure that each word allo cated in the system is allocated to only one Master Unit Note Only one Master Unit can be connected to a network if the user specifies a COS or cyclic connection from the Configurator Remote I O communications errors may occur is more than one Master Unit is connected for a COS or cyclic connection Master Remote I O Communications Section 4 1 4 1 4 Procedure for Using Remote I O Master Fixed Allocations for Remote I O 1 2 3 1 8 Turn ON the communications slave and PC power supplies Note Turn ON the communications power supply prior to turning ON the slave power supply or the slaves may not go online Switch the CPU Unit to PROGRAM mode Turn ON the Master Enable Switch word n bit 06 The
149. at master communications are enabled Unit is operating as a Master default setting Indicates that master communications are disabled Scan List Disabled Flag Indicates that the Unit is operating with the scan list disabled default set ting Indicates that the Unit is operating with the scan list enabled Reserved by system Automatic Slave Connection Flag Indicates that the connection type was automatically set in the slave scan list This flag is valid only with slave communications enabled Indicates that the connection type was set from the Configurator in the slave scan list Note The type of connection in slave communications cannot be speci fied without the Configurator If it is not set from the Configurator it will be set automatically Slave Func tion Enabled Flag Indicates that slave communications are enabled Indicates that slave communications are disabled default setting File Read Write Error Flag Indicates that an error has occurred when user setup data is read from a Memory Card in the CPU Unit or when data is written as a file to a Mem ory Card Indicates that the error has not occurred Turns OFF when the Unit has successfully completed the operation Reserved by system Error His tory Flag Indicates that an error history has been registered Turns ON at the first error history for the Unit Indicates that no err
150. ata from the Communications Cycle None rary Set ON Time Setup Table word m in the DM Area and tempo ting rarily changes the cycle time The settings are not Switch for stored in non volatile memory in the Unit and will not Commu be valid again if the power is turned OFF and back ON nications or if the Unit is restarted Cycle Use this to temporarily extend the communications Time cycle time with a ladder program to place priority on message communication Note The cycle time can be changed in any CPU Unit operating mode OFF Unit Returns to OFF after the communications cycle time is changed The Communications Cycle Time Reference Table words m 15 to m 18 will be cleared before the switch returns to OFF if the change was successfully com pleted Note The Communications Cycle Time Setting Failed Flag word n 12 bit 12 turns ON if there is a setting error and the Communications Cycle Time Reference Table words m 15 to m 18 will not be cleared 13 Commu OFF User Reads setup data from the communications cycle time Pro _ None nications ON setup table word m in the DM area to change the gram Cycle communications cycle time and to store the communi mode Time Set cations cycle time in non volatile memory in the Unit ting The settings will therefore be valid again if the power is Switch turned OFF and back ON or if the Unit is restarted OFF Unit Returns to OFF after the communications cycle time is 64
151. ation disabled for other slaves Address 8 of IN area already allocated Allocation disabled for other slaves Address 8 of IN area already allocated Allocation disabled for other slaves Address 8 of IN area already allocated 1 Can be used as an internal work word 2 Cannot be used as an internal work word Address 0 allocated 1 byte leftmost byte allocation disabled Allocation disabled for other slaves Address 1 of OUT area already allocated Address 2 allocated 1 word Allocation disabled for other slaves Address 3 of OUT area already allocated Address 4 al Address 5 al located 1 byte leftmost byte allocation disabled located 1 word Allocation disabled for other slaves Address 6 of OUT area already allocated Allocation disabled for other slaves Address 6 of OUT area already allocated Address 8 al Same as above located 4 words Same as above Same as above Allocation disabled for other slaves Allocation disabled for other slaves 1 Can be used as an internal work word 2 Cannot be used as an internal work word Turn ON the Scan List Enable Switch word n bit 00 ClO 150000 in this example This will create a scan list based on data for slaves that are actually online and will start remote I O communications with the scan list enabled User set Allocations Section 4 4 4 4 User set Allocations User set Allocations Methods Method Allocation areas W
152. ation is successfully completed Allocated CIO Area Words Section 3 2 Bit Name Fixed Allocation Area Setting Failed Flag Status Controlled Unit operation by Indicates that an error has occurred in one of the following operations e Fixed Allocation Setting 1 word n bit 08 e Fixed Allocation Setting 2 word n bit 09 e Fixed Allocation Setting 3 word n bit 10 Once this bit turns ON it will remain ON until the operation is successfully completed Indicates that the error has not occurred The bit turns OFF when the operation is successfully completed Scan List Register Clear Failed Flag Indicates that an error has occurred in one of the following operations e Scan list enabled word n bit 00 e Scan list clear word n bit 01 Once this bit turns ON it will remain ON until the operation is successfully completed Indicates that the error has not occurred The bit turns OFF when the operation is successfully completed Communica tions Cycle Time Setting Failed Flag Indicates that an error has occurred when setting the communications cycle time word n bit 12 Once this bit turns ON it will remain ON until the next communications cycle time is set Indicates that the error has not occurred The bit turns OFF when the operation is successfully completed Reserved by system I O Data Communica tions Flag Indicates that at least one slave is performing
153. ations Setup Table 0 00 Communications Cycle Time Reference Table Master User set Allocations Reference Table Slave User set Allocations Reference Table Slave Detailed Status 58 59 59 60 60 65 69 69 71 72 74 75 76 78 78 79 81 81 82 84 85 87 87 88 89 57 Overview of Word Allocations Section 3 1 3 1 Overview of Word Allocations The words shown in the following diagram are allocated according to the unit number setting For each Unit there are 25 words allocated in the CIO Area and 100 words allocated in the DM Area First word allocated in the CIO Area n CIO 1 500 25 x unit number First word allocated in the DM Area m D30 000 100 x unit number CPU Unit DeviceNet Unit g CPU Bus Unit Unit number 0 CIO Apa ae 5 ern tect ed fe coe es utes e nee Se Local memory cloiso0f Software switches pe clo15oij oo aE Unit 0 25 wds I O refresh status ClO 1524 dee DO E CIO 1525 _ SSS CIO 1526 __ Unit 1 CIO 1549 CIO 1875 S bea Unit 15 cio 1899 MMM CPU Bus Unit Allocated DM Area words f ooo oaaao a J L Local memory setup tables Po i 9 Unit 0 I O refresh status oe 4 100 wds RE SOSON AAPS re o e aa Unit 1 Unit 15 Note The CPU Bus Unit Setup words are not used with a CS CJ series DeviceNet Unit 58 Overview of Word Allocations
154. ations are enabled turn ON the Slave Stop Switch word n 1 bit 07 4 Turn ON the Slave Fixed Allocation Area Settings 1 to 3 Switches word n 1 bits 8 to 10 5 Turn ON the Slave Enable Switch word n 1 bit 06 from a Programming Device connected to the CPU Unit Note Execute this only when slave communications are turned OFF If the Slave Enable Switch is turned ON when slave communications are enabled a Unit error will occur and a C2 error will be displayed on the 7 segment display on the front panel 6 Switch the CPU Unit to RUN mode Slave remote I O communications will begin User set Allocations Using Allocated DM Area Words Use the following procedure to set allocations using the words allocated to the Unit in the DM Area Refer to 5 3 User set Allocations for details on user set allocations 1 2 3 1 Switch the CPU UNit to PROGRAM mode 2 Check Unit Status 2 word n 11 bit 07 from a Programming Device con nected to the CPU Unit to see if the slave function is OFF disabled If it is disabled skip step 3 below and proceed to step 4 3 If Slave is enabled turn ON the Slave Stop Switch word n 1 bit 07 4 Input data in advance into the Slave User Allocation Setup Table words m 8 to m 13 5 Turn ON the user Slave User set Allocation Switch word n 1 bit 11 6 Turn ON the Slave Enable Switch word n 1 bit 06 from a Programming Device connected to the CPU Unit Note Execute this only when slav
155. ations in the Unit will stop Slave operations and message communications will continue Indicates that the scan list data is correct Turns OFF when an incorrect scan list data error occurs and then the cor rect scan list is registered Remote I O Refresh Error Flag Indicates that the I O memory in the CPU Unit that is to be refreshed is not present during I O refreshing for the master It occurs in several situations such as when an I O area is allocated in an EM bank that is not present Indicates that no master I O refresh errors have occurred Reserved by system Master Function Enable Disable Failed Flag Indicates that an error has occurred in one of the following operations e Master enable word n bit 06 e Master stop word n bit 07 Once this bit turns ON it will remain ON until the operation is successfully completed Indicates that the error has not occurred The bit turns OFF when the operation is successfully completed User Allocation Area Setting Failed Flag Indicates that an error has occurred in one of the following operations e Master user set allocations user setting word n bit 11 Once this bit turns ON it will remain ON until the operation is successfully completed Details on the master user set allocation results are output to the Master User Allocations Setup Table Indicates that the error has not occurred The bit turns OFF when the oper
156. atus error will occur and a C2 error will be displayed on the 7 segment display The 7 segment display will go out automatically after 30 seconds OFF Unit Returns to OFF at the start of master communications 07 Master OFF User Stops master communications The Unit automatically Pro En Stop ON restarts gram abled Switch Turn this switch ON if the Unit will be used only for mode slave communications OFF Unit Returns to OFF after master communications stop 08 Master OFF User Allocates the following words for use when the scan list Pro En Dis Master Fixed ON is disabled default setting The Unit automatically gram abled abled Fixed Alloca restarts mode Alloca tion Set e OUT area CIO 3200 to CIO 3263 1 word 1 node ad tion ting 1 dress Setting Switch f 1 e IN area CIO 3300 to CIO 3363 1 word 1 node ad bled dress Shere Note The I O words used with the scan list disabled are also used with the scan list enabled Use the Scan List Enable Switch word n bit 00 OFF Unit Returns to OFF after the fixed allocation areas are set 09 Master OFF User Functions the same as bit 08 to allocate the following Pro En Dis Fixed ON words The Unit automatically restarts gram abled abled Allocation e OUT area CIO 3400 to CIO 3463 1 word 1 node ad Mode Setting 2 dress aan IN area CIO 3500 to CIO 3563 1 word 1 node ad dress OFF Unit Returns to OFF after the fixed allocation area
157. before changing the unit number setting 5 Ifthe unit number is the same as one set on another CPU Bus Unit con nected to the same PC a duplicate number error will occur in the PC and it won t be possible to start up the DeviceNet network Node Address Switches Use these switches to set the node address of the Unit CS1W DRM21 CJ1W DRM21 c lt B gt Setting method Two digit decimal Kes xio Sd XO ee x10 81100 Setting range O to 63 49 Nomenclature and Functions Section 2 1 DIP Switch 50 Note Note 1 The node address is set to 63 at the factory 2 Any node address from 0 through 63 can be set as long as it hasn t been set on another slave node 3 If the node address is the same as one set on another node a node ad dress duplication error will occur and it won t be possible to start up net work communications 4 Node address 0 cannot be used for FINS message communication Use a node address other than 0 for FINS message communication The DIP switch on the front of the DeviceNet Unit is used to set the baud rate whether communications will be continued or stopped when a communica tions error occurs and whether to hold or clear the remote outputs when a communications error occurs in the slave function CS1W DRM21 Baud rate Z HL Continue stop communications for communications error when used as a master Hold clear I O for communica
158. bled If it is enabled skip step 4 below and proceed to step 5 4 Ifthe master function is OFF disabled turn ON the Master Enable Switch word n bit 06 from a Programming Device connected to the CPU Unit Note Execute this only when master communications are turned OFF If the Master Enable Switch is turned ON when master communica tions are enabled a Unit error will occur and a C2 error will be dis played on the 7 segment display on the front panel 5 Input data in advance into the Master User Allocation Setup Table words m 1 to m 6 and the Allocation Size Setup Table specify the position in words m 5 and m 6 6 Turn ON the Master User set Allocation Switch word n bit 11 Master re mote I O communications will begin with the scan list enabled 7 Switch the CPU Unit to RUN mode User set Allocations Using the Configurator Use the following procedure to set allocations using the Configurator Refer to DeviceNet Configurator Operation Manual for details on Configurator operat ing procedures 1 2 3 1 Turn ON the communications slave and PC power supplies Note Turn ON the communications power supply before turning ON the slave power supplies or the slaves may not go online Switch the CPU Unit to PROGRAM mode 3 Create a network configuration file and device parameters file from the Configurator Enable master communications in CS1W DRM21 proper ties at this time 4 Download the above files to the devices on
159. cation area 1 CIO 3370 CIO 3270 Setting 1 Switch Word n 1 bit 09 Slave Fixed Allocation Fixed allocation area 2 CIO 3570 CIO 3470 Setting 2 Switch Word n 1 bit 10 Slave Fixed Allocation Fixed allocation area 3 CIO 3770 CIO 3670 Setting 3 Switch Step 3 Turn ON the Slave Turn ON the Slave Enable Switch word n 1 bit 06 This will allocated the Enable Switch fixed allocation areas as slave areas and the DeviceNet Unit will start slave remote I O communications Slave communications will run automatically after that whenever the power is turned ON 125 User set Allocations Section 5 3 5 3 User set Allocations Methods Method Allocation areas Fixed Allocation Area 1 CS CJ series DeviceNet CIO Area Slave Master Bit 15 0 CIO 3370 Output OUT area m oo area Bit 15 0 CIO 3270 Input IN area es IN area Fixed Allocation Area 2 CS Cu series DeviceNet CIO Area Slave Master Bit 15 0 CIO 3570 Output OUT area q OUT area Bit 15 0 CIO 3470 Input IN area eS IN area Fixed Allocation Area 3 CS CJ series DeviceNet CIO Area Slave Master Bit 15 0 Clo 3770 Output OUT area lt Q OUT area Bit 15 0 Clo 3670 Input IN arco gt i arca User set Allocations With a CS CJ series DeviceNet Unit remote I O communications slaves can be allocated in any area CIO WR HR DM or EM usi
160. cations 4 1 4 2 4 3 4 4 4 5 4 6 4 7 Master Remote I O Communications Scan Eista noae rn ta A E aR Seattle A e eR Fixed Allocations 0 0 0 0 0 00 ce eee eee eee User set Allocations ssa ona er e e EE RENN Starting and Stopping Remote I O Communications Example of Ladder Programming for Remote I O Communications Errors that May Occur in Remote I O Communications XI xii xii xii xiii xiv 15 21 29 33 36 42 45 46 51 57 58 60 81 91 92 99 101 107 116 116 118 vii TABLE OF CONTENTS SECTION 5 Remote I O Slave Communications 121 5 1 Slave Remote I O Communications 0 000 e eee 122 5 2 Fixed Allocations 0 0 0 cee teen e eee ene 125 5 3 User set Allocations 0 0 00 0c ccc ee ee ee eee eee eee 126 SECTION 6 Message Communications eeeeeeeeeee4 133 Gah OVERVIEW ice isis bs eb es ewe eae gle See denuke bag E ie wie bandh e s 134 6 2 FINS Commands and Responses 0 00 0 0c eee eee ee 141 6 3 Using FINS Message Communications 00 0000 ce cee eee eee 145 6 4 Sending Explicit Messages 0 0 cee cece eee ee 158 6 5 Receiving Explicit Messages 0 0 0 cece eee ee 165 SECTION 7 Other Functions cccccccccccccccccvcccces 181 7 1 Connecting to the CX Programmer via the DeviceNet 04 182 7 2 Memory Card Backup Functions 0
161. cations By allo cated DM Area words 3 200 pts 100 input words 100 output words By Config urator 4 800 pts 100 input words x 2 100 output words x 1 25 Specifications Section 1 3 Item Default settings Specifications Scan list Not supported Master communications Supported Slave communications Disabled Remote I O communications Start Master fixed allocations Fixed Allocation Area Setting 1 Slave fixed allocations Fixed Allocation Area Setting 1 Data stored in non volatile memory EEPROM in the DeviceNet Unit Saves the following data settings same as the backup file on the Memory Card e Master scan list e Slave scan list e Message monitoring timer list monitoring time for explicit mes sage responses Communications time settings Master Slave enabled Applicable connections The DeviceNet Unit automatically selects the applicable con nection The user can also specify poll bit strobe COS change of state or cyclic for the applicable connection of each slave us ing the Configurator Up to two types of connections can be set for each Slave although COS and cyclic cannot be specified si multaneously Communications cycle time Uses values calculated using the following equations to derive default value Example 16 Input Slaves 16 points each 16 Output Slaves 16 points each and a baud rate of 500 Kbps 9 3 ms The user can set a value within a range f
162. cations not supported across networks Using FINS message communications not across networks Using FINS message communications across networks Local network table See note 2 and relay network table are necessary Multiple DeviceNet Units mounted as Communications Units Not necessary See note 1 Local network table necessary See note 2 DeviceNet Unit and other Communica tions Unit mounted simultaneously Local network table necessary See note 2 Note 1 If a local network table already exists in the CPU unit being used the De viceNet Unit must be registered in that table 2 The DeviceNet Unit must be registered in the local network table Refer to 6 3 Using FINS Message Communications for information on the routing tables The routing tables are created using CX Net inside the CX Programmer Refer to the CX Net Operation Manual WS02 CXPC1 EV Note 1 for details A local network table is sometimes necessary even when the DeviceNet Unit is not operating across networks If you prepare a local network table inside the CPU Unit be sure to register the DeviceNet Unit Even if a local network table exists inside the CPU Unit the 7 segment dis play of the DeviceNet Unit may indicate HC and FINS message explicit 37 Basic Operating Procedures Section 1 6 message communications may not be possible unless the DeviceNet Unit is registered in the local
163. cations Table set the areas and first words for the out put block OUT 1 and the input block IN 1 and set the area and first word for the Allocation Size Setup Table In the Allocation Size Setup Table set the allocation sizes for the slave input and output blocks Each slave can be allo cated two blocks OUT 1 and IN 1 according to the settings in these tables 93 Master Remote I O Communications Section 4 1 Using the Configurator 94 The OUT and IN blocks will be allocated in order of slave node addresses Each block is a maximum of 500 words CPU Unit Specified in allo cated DM words OUT block 1 IN block 1 Each address is allocated at least one byte rightmost e More than one word is allocated for each slave with more than16 I O points according to its node address e The rightmost byte of the word is allocated to each slave that has less than 16 I O points Ascending order starting from address 0 Address _ Se ly To Slaves Ascending order starting from address 0 Adaress From Slaves When using the Configurator each slave can be allocated four blocks Output OUT blocks 1 and 2 and input blocks 1 and 2 Each block is a maximum of 500 words The position of each block can be set An or der such as IN block 1 OUT block 2 IN block 2 and OUT block 1 can also be used CPU Unit Address l address order
164. ceNet Master Unit CIO n 24 Bit 14 the Error Flag and bit 04 the Structure Error Flag will be ON CIO Area Flags Allocated to DeviceNet Unit Bit 01 of n 12 the Structure Error Flag and bits 00 and 01 of n 10 the Unit Error Flag and Master Function Error Flag will be ON Troubleshooting with the DeviceNet Unit Indicators Section 9 1 Structure Error O Area Range Exceeded Structure Error Unsupported Slave Verification Error Non existent Slave Correction Set the slaves node addresses again Error log Hex Red ashing sas l Likely Cause The slave s I O area isn t within the allowed range Occurs with the scan list disabled DeviceNet Unit Response Records the error in the error log The master will periodically attempt to reconnect with the slave with the structure error Flags Allocated for C200H DeviceNet Master Unit CIO n 24 Bit 14 the Error Flag and bit 04 the Structure Error Flag will be ON CIO Area Flags Allocated to DeviceNet Unit Bit 01 of n 12 the Structure Error Flag and bits 00 and 01 of n 10 the Unit Error Flag and Master Function Error Flag will be ON Correction Set the slaves node addresses again or use user set allocations Error log Hex o Red lashing 0843 Q l Likely Cause The size of the slave s input and or output area exceeded 200 bytes Occurs with the scan list disabled DeviceNet Unit Response Records the error in the erro
165. ches comparison with previous models 229 See also I O allocations setting errors 207 system configuration 3 startup times 195 T tables error log 218 local network 146 normal slave 233 registered slave 232 relay network 147 routing 146 terminals analog input 4 11 analog output 4 11 B7AC Interface Terminal 12 remote I O 10 See also I O Terminals sensor 4 11 temperature input 5 11 timer message monitoring 140 timing communications 189 reading responses 153 troubleshooting 199 222 U Units applicable 7 usage 42 user set allocations See also I O allocations V VME Master Boards 3 W waterproof 12 word allocations See also I O allocations Revision History A manual revision code appears as a suffix to the catalog number on the front cover of the manual Cat No W380 E1 2 Revision code The following table outlines the changes made to the manual during each revision Page numbers refer to the previous version Revision code October 2000 Revised content Original production July 2001 Major revisions to add the CJ series DeviceNet Unit CS1 was changed to CS or CS CJ as appro priate and the following changes were made Other changes are as follows Page ix Manual contents updated and manuals added to table Page xiv Precaution added on providing double safety mechanisms Page xv EMC standards updated Page xvi Impedances manufacturer
166. cked up to a Memory Card only It cannot be backed up to a EM file If all setup data for a DeviceNet Unit that starts normally is saved on a Memory Card that data can be read and used when replacing DeviceNet Units making the replacement process smooth Device parameter files dvf files created using the Configurator can be saved from the computer to the Mem ory Card and can be restored to the DeviceNet Unit mounted to the CPU Unit This means that setup data cre ated using the Configurator scan lists and other parameters can be downloaded to DeviceNet Units simply by taking the Memory Card to site Unit Setup File Backup Switch DeviceNet Unit CPU Unit Unit Setup File Restore Switch Configurator computer All setup data Memory Card Save file Restore Load file 247 Memory Card Backup Functions Appendix D Outline of Functions 1 Backing Up Unit Setup Files Saves all internal Unit setup data to the Memory Card mounted to the CPU Unit Method Turn ON the Setup File Backup Switch word n 1 bit 15 to save the internal Unit setup data to the Memory Card as a Unit Setup File DeviceNet Unit CPU Unit Unit Setup File Backup switch Memory Card Backup 2 Restoring Unit Setup Files Restoring Unit Setup Files involves reading the data and setting it to a Unit The data saved to the Memory Card mounted to the CPU Unit is read to the Unit Method Turn ON the Unit Setup File Resto
167. connection size is an even number of bytes the number of allocated words is bytes 2 If the connection size is an odd number of bytes the number of allocated words is bytes 1 2 If the connections size is zero 0 no words are allocated For Connection Object Interface 3 Bit Strobed I O Connection the number of input words allocated in the OMRON Master can be found from the Produced Connection Size as shown below Produced Connection Size This is the amount of memory usually in bytes allocated as input If the connection size is an even number of bytes the number of allocated words is bytes 2 If the connection size is an odd number of bytes the number of allocated words is bytes 1 2 Connecting an OMRON Slave to another Company s Configurator When another company s configurator a device that makes environment settings on DeviceNet Masters and Slaves is connected it will be able to read settings from OMRON Masters and Slaves but not change them When another company s configurator is being used we recommend creating an OMRON Slave EDS file a file that contains each Slave s parameters and operating information Refer to the OMRON Slave device profile as well as the Configurators manual for details on creating an EDS file 251 Multi vendor Applications Appendix E Master Unit Device Profile General data Compatible DeviceNet Specifications Volume Release 2 0 Volume II Re
168. cution has been completed whether normally or with an error e The Network Error Flag maintains its status until the next send or receive is executed e The Network Error Flag turns OFF when the next communications instruction is executed regardless of whether the previous execution ended with an error e The relationship between the Message Communications Permitted Flag and the NS indicator and between the Message Communications Permit ted Flag and the NS indicators on the front of the DeviceNet Unit is shown 152 Using FINS Message Communications Section 6 3 in the following table Message Network status NS Communications indicator Permitted Flag Communications connection made network nor Lit green mal Communications connection not made network Flashing normal but communications not established green Non fatal communications error error in one or Flashing more Slaves red Offline or power supply is OFF no power supply Not lit resetting minor failure or send error Fatal communications error Lit red 1 abled Flag 0 Instruction i Instruction i i Instruction A Communications 1 executeg 2 executed 3 executed instruction 1 I 1 I I i i Execution 0 sl ewe Error Flag l I l F Completion I I I I code Previous 00 Normal 04 Busy 00 Normal code end en Communications Instructions Completion Codes The status at the completion of the execution of network communications instruction
169. d Logical Area Address Length 1EBlock String Write Logical Area Address 1FBlock StringN Write Logical Area Address Object instance 4 WR area Service 1CBlock String Read Logical Area Address Length 1DBlock StringN Read Logical Area Address Length 1EBlock String Write Logical Area Address 1FBlock StringN Write Logical Area Address Object instance 5 HR area Service 1CBlock String Read Logical Area Address Length 1DBlock StringN Read Logical Area Address Length 1EBlock String Write Logical Area Address 1FBlock StringN Write Logical Area Address Object instance 6 AR area Service 1CBlock String Read Logical Area Address Length 1DBlock StringN Read Logical Area Address Length 1EBlock String Write Logical Area Address 1FBlock StringN Write Logical Area Address Object instance 7 TIM CNT area Service 1CBlock String Read Logical Area Address Length 1DBlock StringN Read Logical Area Address Length 1EBlock String Write Logical Area Address 1FBlock StringN Write Logical Area Address Object instance 8 20 EMO to EMC area Service 1CBlock String Read Logical Area Address Length 1DBlock StringN Read Logical Area Address Length 1EBlock String Write Logical Area Address 1FBlock StringN Write Logical Area Address 259 Multi vendor
170. d into the DeviceNet Unit from the Memory Card in the CPU Unit Set ting data can be restored into a DeviceNet Unit simply by carry ing the Memory Card to the site if the device parameter file prepared from the Configurator is saved to Memory Card from a PC Error history in the DeviceNet Unit Supported The history can be accessed up by the Configurator or using a FINS command Communications cycle time setting Supported in the allocated DM Area words or from the Configu rator Message monitoring timer Sets the response monitoring time explicit connection opening interval in the DeviceNet Unit for explicit message communica tions Settings can be made separately for all targeted devices using the Configurator COS cyclic heartbeat timer setting Sets the minimum SEND interval in COS or cyclic connections for all targeted devices The setting is made using the Configura tor Device data check function Performs a comparison check on the following device data when slave data registered in the scan list is compared with actual slave data The Configurator can be used to set this function for all targeted Slaves Vendor device type and product code Configurator connection method 1 Serial connection peripheral bus or Host Link 2 Direct DeviceNet connection through a dedicated Board Card The online functions available are the same for both 1 and 2 Setting section Rotary switches
171. d stored at the point of command exe cution and then the processing communications will end normally The actually number of records read will be returned as the Read Record No e If more than the current number of records is specified for Read Record No the end code 1103 hex will be returned e If the Read Record No is 0000 the processing will end normally even if there are no error records e If the Read Start Record No is specified as 0000 the end code 110C hex is returned ERROR HISTORY CLEAR 2103 Command Block 21 03 N Command code Response Block I 21 03 l Command End code code 245 FINS Commands and Responses for DeviceNet Units Appendix C End Codes End code hew 0000 Normal end 1001 Command length exceeds maximum command length Important Point The Error History Clear command clears the RAM and EEP ROM error his tory tables 246 Appendix D Memory Card Backup Functions The DeviceNet Unit stores the following setup data in the internal non volatile memory EEPROM e Master scan lists e Slave scan lists e Message monitoring timer lists e Communications cycle time settings e Master Slave functions enabled disabled settings Note Backup is possible only when scan lists are enabled With the CS1 DeviceNet Unit all this setup data can be backed up to and restored from a Memory Card mounted to the CPU Unit see note Note The data can be ba
172. data file on the Memory Card and to enable these settings as the Unit settings 187 Memory Card Backup Functions Section 7 2 DeviceNet Unit CPU Unit Unit Setup File Restore Switch All setup data Memory Card Restore Note If there is an error in the setup data or if the file could not be read the File Read Write Error bit in Unit Status 2 word n 11 bit 08 will turn ON 3 Saving Files from Configurator to Memory Card Device parameter files dvf files for this DeviceNet Unit that have been cre ated using the Configurator can be saved on the Memory Card via the HMC AP001 Memory Card Adaptor as file name DNnnBKUP dvf where nn is the Unit number in 2 digit hexadecimal This DeviceNet Unit can be mounted to the CPU Unit and by turning ON the Unit Setup File Restore Switch word n bit 14 the setup data can be restored to the DeviceNet Unit Note The file name when saving setup data to the Memory Card must be DNnn BKUP dvf where nn is the Unit number in 2 digit hexadecimal For example for unit number 00 the file name must be DNOOBKUP dvf If the file is saved under another name the data cannot be restored from the Memory Card to the DeviceNet Unit DeviceNet Unit CPU Unit Configurator com puter Unit Setup File Restore Switch HMC AP001 Memory Card Adaptor Memory Card Memory Card Restore Saving device parameter file Saved as file name DNnnBKUP dvf where nn is the Unit
173. ddress remote node is returned in hexadecimal Destination node address response The node address of the CS CJ series DeviceNet Unit that returned the response is returned in hexadecimal Read data response The specified area word and byte data is returned in order from word L low byte bits 0 to 7 to word H high byte bits 8 to 15 The actual address L address H and number of write data bytes that can be specified depends on the CPU Unit of the CS CJ series DeviceNet Unit and the Memory Area Do not exceed the boundary of the data areas for the PC you are using Byte Data Write Service Code 1E Hex Command Block Byte Data Write writes data to I O memory area in CPU Units with CS CJ series DeviceNet Units mounted The write word data is in byte units The command block is specified from high to low bytes as shown in the following diagram Peer a ee de a A A Class ID l Word data H Word data H Service Cod Destination node address Response Block Parameters Instance ID e Address L Word data L Word data L Address H Write data 200 bytes max Service Code Destination node address No of bytes received Destination node address command The node address of the CS CJ series DeviceNet Unit to which to write the data specified in 1 byte 2 digit hexadecimal Service code command response IE Hex is specified for commands For responses the highest bit will turn ON and 9E Hex w
174. dress 1 IN size bytes to to 1 62 Node address 62 OUT size bytes Node address 62 IN size bytes 1 63 Node address 63 OUT size bytes Node address 63 IN size bytes Step 4 Turn ON the Slave User Allocations Switch Turn ON the Slave User allocations Switch word n bit 11 This will make the DeviceNet Unit read allocation results data for the slaves above from the CPU Unit and create a scan list based on data for slaves that are actually online prior to starting remote I O communications with the scan list enabled Note The Master User Allocations Switch not only reads slave allocation data but it also enables the scan list Master User Allocations Table in the allocated DM Area words Bit 18 OUT block j 1 wd OUT block 1 Bit 15 8 Ree Jeeta cene y Erster Node address i specifiod p m 2 wd First word of OUT block 1 Specify the first word P g Node address 1 O0Hex IN block 1 area m 3 wd Output to Slaves m 4 wd _Eirst word of IN block 1 Specify the m 5 wd Size Setup Table first word Area First word of Size Setup Table m 6 wd 4 Specify the 3 gt size Allocation Size Setup Table Pa IN block Set first word in allocated DM Area words sae Bit 15 0 Bit 15 we 0 First wordt Node address 0 F 4 le I wd NES ant Node address 1 1 1 wd 4 Input from Slaves Address 1 address
175. e e Excessive noise Software Switch Setting Errors CPU Unit Status Error Unit Status Error Structure Error Error log Hex feo Ne E Likely Cause The software settings operation couldn t be performed because the CPU Unit wasn t in PROGRAM mode DeviceNet Unit Response The only response is the error code displayed on the 7 segment display The error display will be cleared the next time that a settings operation is com pleted normally Correction Switch the CPU Unit to PROGRAM mode and try the operation again Error log Hex ee ee ee Likely Cause The setting operation failed because the Unit could not perform the requested process in its current status The most common causes of Unit status errors during settings operations are listed below e The master was stopped and a software switch operation relating to the master function was performed This does not include the master enable operation e The scan list was enabled and a software switch operation was performed that can only be performed while the scan list is disabled Scan list enable and fixed allocation setting operations e The scan list was disabled and a software switch operation was per formed that can only be performed while the scan list is enabled Clear scan list and Backup Unit settings file operations e The slave was stopped and a software switch operation relating to the slave function was performed This does not include the slave en
176. e I O Communica tions Error Flag for OUT 2 IN 2 Indicates that a communications error has occurred in the OUT 2 IN 2 Slave I O connection Indicates that a remote I O communications error has not occurred or turns OFF when a remote I O communications error is cleared Invalid Setup Data Flag Indicates that there is incorrect data in slave settings mismatched check sum The Unit stops slave communications Remote I O communica tions and message communications continue Indicates that a Unit is operating with the correct slave setup data or with out slave communications being set Turns OFF when the slave is properly set after a slave setup data error occurs Remote I O Refresh Error Indicates that the I O memory in the CPU Unit that is to be refreshed is not present during I O refreshing for the slave function It occurs in several sit uations such as when an I O area is allocated in a EM bank that is not present Indicates that a slave I O refresh error has not occurred Reserved by system Slave Function Enable Disable Failed Flag Indicates that an error has occurred in one of the following operations e Slave function enabled word n 1 bit 06 e Slave function disabled word n 1 bit 07 Once this bit turns ON it will remain ON until the operation is successfully completed Indicates that the error has not occurred The bit turns OFF when the operation is successfully com
177. e I O comm error Slave s node address Power supply error Local master s node address Transmission timeout Local master s node address I O refreshing error 01 Hex Master 02 Hex Slave 00 Hex Message discarded because a new request was received Same as the code such as 0101 Hex in the dis carded FINS explicit message packet Special Unit error Uncertain contents Special Unit memory error 01 Hex Read error 02 Hex Write error 06 Hex Error log 09 Hex Identity data OA Hex Master scan list OB Hex Slave scan list OC Hex Message moni toring timer list OD Hex Communications cycle time setting Note The error information is not written to EEPROM when a memory error occurs in the error log area EEPROM 221 Troubleshooting Section 9 3 9 3 Troubleshooting 9 3 1 CPU Unit s ERR ALM Indicator Lit or Flashing Use the following table to troubleshoot the network when the DeviceNet Unit is mounted and the CPU Unit s ERR ALM indicator is lit or flashing Error Probable cause An I O verification error occurred Make sure that the Unit is connected properly Check the I O table with the I O Table Verification operation and correct it if necessary After correcting it perform the I O Table Create operation A CPU Bus Unit setting error occurred The CPU Bus Unit model registered in the I O table does not match the model of CPU Bus Unit actually mounted
178. e Structure Error Flag in word n 12 bit 01 This bit turns ON if any one of the fol lowing bits turns ON e Network power error word n 10 bit 07 e Send timeout word n 10 bit 08 Allocation Differences from C200H DeviceNet Master Units Names for C200H DeviceNet Master Unit Master Status Area 1 Communi cations Error Flag Verification Error Flag I O Data Communi cations Not Running Flag Scan List Operation Completed Flag Scan List Operation Error Flag Communi cations Error Stop Cleared Flag Message Communi cations Enable Flag Scan List Disabled Flag Error Flag I O Data Communi cations Flag C200H DeviceNet Master Unit Word address CS CJ Series IR 2001 10 x unit No C200HX HG HE C200HS Unit No 0 to 9 IR 101 10 x unit No Unit No A to F IR 401 10 x unit No 10 Bit Names for CS CJ series DeviceNet Unit Mas ter Replace ment Sta tus 1 Communi cations Error Flag CS CJ series DeviceNet Unit Verification error O Data Communi cations Not Running Flag Reserved for system use Reserved for system use Reserved for system use Message Communi cations Per mitted Flag Scan List Disabled Flag Error Flag I O Data Communi cations Flag CS CJ Bit series word address CIO 1524 25 x unit No Appendix A D
179. e address NODE ADR Baud rate DIP switches 1 to 2 Communications continue stop setting for communications errors DIP switch pin 3 with Master communications O hold clear for communications errors DIP switch pin 4 with Slave communications 2 Set the initial settings for slaves Basic Operating Procedures Section 1 6 Note 1 Node address Pins 1 to 6 Baud rate Pins 7 and 8 Etc Mount the Master and wire the network Treat as a CPU Bus Unit Can mount to a CPU Rack or Expansion Rack With fixed allocations 3 Units max With user set allocations 16 Units max Connect a Programming Device to the PC and turn ON the power supply to the PC Generate the I O tables A slave may not go online if the communications power supply is turned ON after the slave is turned ON The communications power supply and slave power supply the slave pow er supply and PC power supply or all three of these power supplies may be turned ON simultaneously 1 6 3 Creating Routing Tables The DeviceNet Unit functions as a Communications Unit in the same way as a SYSMAC LINK Unit Controller Link Unit and Ethernet Unit It is therefore necessary to create routing tables for the communications func tions to be used as shown in the table below Mounted Units DeviceNet Unit is the only Communica tions Unit mounted Using master or slave functions only Not necessary See note 1 Using explicit message communi
180. e areas and the first words for the OUT 1 and IN 1 blocks in the scan allocations DM Area list Setup Table in the allocated DM Area words Set the allocation size for words each slave using the allocation size Setup Table any words Allocations must be in the order of node addresses Allocated The input and output areas can be the following sizes starting words from any word in any of the following areas CIO Area WR Area HR Area DM Area or EM Area Output OUT 500 words max x 1 block area Input IN 500 words max x 1 block area By Configu Set the areas for the OUT 1 2 and IN 1 2 blocks the first words and the allo rator cation sizes for all slaves using the Configurator Blocks can be set for nodes in any order Allocated The input and output areas can be the following sizes starting words from any word in any of the following areas CIO Area WR Area HR Area DM Area or EM Area Output OUT 500 words max x 2 blocks area Input IN 500 words max x 2 blocks area No of Mas Fixed allocations 3 Units max Unique words must be allocated using the Allocated CIO Area ters that can Words Software Switches be mounted User set By allocated 16 Units max Unique words must be allocated using the user Setup Table in allocations DM Area the allocated DM Area words words By Configu 16 Units max Unique words must be allocated using the Configurator rat
181. e communications are turned OFF If the Slave Enable Switch is turned ON when slave communications are enabled a Unit error will occur and a C2 error will be displayed on the 7 segment display on the front panel 7 Switch the CPU Unit to RUN mode Slave remote I O communications will begin User set Allocations Using the Configurator Use the following procedure to set allocations using the Configurator Refer to DeviceNet Configurator Operation Manual for details on Configurator operat ing procedures 1 2 3 1 Switch the CPU Unit to PROGRAM mode 2 Create a device parameter file from the Configurator Enable Slave com munications in CS1W DRM21 properties at this time Then download the file to the DeviceNet Unit 3 Turn ON the Slave Enable Switch word n 1 bit 06 from a Programming Device connected to the CPU Unit Note Execute this only when slave communications are turned OFF If the Slave Enable Switch is turned ON when slave communications are enabled a Unit error will occur and a C2 error will be displayed on the 7 segment display on the front panel 40 Basic Operating Procedures Section 1 6 4 Switch the CPU Unit to RUN mode Slave remote I O communications will begin Message Communications Only Neither Master nor Slave Function Used The DeviceNet Unit does not have to be registered in the scan list if it is only used for message communications Message communications send and receive can be executed w
182. e message monitoring timer default 2 s If it is set to less than the value for the message monitoring timer default 2 s communications may be busy even if the next command is executed after the first one times out 6 3 5 Using SEND 090 RECV 098 and CMND 490 SEND 090 RECV 098 and CMND 490 instructions normally use an AND of the Network Enabled Flag in the CPU Unit A20200 to A2020007 corre sponding to ports 0 to 7 and the Online Flag word n 11 bit 00 or the Mes sage Communications Permitted Flag word n 24 bit 12 for the DeviceNet Unit Note The Online Flag and the Message Communication Permitted Flag perform the same operation Execution Network Online Flag condition Enabled Flag t A HH BEnND1090 RECV 098 or CMND 490 word n 11 bit 00 or 151 Using FINS Message Communications Section 6 3 Execution Network Message condition Enabled Flag Communications Permitted Flag t k _ HH Bn020 RECV 098 or CMND 490 word n 24 bit 12 Communications Flags Address Content Bit CPU Unit Network Enabled Flag 76543210 0 pores not possible execut ing 1 Execution possible not execut ing Network Error Flag 76543210 0 Normal completion 1 Error Communications Flag Operation e The Network Enabled Flag turns OFF when instructions are being sent or received from when the instruction is issued until the response is received and turns ON when the exe
183. e of Ladder Programming for Remote I O Communications When writing ladder programming for remote I O communications make sure it performs I O processing with a Slave under the following conditions e The I O Data Communications Flag word n 12 bit 15 is ON e The Unit Error Flag word n 10 bit 00 is OFF Example There is no jump and slave I O is processed when the JMP 004 instruction input condition is ON in the following instructions There is a jump and slave I O is not processed when the JMP 004 instruction input condition is OFF 116 Example of Ladder Programming for Remote I O Communications Section 4 6 1 0 Data Communications Unit Error Flag Flag word n 12 bit 15 word n 10 bit 00 JMP 004 JME 005 Note Even if there is a communications error with the slave the slave input data is saved in the allocated area To prevent operating errors make the ladder program so that no slave I O pro cessing will occur when the Unit Error Flag word n 10 bit 00 is ON 117 Errors that May Occur in Remote I O Communications Section 4 7 4 7 Errors that May Occur in Remote I O Communications The following errors may occur during remote I O communications Condition Error occurs in fixed allo cations with the scan list disabled Structure Error Flag word n 12 bit 04 turns ON Duplicate O area Details The same I O word is allocated to two or more slaves This occurs whenever
184. e sent to CS CJ series CPU Units Cat No CX Net Operation Manual WS02 CXPC1 EV Information on setting and monitoring networks such as the use of routing tables N WARNING Failure to read and understand the information provided in this manual may result in per sonal injury or death damage to the product or product failure Please read each section in its entirety and be sure you understand the information provided in the section and related sections before attempting any of the procedures or operations given This section provides general precautions for using the DeviceNet Unit and related devices PRECAUTIONS The information contained in this section is important for the safe and reliable application of the DeviceNet Unit and Programmable Controller PC You must read this section and understand the information contained before attempting to set up or operate a DeviceNet Unit as part of a PC NNnBWN Intended Audience General Precautions Safety Precautions Operating Environment Precautions Application Precautions Conformance to EC Directives 6 1 6 2 6 3 Applicable Directives Concepts 202 Conformance to EC Directives xii xii xii xiii Xiv xvi xvi xvi xvi xi Intended Audience 1 2 3 xii Intended Audience This manual is intended for the following personnel
185. eNet Unit Indicators Section 9 1 CPU Unit Faulty H6 I O Table Not Registered CPU Unit Memory Faulty CPU Unit Faulty Hb DeviceNet Unit Response Stops operation Correction Set the communications speed correctly and restart the DeviceNet Units 7 segment Error log Hex H Red flashing OFF 000F DeviceNet Unit Response Records the error in the error log The time information is set to all zeroes Stops operation Correction Replace the CPU Unit if the error recurs when the CPU Unit is restarted 7 segment Error log Hex H Red flashing OFF 0006 i Likely Cause The CPU Unit s I O table is not registered DeviceNet Unit Response Records the error in the error log Stops operation Correction Create the I O table 7 segment Error log Hex HA Red flashing 0012 Likely Cause A parity error occurred while reading the routing table DeviceNet Unit Response Records the error in the error log and continues processing The routing table is treated as missing Flags Allocated for C200H DeviceNet Master Unit CIO n 24 Bit 14 Error Flag and bit 03 the Structure Error Flag will be ON CIO Area Flags Allocated to DeviceNet Unit Bits 00 and 12 of n 10 the Unit Error Flag and Routing Table Error Flag will be ON Correction Register the routing table in the CPU Unit again and restart the CPU Unit Replace the CPU Unit if the error recurs T segment Error log Hex H Red flas
186. eader 4 bytes Parameters 3 bytes 7 bytes no frag ment Therefore Tgrs 1 communications cycle time Try 3 ms e PC s processing time Tpc x 6 Tpc x 2 Tpe x8 The following time is required to process data with other clients before the PC starts processing 7 other clients 2 Approximately cycle time x 3 If one processing requires twice the cycle time the time will be as follows Cycle time x 3 x 2 Cycle time x 6 PC s processing time Tpc x 2 Cycle time x 2 Total time will be as follows Cycle time x 8 e BYTE DATA READ response receiving time Tarr DeviceNet header 3 bytes Number of words to be read x 2 203 bytes Therefore Tarr 1 203 bytes 6 communications cycle time 35 com munications cycle time e DeviceNet Unit refresh time Tar 2 ms The message response time will be as follows TRM Tpce x8 TRM x35 TRE X 2 x 8 3 80 105 32 220 ms The above equations can be used to find the approximate message response time but this is the typical time not the maximum time The message response time will vary depending on the frequency of message communica tions the load on the remote node the communications cycle time and other factors For any one DeviceNet Unit the message communications time can be greatly increased due to heavy loads and the user program must be written to allow for this SECTION 9 Troubleshooting and Maintenance This section describes error processing periodic maintenance
187. eads the following DeviceNet Unit information e Model e Version e Node address 241 FINS Commands and Responses for DeviceNet Units Appendix C e Baud rate Command Block 05 01 S gt Command code Response Block 05 01 20 bytes 20 bytes AAT I l I Command End code Model Version Node Baud code address rate End Codes End code eX Normal end Command length exceeds maximum command length Parameter Details Model Version Response The DeviceNet Unit model and version are returned as outlined below in 20 byte ASCII code If the data is less than 20 bytes the remaining bytes will be filled by 20 Hex space e Model CS1W DRM21 LI space Or CJ1W DRM21 LI space Version V1 00V1 02V1 01 L space e Node Address The following DeviceNet Unit node addresses are returned 00 to 3F hex Baud Rate 0 hex 125 kbps 1 hex 250 kbps 2 hex 500 kbps READ CONTROLLER STATUS 0601 Reads the internal status of the DeviceNet Unit Command Block o6 ol h a J Command code 242 FINS Commands and Responses for DeviceNet Units Appendix C Response Block I I I o6 01 Co eee End code Operation Unit Unit Master M
188. eceived from another node may be de stroyed Never execute a second communications instruction before the message communications time has elapsed and never send messages to any one node at intervals less than the message communications time 2 If send or receive messages are destroyed error records will be placed in the error history of the Master Unit If an error occurs read the error history using the FINS command or monitor the error history from the Configura tor 3 The above equations can be used to find the approximate message com munications time but this is a typical time not the maximum time The message communications time will vary depending on the frequency of message communications the load on the remote node the communica tions cycle time and other factors For any one Master Unit the message communications time can be greatly increased due to heavy loads and the user program must be written to allow for this 8 2 2 Calculating the Maximum Message Response Time The message response time is the time required from the time a DeviceNet Unit starts to receive an I O memory read request message BYTE DATA READ explicit message until the DeviceNet Unit completes sending the response message to the client The message response times described below are based on the following conditions 1 2 3 1 Only one DeviceNet Unit is mounted 2 The I O memory read request is returned from CS CJ series PC in two cy cle time 3
189. ecessary OUT block 1 IN block 1 Node address 01 4 Node address 014 Node address 02 Node address 02 Node address 03 c The same node address cannot be allocated more than once Example OUT block 1 OUT block 2 Node address 02 x Node address 02 114 User set Allocations Section 4 4 Slave types _ 16 output pts Combination of 8 input and output pts Combination of 16 input _ and output pts 8 input pts 32 output pts Slave types _ 48 input pts 8 input pts Combination of 8 output gt and 16 input pts Node address setting 00 01 02 03 10 Node address setting 04 09 12 d The start bit for node addresses can be bit 00 or bit 08 If it is bit 08 however 2 or more bytes cannot be allocated as shown below Start byte Master Slave You can determine whether there are duplicate node addresses in the I O allocations scan lists that were created simply by conducting a master parameter file duplicate check from the Configurator f Be sure to use user set allocations and operate with the scan list enabled if multiple masters are connected to a single network A Bus OFF errors will occur if multiple fixed allocations masters op erating with the scan list disabled are present on a single network g Multiple Master Units can be included in a single PC as shown be low using user set allocations 16 Units max M
190. efore a prior operation was completed DeviceNet Unit Response The only response is the error code displayed on the 7 segment display The error display will be cleared the next time that a settings operation is com pleted normally Correction Execute software switch operations one at a time 7segment Error log Hex OFF or Red flashing 0341 The NS indicator will flash red if the error occurs during remote I O communi cations otherwise the indicator will be OFF i fo Likely Cause The communications power supply is not being supplied properly from the network DeviceNet Unit Response Records the error in the error log As long as power isn t being supplied remote I O communications will remain stopped and errors will be returned in response to requests for message transmissions The indicator status scanning and message processing will Troubleshooting with the DeviceNet Unit Indicators Section 9 1 Transmission Timeout Error Note Node Address Duplication Error return to normal when the network power supply is restored although scan ning will not resume if the DeviceNet Unit is set to stop remote I O communi cations when a communications error occurs Flags Allocated for C200H DeviceNet Master Unit CIO n 24 Bit 14 Error Flag and bit 05 the Sending Error Flag will be ON CIO Area Flags Allocated to DeviceNet Unit Bits 00 and 07 of n 10 the Unit Error Flag and Network Power Error Flag wi
191. em 16 input points PNP DRT1 HD16C 1 eliminates the need for tools 16 output points DRT1 WD16C for sensor valve or other con NPN nections 16 output points DRT1 WD16C 1 PNP 8 input points 8 out DRT1 MD16C put points NPN 8 input points 8 out DRT1 MD16C 1 put points PNP B7AC Interface Ter 10 input points x 3 DRT1 B7AC Splits 1 B7AC Unit into 3 minal 4 branches XS2 Series connector system eliminates the need for tools Dust and drip proof structure for environmental resistance IP 66 V O points Model number Remarks C200H 1 0 Link Unit 512 inputs max C200HW DRT21 Supports remote I O and z 32 words message communications 512 outputs max between PCs 32 words Max I O area 512 input points and 52 output points Any I O words can be allo cated RS 232C Unit 16 inputs 1 word DRT1 232C2 Two RS 232C ports mounted Data sent and received by explicit message 151 bytes max Executes settings and control through explicit messages Reflects RS 232C port status in the input Programmable 512 inputs max CPM2C S100C DRT Controller that enables com Slaves 32 words CPM2C S110C DRT Munications with CompoBus 512 outputs max S Master 32 words Enables message communi cations using explicit mes sages 12 Overview of DeviceNet Section 1 1 MULTIPLE I O TERMINAL Units Unit Communications Unit 1 0
192. ent procedure required if a DeviceNet Unit fails Clean the DeviceNet Units regularly as described below in order to keep the network in its optimal operating condition e Wipe the Unit daily with a dry soft cloth e When a spot can t be removed with a dry cloth dampen the cloth with a neutral cleanser 2 solution wring out the cloth and wipe the Unit e A smudge may remain on the Unit from gum vinyl or tape that was left on for a long time Remove the smudge when cleaning Never use volatile solvents such as paint thinner benzene or chemical wipes These substances could damage the surface of the Unit Be sure to inspect the system periodically to keep it in its optimal operating condition In general inspect the system once every 6 to 12 months but inspect more frequently if the system is used with high temperature or humid ity or under dirty dusty conditions Prepare the following equipment before inspecting the system Required Equipment Have a standard and Phillips head screwdriver multimeter alcohol and a clean cloth Equipment Required Occasionally Depending on the system conditions a synchroscope oscilloscope ther mometer or hygrometer to measure humidity might be needed Check the items in the following table and correct any items that are below standard Standard 0 C to 55 C 10 to 90 Equipment Thermometer Hygrometer Environmental conditions Ambient and cabinet temperature
193. er Configurator Scan list registration Serial connection Host Link or Peripheral Bus DeviceNet 17 DeviceNet Unit Features Section 1 2 CX Programmer CX Programmer Ver 2 1 connected to a serial communications port on a Programming and DeviceNet PC can be used to remotely program and monitor other DeviceNet Monitoring of DeviceNet PCs i e PCs with a CS CJ series DeviceNet Unit or a Programmable Slave Slave PCs Ver 2 1 or Later CS CJ series DeviceNet Unit master CX Programmer Serial line Host Link or peripheral bus CS CJ series DeviceNet Unit master DeviceNet Program mable Slave CS CJ series CS Cu series DeviceNet Ethernet Unit Unit master CX Programmer Ethernet CS Cu series DeviceNet Unit master Note Refer to 7 1 Connecting to the CX Programmer via the DeviceNet for details Inter network Connections FINS messages can be sent back and forth between DeviceNet and other networks e g Controller Link SYSMAC LINK and Ethernet This feature enables seamless message communications between all types of networks including DeviceNet Controller Link Unit CS CJ series DeviceNet Unit Controller Link Unit FINS message al Oodcenit DeviceNet eviceNe CS CJ series DeviceNet Unit Note Refer to 6 3 Using FINS Message Communications for details 18 DeviceNet Unit Features Section 1 2
194. error has cleared 01 Master ON Unit Indicates that a master error has occurred Master Status 1 See word Function n 12 Error Flag The master errors are as follows e Verification Error Flag word n 12 bit 00 e Structure Error Flag word n 12 bit 01 e Remote I O Communications Error Flag word n 12 bit 02 e Invalid Scan List Data Flag word n 12 bit 04 e Remote I O Refresh Error Flag word n 12 bit 05 OFF Unit Indicates that the error has not occurred or turns OFF when the error has been cleared 02 Reserved by system 03 Slave Func ON Unit Indicates that a slave error has occurred Slave Status 1 See word tion Error n 14 Flag The slave errors are as follows e Remote I O Communications Error Flag for OUT 1 IN 1 word n 14 bit 02 e Remote I O Communications Error Flag for OUT 2 IN 2 word n 14 bit 03 e Invalid Setup Data Flag word n 14 bit 04 e Remote I O Refresh Error Flag word n 14 bit 05 OFF Unit Indicates that the error has not occurred or turns OFF when the error has been cleared 04 UnitMem ON Unit Indicates an error in internal memory where the error history is stored ory Error The error occurs when the Unit starts up or when the error history is writ Flag ten OFF Unit Indicates that the error has not occurred Once this error has occurred the bit will remain ON and will not return to OFF 05 Bus Off Flag ON Unit Indicates that a Bus OFF error communications
195. etails and CS1W DRM21 CJ1W DRM21 status This is the same as the Remote I O Communications Error Flag word n 12 bit 02 This is the same as the Verification Error Flag in word n 12 bit 00 This operates in the reverse way of the Remote I O Communications Flag word n 11 bit 01 The same as the Online Flag in word n 11 bit 00 Note When executing message com munications instructions SEND RECV CMND from the ladder program use an AND of input conditions for the Network Communications Enabled Flag in the CPU Unit A20200 to A20207 and this bit The same as operation as the Scan List Disabled Flag word n 11 bit 04 This bit turns ON if bit 00 01 or 03 to 07 in this word n 24 turns ON The same as I O Data Communica tions Flag word n 12 bit 15 231 Allocation Differences from C200H DeviceNet Master Units Master Status Area 2 C200H DeviceNet Master Unit CS CJ series DeviceNet Unit Word address Error History Flag Master I O Allocation Status CS CJ Series D06032 2 x unit No C200HX HG HE C200HS DM6032 2 x unit No Bit CS CJ series word address CIO 1511 25 x unit No Contents for CS CJ series DeviceNet Unit 1 When error history is stored in Master Unit 0 When error history is not stored in Master Unit Appendix A Differences from C200H DeviceNet Master Unit No difference CIO
196. etwork 0 ource Addtess SS a ii j Writ fo 4 FINS Destination Address Network fo Node fo Unit jo Set this value r Frame Lengthg to 542 or less Response Timeout s 54 3 2 a Hest link Untunge F 7 Network Operating Level 0 Hi 1 Cancel Help Refer to the operation manual for the CX Programmer for details 7 1 4 Response when Using the CX Programmer via the DeviceNet 1 2 3 To assure appropriate remote I O response in the DeviceNet field network the DeviceNet Unit is designed to prioritize remote I O communications over mes sage communications For this reason when the CX Programmer is con nected via the DeviceNet Unit its response suffers by up to a nine fold drop for a communications speed of 500 Kbps in comparison with connection by a peripheral bus The following methods can be used to improve this response 1 Temporarily disable remote I O communications Operate the CX Programmer after disabling remote I O communications by turning ON the Remote I O Communications Stop Switch word n bit 04 in the allocated CIO Area words This will limit the drop in response to 185 Memory Card Backup Functions Section 7 2 Note a maximum of four fold for a communications speed of 500 Kbps in com parison with connection by a peripheral bus 2 Temporarily extend the communications cycle time Operate
197. fied as the words allocated in the CIO Area for fixed allocations The output OUT block and the input IN block are allocated strictly in order of node addresses in one of the areas shown below CS CJ Series clo 3200 Address 0 ClO 3201 Address 1 ER gt To Slaves ClO 3262 Address 62 clo 3263 Address 63 CIO 3300 ress 0 clo 3301 Address 1 Food f i From Slaves clo 0362 Address 62 CIO 0363 ress 63 clo 3400 Address 0 Clo 3401 Address 1 aes gt To Slaves ClO 3462 Address 62 clo 3463 Address 63 Address 0 jAddress 1 i From Slaves clo 3562 Address 62 clo 3563 Address 63 Select one ClO 3500 ClO 3501 clo 3600 Address 0 cio 3601 Address 1 OUT 3 7 gt To Slaves block 3 Clo 3662 Address 62 clo 3663 Address 63 i cio 3700 Address 0 IN clo 3701 Address 1 block 3 od i From Slaves ClO 3762 Address 62 clo 3763 Address 63 Words are allocated to slaves starting from address 0 in the output OUT and IN blocks Each address is allocated at least one byte rightmost e More than one word is allocated for each slave according to its node address with more than16 I O points e The rightmost byte of the word is allocated to each slave that has less than 16 I O points The following methods are used for user set allocations e Using a Master User Allocations Table allocated DM Area words e Using the Configurator In the Master User Allo
198. following methods can be used to connect the Configurator to DeviceNet All the connection methods support the same online connection functions Connection from Dedicated Board Serial Connection from COM Card Installed in Computer port of Computer WS02 CFDC1 E Configurator WS02 CFDC1 E oes Hl Sled Sil Configurator ne COM port CS CJ series ISA Board or PCMCIA Card DeviceNet Unit Peripheral bus or Host Link Peripheral or RS 232C port of CPU Unit or RS 232C port of Communications Board Unit DeviceNet Network DeviceNet network The Configurator is treated as a single The Configurator is not treated as a DeviceNet node single DeviceNet Node 1 5 1 Models Product Contents Method of connecting Personal personal computer to computer network Configurator WS02 CFDC1 E Installation disk Either one of the following IBM PC AT or Windows 95 Ver 2 01 CD ROM methods compatible 98 Me NT4 0 e Serial connection or 2000 e Dedicated PCMCIA Card e Dedicated ISA Board see table below Note Use the following dedicated Boards and Card Contents Personal computer 3G8F5 DRM21_ Dedicated ISA Board and Configurator Ver 2 IBM PC AT or Windows 95 98 or NT4 0 installation disk compatible 3G8E2 DRM21_ Dedicated PCMCIA Card and Configurator Ver 2 Windows 95 or 98 installation disk The main functions of the Configurator are illustrated below For further det
199. for SEND 192 RECV 193 and FINS commands for CMND 194 IOWR The following equation can be used to compute the approximate message communications time Message communications time Communications cycle time x No of message bytes 15 6 1 No of message bytes No of data bytes following the FINS command code The communications cycle time depends on whether or not remote I O com munications are being used Message Communications Only No Remote I O Communications The following equation can be used to compute the message communications time when remote I O communications are not being used Communications cycle time 2 see note 0 11 x Tg 0 6 ms Tp The baud rate factor 500 kbps Tp 2 250 kbps Tp 4 125 kbps Tp 8 The communications cycle time will be 2 ms even if remote I O communica tions are not being used Remote I O and Message Communications Performing message communications in addition to remote I O communica tions will increase the message communications time Communications cycle time Communications cycle time for remote I O communications only 0 11 x Tg 0 6 ms Tg The baud rate factor 500 kbps Tp 2 250 kbps Tp 4 125 kbps Tp 8 Varies depending on the baud rate Message Communications Section 8 2 Note 1 Ifthe CPU Unit attempts to send another message or receives a message from another node within the message communications time the second message or the message being r
200. g relay network addresses and relay node addresses 6 Save the finished routing table 7 Go online then load and send the routing table Note Use CX Programmer Ver 2 1 or later to register the DeviceNet Unit in the routing tables Actually registration is possible using versions prior to CX Pro grammer Ver 2 0 but DeviceNet will not be displayed in the list of network types when creating the routing tables with CX Net In this case select one of the network types that are displayed CLK SLK etc This will enable the DeviceNet to be registered in the routing table 6 3 3 Data Send Receive Instructions NETWORK SEND SEND 090 Description Ladder Symbol Operands S 1 source word D ie destination word C 1 control word Control Data 148 SEND 090 transfers data beginning at word S in the local PC to addresses beginning at D at the designated node on the designated Network Local node source Destination node D c l words Variations epecified T SEND The control data depends on the destination The following information is for DeviceNet networks Bits 00 to 07 Bits 08 to 15 Number of words 1 to 267 words 0001 to 010B Destination network address Set to 0 0 to 127 i e 01 to 7F 0 local network Destination node address Destination unit address Using FINS Message Communications Section 6 3 Word Bits 00 to 07 Bits 00 to 03 No of retries 0 to
201. gic error The master scan list data is incor rect Remote I O com munications stop Slave operation stops but mes sage communica tions are enabled MS Flashes red NS Not related Note Remote I O communications will stop 7 segment display AO if DIP switch pin 3 on the front panel is turned ON to specify stopping remote I O communi cations for I O communications errors 119 This section describes the remote I O communications performed as a DeviceNet slave by the DeviceNet Unit 5 1 5 2 5 3 Slave Remote I O Communications 00 000 cee eee ee eee eee Allocation Methods nret enta aee eee eee ees Remote I O and Slave Communications Specifications 5 1 1 5 1 2 5 1 3 Procedures for Using Remote I O Slave Communications Fixed Allocations 5 2 1 5 2 2 Allocated Words Procedure User set Allocations 5 3 1 5 3 2 5 3 3 Connection Types Procedure Connection Types SECTION 5 Remote I O Slave Communications 122 122 123 123 125 125 125 126 127 127 130 121 Slave Remote I O Communications Section 5 1 5 1 Slave Remote I O Communications A CS CJ series DeviceNet Unit can function as a Slave Unit in remote I O communications and a single CS CJ series DeviceNet Unit can function as both a Master Unit and a Slave Unit This section describes Slave communi cations Slave Communications C
202. gle Master PC Set multiple PCs to Slave mode from the allocated 122 and multiple Slave PCs in a net DM Area words or the Configurator work Note Up to 64 Units may be on a network Example 1 Master PC and 63 Slave PCs Sending DeviceNet explicit mes Set the FINS command code to 2801 138 sages Setting the node address for a Set the rotary switches on the front of the 49 DeviceNet Unit DeviceNet Unit Setting the baud rate for the Set the DIP switch on the front of the DeviceNet 50 DeviceNet Unit Unit Stopping remote I O communica Set the DIP switch on the front of the DeviceNet 51 tions for communications errors Unit Holding OUT data in slave I O Set the DIP switch on the front of the DeviceNet 51 memory for communications errors Unit List of Usage Methods by Purpose Section 1 7 Operation Situation Stopping remote I O communica tions with all Slaves Action Stop communications using the Configurator or the Remote I O Communications Stop Switch in the allocated CIO Area words Page Using a scan list in remote I O communications fixed alloca tions Turn ON the Scan List Enable Switch in the allo cated CIO Area words Enabling a scan list in remote I O communications user set alloca tions by allocated DM Area words Set the allocation areas using the allocated DM Area words and turn ON the user set allocations user setting switch for the allocated CIO Area words Cha
203. grammer via the DeviceNet Section 7 1 General 1 0 Allocation OUT 1 0 Allocation IN Communication Cycle Time Message Timer Slave Function Message Timer 19 2000 ms gt Edit Copy to All Device Cancel 2 Double click on the node address that you want to change or select the node address and click on the Edit Button A dialogue box like the one be low will appear Setup Message Timer x New Message Timer 200g ms Setup Range 500 30000 ms Cancel 3 Input the value then click on the OK Button Note To set the same value for all of the devices select the node address es to be set then click on Copy to All Device Note 1 The default setting for the message monitoring timer is 2 000 ms 2 s If it is used without being changed a communications error will result when the CX Programmer is operated The setting range is 500 to 30 000 ms Set in units of ms 2 The message monitoring timer serves as a timeout monitor for message communications both explicit and FINS Settings can be made for each device to which messages are to be sent When the response from the tar get device is slow the setting value must be increased This is often the case when FINS messages are sent across networks because the re sponse time is typically slow However when the setting is increased sub sequent messages cannot be sent to the same device until it is finished waiting for the respo
204. guration of the control panel the other devic es connected to the control panel and other conditions You must there fore confirm that EC directives are met for the overall machine or device particularly for the radiated emission requirement 10 m The following examples show means of reducing noise 1 2 3 1 Noise from the communications cable can be reduced by installing a ferrite core on the communications cable within 10 cm of the DeviceNet Unit Xvi Conformance to EC Directives Ferrite Core Data Line Filter 0443 164151 manufacturered by Fair Rite Products Co Ltd Impedance specifications 25 MHZ 156 Q 100 MHZ 2509 j 30 mm 13 mm Wire the control panel with as thick and short electric lines as possible and ground to 100 Q min Keep DeviceNet communications cables as short as possible and ground to 100 Q min xvii SECTION 1 Features and System Configuration This section provides an overview of the DeviceNet network including features specifications and system configurations 1 1 Overview of DeviceNet 1 0 0 0 ce eee eee 2 1 1 1 Overall System Configuration 0000 3 1 1 2 Applicable Units and DeviceNet Functions 6 12U 3 gt Masts 2 beeren he Mig osm hoy wage iu oS coves 9 lEn Typesrot Slavesncs ag thy snsQe easy haw Vets Oe ea ke Yee aad 9 1 1 5 DeviceNet Configurator 0 0 0 eee eee 15 1 2 DeviceNet Unit Features
205. gurator CIO Area words allocated for the CPU Bus Unit 25 words Unit allocation for one Unit CPU Unit to DeviceNet Unit 9 words for the software switches 6 words for the status area 8 words for the registered slaves and normal slaves tables DM Area words allocated for the CPU Bus Unit 100 words Unit allocation for one Unit Scan List User Setup Table Slave User Setup Table Master I O Allocation Reference Table Slave I O Allocation Reference Table Detailed Slave Status Table etc CPU Unit to DeviceNet Unit Table for communications cycle time settings Other I O memory Set the allocation size table for all slaves in any area when remote I O communications is set to user set allocations from the setting in the allocated DM Area words Item Specifications Supported connections communications 22 e Remote I O communications master and slave Master slave connection poll bit strobe COS cyclic e Explicit message and FINS message communications Explicit connection All conform to DeviceNet communications standards Specifications Remote I O master com munications Item Slave allocation method Fixed allo cations Section 1 3 Specifications Select one of the following fixed allocation areas using the Fixed Allocated Area Switches 1 2 and 3 in the software switches in the allocated CIO Area words Allocated words CIO Area Fixed Alloca
206. h a CS CJ series DeviceNet Unit mounted The read word data is in byte units The response block is returned from high to low bytes Command Block Address L Class ID Address H Service Code Destination node address Instance ID No of bytes read 174 Receiving Explicit Messages Response Block Parameters Important Points Section 6 5 Word data L Service Code Word data L Word data H Word data H Destination node address No of bytes Read data 200 bytes max received Destination node address command The node address of the CS CJ series DeviceNet Unit from which to read data specified in 1 byte 2 digit hexadecimal Service code command response IC Hex is specified for commands For responses the highest bit will turn ON and 9C Hex will be returned Class ID command Always 002F Hex Instance ID command The memory area that will read the data is specified in hexadecimal as shown in the following table Instance ID Hex CPU Unit memory area Word range for read 0000 to 6143 DM D00000 to D32767 WR W000 to W511 HR H000 to H511 EM banks 0 to C En_00000 to En_32767 n 0 to C Address L Address H command The address of the first word from which to read the data is specified in hexadecimal as shown below Address L The lower 2 digits when the first word address is given in 4 digit hexadecimal Address H The higher 2 digits w
207. have been checked for conformity to EMC standards See the following note Whether the products conform to the standards in the system used by the customer however must be checked by the customer EMC related performance of the OMRON devices that comply with EC Direc tives will vary depending on the configuration wiring and other conditions of the equipment or control panel in which the OMRON devices are installed The customer must therefore perform final checks to confirm that devices and the overall machine conform to EMC standards Note Applicable EMS Electromagnetic Susceptibility and EMI Electromagnetic Interference standards in the EMC Electromagnetic Compatibility standards are as follows CS1W DRM21 EN50082 2 EN50081 2 CJ1W DRM21 EN61000 6 2 6 3 Conformance to EC Directives DeviceNet products that meet EC directives must be installed as follows 1 2 3 1 DeviceNet Units are designed for installation inside control panels All De viceNet Units must be installed within control panels 2 Used reinforced insulation or double insulation for the DC power supplies used for the communications power supply internal circuit power supply and the I O power supplies 3 DeviceNet products that meet EC directives also meet the common emis sion standard EN50081 2 When DeviceNet products are built into equip ment however the measure necessary to ensure that the standard is met will vary with the overall confi
208. he node address of the CS CJ series DeviceNet Unit from which the response was sent is returned in hexa decimal 171 Receiving Explicit Messages Section 6 5 CPU Unit Status Read Service Code 40 Hex This PLC Object service reads status details operation status operating mode fatal and non fatal errors etc from the CPU Unit Command Block Class ID Service Code oe Instance ID Destination node address Response Block Service Code Detailed status Destination node address No of bytes received Parameters Destination node address command The node address of the CS CJ series DeviceNet Unit from which to read data specified in 1 byte 2 digit hexadecimal Service code command response 40 Hex is specified for commands For responses the highest bit will turn ON and CO Hex will be returned Class ID command Always 002F Hex Instance ID command Always 0000 Hex No of bytes received response The number of bytes received from the destination node address remote node is returned in hexadecimal Destination node address response The node address of the CS CJ series DeviceNet Unit that returned the response is returned in hexadecimal Read data response The read data is given in the following table The data is returned after the service code in the order shown in the table high to low Operation Status RUN mode Fatal error information L Fatal error information H No
209. he screws to a torque of 0 4 Nem 3 When removing the Unit first loosen the screw at the bottom of the Unit Fixing screws 52 Installing the DeviceNet Unit Section 2 2 Note When mounting the Unit provide the clearance shown below to facilitate easy mounting or dismounting Philips screwdriver CJ series 1 Carefully align the connectors to mount the DeviceNet Unit Connectors P PA205R omron 2 Crom If mee HG EF 2 D D Tgl j Loam ss A sg rs aoe ne Move the yellow sliders on the top and bottom of the Unit until they click into position to lock Slider PAZUSR is _ See a A Ree A a ga A 3 J A AERE 5 Note If the sliders are not securely locked the DeviceNet Unit functions may not operate sufficiently To dismount the Unit move the sliders to the
210. he time stamp will contain all zeroes The DeviceNet Unit s time stamps will not be correct or consistent unless the time has been correctly in the CPU Unit Moreover if the battery is replaced in a CS CJ series CPU Unit the time must be set again the next time that power is turned ON 9 2 2 Error Codes and Detail Codes Detail code Record First byt t stored in irst byte Second byte EEPROM CPU Unit watchdog timer error 00 Hex CPU Unit service monitoring error The servic Monitoring time ms ing time from the CPU Unit is not fixed Other CPU error Bit14 ON Duplicate unit number setting Bit11 ON Unit not in registered I O table Other bits Reserved for system CPU Unit initialization error 00 Hex 00 Hex Event timeout MRC SRC CPU Unit memory error 01 Hex Read error 03 Hex Routing table 02 Hex Write error 04 Hex CPU Bus Unit set tings error 05 Hex Special Unit ClO or DM allocation 219 Error Log Functions Section 9 2 Error code Hex Error Transmission failed because the local node is not participating in the network Detail code Transmission failed because of a node address setting error Transmission failed because of a node address duplication error Transmission failed because the other node is not participating in the network Transmission failed because there is no Unit with the specified unit number Transmission failed
211. he word data is read in order from words high to low bytes Read data 200 bytes max Byte Data Write Address Writes the specified node data in byte units word data The word data is specified in order from high to low bytes Write data 200 bytes max Word Data Write Address Writes the specified node data in word word data units The word data is specified in order from high to low bytes Write data 200 bytes max The commands and responses for the explicit messages that can be sent and received are described on the following pages Note In the following command and response formats all boxes repre sents 1 byte 167 Receiving Explicit Messages Section 6 5 CPU Information Read Service Code 0E Hex Reads CPU Unit information including operating mode fatal non fatal errors and the CPU Unit model Command Block A Attribute ID Class ID Service code Destination Instance ID node address Response Block Service Code Attribute Value Destination node address No of bytes received Parameters Destination node address command The node address of the CS CJ series DeviceNet Unit from which to read the data specified in 1 byte 2 digit hexadecimal Service code command response OE Hex is specified for commands For responses the highest bit be ON and 8E Hex will be returned Class ID command Always 002F Hex Instance ID command Always 0000 Hex
212. hed to the Unit when wiring Removing the label may result in malfunction if foreign matter enters the Unit e Remove the label after the completion of wiring to ensure proper heat dis sipation Leaving the label attached may result in malfunction e Always use the power supply voltage specified in this manual Application Precautions 5 e Double check all the wiring and connection of terminal blocks and con nectors before mounting the Units e Use crimp terminals for wiring Do not connect bare stranded wires directly to terminals e Observe the following precautions when wiring the communications cable e Separate the communications cables from the power lines or high ten sion lines e Do not bend the communications cables Do not pull on the communications cables e Do not place heavy objects on top of the communications cables e Be sure to wire communications cable inside ducts e Use appropriate communications cables e Take appropriate measures to ensure that the specified power with the rated voltage and frequency is supplied in places where the power supply is unstable An incorrect power supply may result in malfunction e Install external breakers and take other safety measures against short cir cuiting in external wiring Insufficient safety measures against short cir cuiting may result in burning e Double check all the wiring and switch settings before turning ON the power supply e Check the user progra
213. hen the first word address is given in 4 digit hexadecimal No of Read Bytes command The number of bytes of read data is specified in 1 byte 2 digit hexadecimal The range is 01 to C8 Hex 1 to 200 decimal No of bytes received response The number of bytes received from the destination node address remote node is returned in hexadecimal Destination node address response The node address of the CS CJ series DeviceNet Unit that returned the response is returned in hexadecimal Read data response The specified area word and byte data is returned in order from word H high byte bits 8 to 15 to word L low byte bits O to 7 If an odd number is specified for the number of read bytes the last 1 byte of data will be read to the high word The actual address L address H and number of read bytes that can be spec ified depends on the model of the CPU Unit of the CS CJ series DeviceNet Unit and the type of memory area Do not exceed the boundary of the data areas for the PC you are using 175 Receiving Explicit Messages Section 6 5 Word Data Read Service Code 1D Hex Word Data Read reads I O memory area data in CPU Units with a CS CJ series DeviceNet Units The read word data is in word units The response block is returned from low to high bytes Command Block Address L Class ID Address H Service Code Destination node address Instance ID No of words read Response Block Se
214. hich COS data has been sent If a send error occurs the corresponding bit will turn ON in Slave Detailed Status 3 2 4 Disconnect Connect Switches Words n 6 to n 9 One Disconnect Connect Switch is allocated to each slave node address If the switch for a slave is turned ON then remote I O communications to that slave will be temporarily stopped i e it is disconnected from the network A communications error will occur at the end for any slave has been discon nected if the corresponding switch is turned ON during communications These switches are used primarily to replace slaves or to reserve a place fora slave that will be added when a Unit is registered in the scan list but not yet connected A communications error and verification error for the slave that has been disconnected will not be generated at the master as long as the cor responding switch is ON Note These switches do not add or remove slaves from the registered scan list 69 Allocated CIO Area Words Section 3 2 Bit15 Bit14 Biti3 Bitl2 Bitl1 BitiO Bit09 Bit08 BitO7 Bito6 BitOS Bit04 Bit03 BitO2 BitO1 Bitoo n 6 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 n 7 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 n 8 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 n 9 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48
215. hing 0011 i Likely Cause A timeout occurred while reading the routing table Troubleshooting with the DeviceNet Unit Indicators Section 9 1 Routing Table Logic Error O Refresh Error Note DeviceNet Unit Response Continues processing but data exchange with the CPU Unit is stopped The routing table is treated as missing Records the error in the error log Flags Allocated for C200H DeviceNet Master Unit CIO n 24 Bit 14 Error Flag and bit 03 the Structure Error Flag will be ON CIO Area Flags Allocated to DeviceNet Unit Bits 00 and 12 of n 10 the Unit Error Flag and Routing Table Error Flag will be ON Correction Register the routing table in the CPU Unit again and restart the CPU Unit Replace the CPU Unit if the error recurs Error Tog Hex Red lashing O ona Likely Cause There is an error in the contents of the routing table DeviceNet Unit Response Records the error in the error log The routing table is treated as missing and processing continues Flags Allocated for C200H DeviceNet Master Unit CIO n 24 Bit 14 Error Flag and bit 03 the Structure Error Flag will be ON CIO Area Flags Allocated to DeviceNet Unit Bits 00 and 12 of n 10 the Unit Error Flag and Routing Table Error Flag will be ON Correction Refer to 1 6 3 Creating Routing Tables Set the routing table in the CPU Unit correctly and restart the DeviceNet Units Error log Hex Hd Red flashing f 0847 Likely Cause
216. ications connector Connect the Network communications cable to this connector The communications power is also supplied through this connector A parallel connector with screws XW4B 05C1 H1 D is provided for node connection Indicators The DeviceNet Units are equipped with the following indicators that indicate the operating status of the node itself and the overall network 1 2 3 1 Two status indicators two color Green or red LEDs 2 A two digit 7 segment display 3 Two dot indicators 46 Nomenclature and Functions Section 2 1 L 2 Two digit 7 segment display MS SDE 1 Status rac gt Ce 2 1 2 Status Indicators MS and NS s LAL 3 Dot indicators The MS Module Status indicator indicates the status of the node itself and the NS Network Status indicator indicates the status of the network The MS and NS indicators can be green or red and they can be OFF ON or flashing alternating 0 5 s ON and 0 5 s OFF The following table shows the meaning of these indicator conditions Meaning likely errors Normal operating status Communications are being performed normally A non recoverable fatal error has occurred Watchdog timer error memory error or system error Replace the DeviceNet Unit Flashing A recoverable non fatal error has occurred Structure error switch setting error PC initialization error PC inter f
217. ill be returned Class ID command Always 002F Hex 177 Receiving Explicit Messages Section 6 5 Instance ID command The type of memory area to which the data will be written is specified in hexadecimal as shown in the following table Instance ID Hex CPU Unit memory area for write Word range 0000 to 6143 DM D00000 to D32767 WR W000 to W511 HR HO000 to H511 EM banks 0 to C En_00000 to En_32767 n 0 to C Address L Address H command The address of the first word to which the data will be written is specified in hexadecimal as shown below Address L The lower 2 digits when the first word address is displayed in 4 digit hexadecimal Address H The higher 2 digits when the first word address is displayed in 4 digit hexadecimal Write data response The specified area and write data is returned in order from word H higher byte bits 8 to 15 to word L lower byte bits O to 7 If an odd number is specified the last 1 byte of data will be written to word H No of bytes received response The number of bytes received from the destination node address remote node onwards is returned in hexadecimal Destination node address response The node address of the CS CJ series DeviceNet Unit that returned the response is returned in hexadecimal The actual address L address H and number of write data words that can be specified depends on the type of CPU Unit
218. ing the user CPU Rack or Expansion Rack No of Mas Fixed allocations ters that can be mounted User set allocations By allocated DM Area words setup tables in the allocated DM Area words By Configurator 16 Units max Unique words must be allocated using the Config urator No of Slaves that can be mounted Fixed allocations 3 Units max Unique words must be allocated using the Allo cated CIO Area Words Software Switches User set allocations By allocated DM Area words 16 Units max Unique words must be allocated using the user setup tables in the allocated DM Area words By Configurator 16 Units max Unique words must be allocated using the Config urator No of Units that can be connected per network 64 Units max 21 Specifications Section 1 3 Words allo cated in the CPU Unit Item DeviceNet remote I O communi cations When used as a Master Fixed alloca tions Specification Fixed words in the CS CU series DeviceNet Area in the CIO Area any of three settings User set alloca tions Any I O memory Set using the allocated DM Area words or Con figurator When used as a Slave Fixed alloca tions Fixed words in the CS CU series DeviceNet Area in the CIO Area one of three settings User set alloca tions Any I O memory words Set in allocated DM Area words or Con fi
219. instructions the same as or longer than the message monitoring timer i e CMND SEND 090 RECV instructions gt message monitoring timer If a lot of timeouts occur maintain this relationship but lengthen the time for both When performing remote programming or monitoring from the CX Program mer scheduled to be supported by version 2 1 and later set the message monitoring timer in the CS CJ series DeviceNet Unit mounted to the PC con nected to the CX Programmer to at least 20 s 20 000 ms This setting is required only for the Unit that will perform remote programming 6 1 7 Message Communications Errors 140 The following table shows the main errors that occur when messages are sent or received Refer to SECTION 9 Troubleshooting and Maintenance for coun FINS Commands and Responses Section 6 2 termeasures and errors recorded in error history that are not shown by the indicators Network power error Indicators Send timeout No change NS Not lit 7 segment display EO Unit status 1 word n 10 Bit 07 turns ON Error history code Hex E2 Bit 08 turns ON Routing table error Flashing red No change HC Bit 12 turns ON Node address duplicated Bus Off detected No change Lit red FO Bit 06 turns ON F1 Bit 05 turns ON CPU Unit service monitoring error Other CPU error Flashing red Not lit HE H7 Local
220. ion Time 0 05 0 008 x S x Tp x n ms S Total number of inputs and outputs in the COS cycle connection bytes Tp The baud rate factor 500 kbps Tp 2 250 kbps Tp 4 125 kbps Tp 8 n Number of nodes occurring simultaneously within 1 communications cycle time in the COS Cyclic connection N Number of Slaves Communications Time Slave Output Slaves with Less Than 8 Bytes of Output Input Slaves with Less Than 8 Bytes of Input Mixed I O Slaves with Less Than 8 Bytes of Input or Output The communications time per Slave is the communications time required for a single Slave The following equations show the communications time Slave Tpr for each kind of Slave Unit TRT 0 016 xTpg x SoutTi 0 11 x Tp 0 07 ms Souti The number of Output Slave output words Tg The baud rate factor 500 kbps Tp 2 250 kbps Tp 4 125 kbps Tp 8 TRT 0 016 xTp x Sint 0 06 x Tp 0 05 ms Sini i The number of Input Slave input words Tg The baud rate factor 500 kbps Tp 2 250 kbps Tp 4 125 kbps Tp 8 TRT 0 016 x Tg x SouT2 Sino 0 11 x Tg 0 07 ms Sout2 The number of Mixed I O Slave output words Sino The number of Mixed I O Slave input words Tg The baud rate factor 500 kbps Tg 2 250 kbps Tp 4 125 kbps Tp 8 191 Remote I O Communications Characteristics Section 8 1 Slaves with More Than 8 Bytes of Input or Out put Tat Tou Tayte in X Bin Tayte out X Bout ms
221. ions FINS Message Communications CS CJ series DeviceNet Unit DeviceNet Unit Note Refer to 6 3 Using FINS Message Communications for details on FINS com munications User set allocations With CS CJ series DeviceNet Units remote I O communications can be allo without the Configurator cated in any area without the Configurator simply by using DM Area settings If the Configurator is used it allows you to change the node address order for more flexible I O allocations This feature ensures the proper I O allocations for any application and it makes effective use of PC memory by simplifying programming Note Refer to 4 4 User set Allocations for details Slave Functions CS CJ series DeviceNet Units can be used as both masters and slaves and master and slave communications can be executed either separately or simul 16 DeviceNet Unit Features Section 1 2 taneously A Unit that is used as a slave supports fixed and user set alloca tions The maximum I O for the slave function is 100 words CS CJ series DeviceNet Unit Master Master PC DeviceNet CS CJ series DeviceNet Unit Slave Slave PC 64 nodes max Note Refer to SECTION 5 Remote I O Slave Communications for details Configurator Connection The Configurator can also be connected either as a DeviceNet node or to a through a Serial Line serial port on a CPU Unit or a Serial Communication Unit Board CS CJ series DeviceNet Unit Mast
222. ions Send Explicit message communications function Receive 134 Overview Section 6 1 Overall Structure CPU Unit DeviceNet Unit 3 FINS message function lt CMND 490 instruction FINS message gt CMND 490 instruction 2801 Hex Explicit message OMRON special message communications FINS message DeviceNet message communications Explicit message Note If only the message communications function is being used and the remote O communications function is not being used message communications are possible even if the master function is disabled In this case it is not neces sary to register a scan list 6 1 2 FINS Message Communications Messages can be exchanged using FINS commands between DeviceNet nodes masters and or slaves that support FINS messages DeviceNet network Type of FINS message Data send receive FINS commands Network SEND RECV instructions CMND 490 instructions communications instructions PC to PC both must be CS CJ series PC a RETR Sea CS CJ series PCs with a ernes series CS CJ series DeviceNet Command to Unit See note 1 Note Inter network Command communications is pos sible with other DeviceNet networks Controller Link networks or other networks See CS CJ series PC Command to note 2 CPU Unit Command PC to OMRON Slave CS CJ series PC CS CJ serie
223. ission across different types of networks between DeviceNet and other networks e g Controller Link SYSMAC LINK and Ethernet can cross up to three levels Specifications Section 1 3 Item Other func Remote programming monitoring func tions tions Specifications A CX Programmer connected to the serial communications port of a PC to which a CS CJ series DeviceNet Unit is mounted can remotely program and monitor DeviceNet slave PCs with a CS CJ series DeviceNet Unit mounted Either the peripheral port or built in RS 232C port can be used with the Host Link or periph eral bus protocol Scheduled for CX Programmer Ver 2 1 or later Note 1 Serial ports on a Serial Communications Board Unit can be used in addition to the ports on the CPU Unit 2 Inter network communications across up to 3 levels is possible even over different types of network 3 This is also possible from a CX Programmer on net work Operation from the Configurator con nected through a serial line Allows all online monitoring and setup functions to be performed on a master PC on the DeviceNet network from the Configurator connected through a serial line scan list registration communi cations parameter settings etc Memory Card backup function Allows DeviceNet Unit data settings scan list communication cycle time settings etc to be backed up as a file to a Memory Card in the CPU Unit The data settings can also be restore
224. it green on the master and all slaves Note The mode can be confirmed from the dots on the 7 segment display on the Master Unit Left dot not lit Scan list enabled Left dot flashing Scan list disabled Switch the CPU Unit to RUN mode User set Remote I O Allocations Using the Configurator 98 1 2 3 Note 1 Oso 1 Connect the Configurator to the network through a serial line or dedicated Board Card Turn ON the communications slave and PC power supplies Note Turn ON the communications power supply prior to turning ON the slave power supply or the slaves may not go online Switch the CPU Unit to PROGRAM mode Perform the following steps to allocate areas create scan lists and down load the settings to the nodes a Create a network configuration offline on the Configurator b Enable master communications in the CS1W DRM21 properties c Create master device parameters d Save the data as a network component file Note If desired you can also go directly online and download the network component file to the network devices without saving the file e Read the network component file go online and download the file to the network devices Start master remote I O communications with the scan list enabled Use the software switches to start or stop communications Check to see if both the MS and NS indicators are lit green on the Master Unit and all Slave Units Note The mode can be confirmed from
225. itches node address 1 2 3 turned OFF to ON Time I O refresh CPU Unit user program COS send instruction Node 1 Node 2 Node 3 Node 4 Node 1 ae Node 2 ei Node 3 a Node 4 DeviceNet Unit Communications cycle time Communications cycle time Slave 1 Slave 2 Slave 3 O using normal connection _ gt Output using COS sent to fit in between normal cycles 239 Appendix C FINS Commands and Responses for DeviceNet Units List of Command Codes Command type Command code RESET Reference page CONTROLLER DATA READ CONTROLLER STATUS READ ECHOBACK TEST ERROR LOG READ ERROR LOG CLEAR Refer to SYSMAC CS CJ Series Communication Commands Reference Man ual W342 for details on end codes RESET 0403 Resets restarts the DeviceNet Unit Command Block Resets the DeviceNet Unit 04 03 SSS Command code Response Block There are no responses for this command End Code End code hex 1001 The command length exceeds maximum command length Explanation e Resets the DeviceNet Unit e A communications error has occurred at the Slave but the Slave will restore after the DeviceNet Unit has started up e The remote device communicating the message may have timed out but communications can be performed normally after the DeviceNet Unit has started up READ CONTROLLER INFORMATION 0501 R
226. ith a CS CJ series DeviceNet Unit remote I O communications slaves can be allocated in any area CIO WR HR DM or EM using one of the following methods e Setting through the allocated DM Area words Master User Allocations Table e Setting through the Configurator Set through the allocated DM Area words Master User Allocations Table CIO 0000 to 6143 WR W000 to W511 HR HROOO to HR511 DM D00000 to D32767 EM E00000 to E32767 Banks 0 to C Set through the Configurator No of allocated blocks 2 blocks OUT 1 and IN 1 OUT 1 and IN 1 can be created anywhere in the above areas 4 blocks OUT 1 IN 1 OUT 2 and IN 2 OUT 1 IN 1 OUT 2 and IN 2 can be cre ated anywhere in the above areas Block allocation order Any order Node address order Allocations must be in order of node addresses 0 to 63 in ascending order Note 1 Not all nodes need to be allo cated reducing the number of words required 2 Node addresses do not have to correspond between blocks Any order Note 1 Node addresses do not have to correspond between blocks 2 One node address cannot be allocated to different blocks Start bit for allocations Allocations can start from bit 00 or bit 08 Allocations starting from bit 08 are in 1 byte units only All allocations start from bit 00 Cannot start from bit 08 All allocations are in 1 word units Allocation size Per block 500 words max
227. ith both master and slave communications dis abled 41 List of Usage Methods by Purpose 1 7 List of Usage Methods by Purpose Situation Action Section 1 7 Design 42 Allocating any In order of node Set using the allocated DM Area words 108 words for addresses Master User Allocations Setup Table and Alloca remote I O tion Size Setup Table Note Allocations using allocated DM Area words Order of node addresses and two blocks OUT 1 and IN 1 Not in order of Set using the configurator 113 node Note Allocations using Configurator Any node addresses address order and four blocks OUT 1 IN 1 OUT 2 and IN 2 Allocation is much easier using a wizard Using the Unit as a slave Set using the allocated DM Area words 122 Performing message communi Execute communications instructions from the user 134 cations between PCs to which program DeviceNet Units are mounted Mounting multiple DeviceNet 3 Units max with fixed allocations 92 Units using master communica 16 Units max with user set allocations tions to a single PC Mounting multiple DeviceNet 3 Units max with fixed allocations 122 Units using slave communica 16 Units max with user set allocations tions to a single PC Connecting multiple PCs master Supported by user set allocations using allocated 122 communications in a network DM Area words or user set allocations using the Configurator Connecting a sin
228. ivese ns acaee obese seseceasececestesecegouradases suse eds Receiving FINS Message Communications CS1W DRM21 CS1W DRM21 CJ1W DRM21 CJ1W DRM21 C200HW DRM21 V1 CVM1 DRM21 V1 CS CJ series CPU Unit oye ee ee peepee fp PRECZ CPU Jo ft series CPU Unit Command can be received DeviceNet CH E O Command cannot be received AEO OIE PEETS MG Sooo cee eto APT E eee EE eee eee E S E E Command cannot be received Note C200H series DeviceNet Master Units C200H DRM21 V1 and CVM1 CV series DeviceNet Master Units CVM1 DRM21 V1 both support FINS mes sage communications but it is executed by a special OMRON method With this CS CJ series DeviceNet Unit CS1W DRM21 or CJ1W DRM21 the standard message protocol for DeviceNet i e explicit messages has been used for FINS communications For this reason FINS communications is not possible between CS CJ series DeviceNet Units CS1W DRM21 or CJ1W DRM21 and C200H series DeviceNet Master Units C200H DRM21 V1 or CVM1 CV series DeviceNet Master Units CVM1 DRM21 V1 6 1 3 Explicit Message Communications Service requests can be sent to C200H I O Link Units and other OMRON slaves PCs with CS CJ series DeviceNet Units and DeviceNet masters and slaves made by other manufacturers using explicit messages defined for DeviceNet Service requests to read write CPU Unit status I O memory can also be received from PCs with C200H series DeviceNet Master Units C200HW DRM21
229. lag word n 11 bit 04 is OFF turn ON the Scan List Clear Switch word n bit 01 to change to the Scan List Disable mode Note If the Unit is already in the Scan List Disable mode if the Scan List Disabled Flag word n 11 bit 04 is ON skip this step and go onto the next step If the Scan List Clear Switch is turned ON when the Unit is in the Scan List Disable mode a Unit error will occur and a C2 error will be displayed on the 7 segment display on the front panel Turn ON the Master Fixed Allocation Setting 1 to 3 Switch word n bits 08 to 10 in the Software Switches in the words allocated in the CIO Area to select the fixed allocations area from1 to 3 One word will be allocated per node address in order of node addresses for the output OUT block and one word for the input IN block in the CS CU series DeviceNet CIO Area First word n CIO 1500 25 x unit number Software Switch address Word n bit 08 Software Switch name Master Fixed Allocation Setting 1 Switch Fixed allocations area number Fixed allocations area Allocated OUT area CIO 3200 to CIO 3263 Allocated IN area CIO 3300 to CIO 3363 Word n bit 09 Master Fixed Allocation Setting 2 Switch Fixed allocations area 2 CIO 3400 to CIO 3463 CIO 3500 to CIO 3563 Word n bit 10 Master Fixed Allocation Setting 3 Switch Fixed allocations area CIO 3600 to ClO 3663 CIO 3700 to CIO 3763 Step 5 T
230. le time 0000 to nications cycle time in millisec ds The default settings is present value ms FFFF Hex On 0 to 65535 0000Hex 0 Communications cycle time maxi mum value ms Communications cycle time mini mum value ms 3 3 6 Master User set Allocations Reference Table The settings area and size for a maximum of four blocks OUT block 1 OUT block 2 IN block 1 and IN block 2 can be accessed in the master user set allocations reference table The OUT 1 and IN 1 areas and sizes are valid even if a Configurator is not being used Word Bit 15 Bit 08 Bit 07 Bit 00 m 19 Reserved by system OUT block 1 area m 20 First word in OUT block 1 m 21 No of bytes in OUT block 1 m 22 Reserved by system IN block 1 area m 23 First word in IN block 1 m 24 No of bytes in IN block 1 m 25 Reserved by system OUT block 2 area m 26 First word in OUT block 2 m 27 No of bytes in OUT block 2 m 28 Reserved by system IN block 2 area m 29 First word in IN block 2 m 30 No of bytes in IN block 2 87 Allocated DM Area Words Section 3 3 Ranges Name Range Details OUT block 1 2 area See Areas Shows the area First word in OUT 27 Word Shows the first word for the block block 1 2 Ranges No of bytes in OUT 0000 to Shows the block size in bytes The OUT block block 1 2 03E8 Hex has not been allocated if this is set at 00 Hex 0 to 1 000 bytes IN block 1 2 area See
231. lease 2 0 Vendor name OMRON Corporation Vendor ID 47 Device profile name Communication Adapter Profile number 12 Manufacturer catalog number Manual number W267 W347 Manufacturer revision 1 0 Physical conform Network current consumption 24 VDC 30 mA max ance data Connector type Open plug Physical insulation Yes Supported indicators Module Network MAC ID setting Rotary switch Default MAC ID 63 Baud rate setting DIP switch Supported baud rates 125 kbps 250 kbps and 500 kbps Communications data Predefined Master Slave connection set Group 2 client Group 2 only client Group 2 server Dynamic connection support UCMM Yes Object Mounting Identity Object 01 Hex Attribute Object class Not supported Explicit message fragmentation support Yes Service Not supported ID content Object instance Attribute 1 Vendor Get read Set write 47 2 Product type 12 3 Product code 02 4 Revision 2 1 5 Status bits supported 6 Serial number Unique for each Unit 7 Product name CS1W DRM21 or CJ1W DRM21 8 State DeviceNet Service 05 Reset Service Parameter option OE Get Attribute Single Message Router Object 02 Hex Attribute Object class Not supported Service Not supported Object instance
232. ll be ON Correction Check the network power supply and the wiring of the network cables Error log Hex fei o OFF orea gasning 002 The NS indicator will flash red if the error occurs during remote I O communi cations otherwise the indicator will be OFF Likely Cause A transmission request was not completed normally for one of the following reasons e There is not even one device such as a slave in the network e The communications speed settings are not the same in all of the nodes e CAN controller error DeviceNet Unit Response Records the error in the error log As long as transmission timeout is in effect remote I O communications will remain stopped and errors will be returned in response to requests for mes sage transmissions The indicator status scanning and message processing will return to normal when the network power supply is restored although scanning will not resume if the DeviceNet Unit is set to stop remote I O com munications when a communications error occurs Flags Allocated for C200H DeviceNet Master Unit CIO n 24 Bit 14 Error Flag and bit 05 the Sending Error Flag will be ON CIO Area Flags Allocated to DeviceNet Unit Bits 00 and 08 of n 10 the Unit Error Flag and Send Timeout Flag will be ON Correction Check the following e Matching master and slave baud rates e Proper cable lengths trunk and branch lines Broken or loose cables e Installation of terminators at both ends of the
233. llocated CIO and DM Words This section describes the words allocated to the DeviceNet Unit in the CIO Area and DM Area These words both enable controlling the DeviceNet Unit and accessing Unit and network status 3 1 3 2 3 3 Overview of Word Allocations 3 1 1 3 1 2 Allocated CIO Area Words 3 2 1 3 2 2 3 2 3 3 2 4 3 2 5 3 2 6 3 2 7 3 2 8 3 2 9 3 2 10 3 2 11 3 2 12 3 2 13 Allocated DM Area Words 3 3 1 3 3 2 3 3 3 3 3 4 3 3 5 3 3 6 3 3 7 3 3 8 Allocated CIO Area Words 1 0 0 0 ccc ccc eee eee ees Allocated DM Area Words 0 0 0 0000 ees Software Switches 1 Word n 20 0 eee Software Switches 2 Word n 1 0 0 0 0 c eee eee Master COS Send Switches Words n 2 ton 5 Disconnect Connect Switches Words n 6 ton 9 Unit Status 1 Word n 10 0 0 eee Unit Status 2 Word n 11 2 0 0 0 anaana Master Status 1 Word n 12 2 0 0 0 0 ec Master Status 2 Word n 13 0 0 c cee eee Slave Status 1 Word n 14 2 0 0c ee Slave Status 2 Word n 15 2 0 ees Registered Slave Table Words n 16 ton 19 0 Normal Slave Table Words n 20 to n 23 0085 C200H Master Replacement Master Status 1 Word n 24 Communications Cycle Time Setup Table Master User Allocations Setup Table 0 Allocation Size Setup Table 0 0 000000 Slave User Alloc
234. llocated to more than one Unit Error code on the front panel 7 seg ment display Error with multiple Units mounted Display E4 No check for multiple mounted Units PC initializa tion error Display F5 Used more detailed error codes in initializa tion phase Display H RAM error Display F5 Changed to H3 related to the above Incorrect switch setting Display F5 Changed to H5 related to the above Routing table error Display E5 Changed to HC related to the above PLC Unit WDT error Display All lit Display E7 Unit does not reset Explicit server functions run EEPROM error Display F8 Stops operation to store the scan list Display E3 Operation continues for error history only scan list stored in flash ROM Configura tion data error scan list SUM error 32 Display E8 Continues operation in DIS ABLED mode Display F7 Stops remote I O communica tions in Master communications Outline of the Configurator Section 1 5 1 5 Outline of the Configurator Allocations for remote I O communications can be set in any order of node addresses from the Configurator Users can also set remote I O communica tions connections Device master slave registration I O allocations and other operations are especially easy to perform because of graphic operations including dragging and dropping icons Any of the
235. ltage may drop and result in the outputs being turned OFF As a countermeasure for such problems external safety measures must be provided to ensure safety in the system The CPU Unit refreshes I O even when the program is stopped i e even in PROGRAM mode Confirm safety thoroughly in advance before changing the status of any part of memory allocated to I O Units Special I O Units or CPU Bus Units Any changes to the data allocated to any Unit may result in unex pected operation of the loads connected to the Unit Any of the following oper ation may result in changes to memory status e Transferring I O memory data to the CPU Unit from a Programming Device e Changing present values in memory from a Programming Device e Force setting resetting bits from a Programming Device e Transferring I O memory files from a Memory Card or EM file memory to the CPU Unit e Transferring I O memory from a host computer or from another PC ona network Execute online edit only after confirming that no adverse effects will be caused by extending the cycle time Otherwise the input signals may not be readable Confirm safety at the destination node before transferring a program to another node or changing contents of the I O memory area Doing either of these without confirming safety may result in injury 4 Operating Environment Precautions Do not install the Unit in any of the following locations e Locations subject to direct sunlight
236. ly the requests will generate errors but they will not alter Unit operation The corresponding error bits in the follow ing words will turn ON if a request made by a software switch ends in an error e Slave Status 1 Word n 1 n CIO 1 500 25 x unit number Status Con Unit operation Operation Default trolled by conditions setting CPU Slave Unit func oper tion ating mode 00 Reserved m San as to by system 65 Allocated CIO Area Words Section 3 2 Bit Name Status Con trolled by Unit operation Enables slave communications The Unit automatically restarts To use fixed allocations turn this switch ON after turning ON a Slave Fixed Allocation Setting Switch word n 1 bits 08 to 10 To used user set allocations turn this switch ON after turning ON the User Setting Switch word n 1 bit 11 Once enabled the Unit will function as a slave regard less of whether the power is turned OFF and back ON again until the Slave Stop Switch word n 1 bit 07 is turned ON Note 1 Slave communications are enabled in the default setting 2 If this bit is turned ON with Slave enabled a Unit status error will occur and a C2 error will be displayed on the 7 segment display The 7 segment display will go out automatically after 30 seconds Returns to OFF at the start of slave communications Operation conditions CPU Slave Unit func o
237. m for proper execution before actually running it on the Unit Not checking the program may result in an unexpected opera tion e Confirm that no adverse effect will occur in the system before attempting any of the following Not doing so may result in an unexpected operation e Changing the operating mode of the PC e Force setting force resetting any bit in memory e Changing the present value of any word or any set value in memory e After replacing Units resume operation only after transferring to the new CPU Unit and or Special I O Units the contents of the DM Area HR Area and other data required for resuming operation Not doing so may result in an unexpected operation e When transporting or storing the product cover the PCBs with electrically conductive materials to prevent LSIs and ICs from being damaged by static electricity and also keep the product within the specified storage temperature range e When transporting the Unit use special packing boxes and protect it from being exposed to excessive vibration or impacts during transportation e Do not attempt to disassemble repair or modify any Units XV Conformance to EC Directives 6 6 Conformance to EC Directives 6 1 Applicable Directives e EMC Directives 6 2 Concepts EMC Directives OMRON devices that comply with EC Directives also conform to the related EMC standards so that they can be more easily built into other devices or machines The actual products
238. master will remain enabled even if the power is turned OFF and back ON again Note Execute this only when master communications are turned OFF If the Master Enable Switch is turned ON when master communica tions are enabled a Unit error will occur and a C2 error will be dis played on the 7 segment display on the front panel Perform the following steps to start with the scan list disabled Skip to step 5 to re register and enable the scan list Skip to step 6 to start with the scan list enabled without any changes to the fixed allocations or scan list Note The mode can be confirmed from the dots on the 7 segment display on the Master Unit Left dot not lit Scan list enabled Left dot flashing Scan list disabled a Turn ON a Master Fixed Allocation Setting Switch word n bits 08 to 10 b Monitor and check the registered slave data area to see if communica tions are possible with registered slaves c Turn ON the Scan List Enable Switch word n bit 00 from a Program ming Device d Go to step 6 Perform the following steps to re register the scan list when starting with the scan list enabled a Turn ON the Scan List Clear Switch word n bit 01 from a Program ming Device b Turn ON a Master Fixed Allocation Setting Switch word n bits 08 to 10 c Monitor and check the registered slave data area to see if communica tions are possible with registered slaves d Turn ON the Scan List Enable Switch word n
239. max per block Using the allocated DM Area words 200 words total for 2 blocks Using the Configurator 300 words total for 3 blocks Message communica tions Execute com mands Sending receiving data No Any FINS command IOWR instruction Sending receiving data SEND RECV instructions Any FINS command CMND instruction Max No of nodes for message communica tions 8 nodes 63 nodes Gateway function from serial com munications Not supported Allows the CX Programmer connected by a serial line to remotely control and monitor a PC on the DeviceNet scheduled for Ver 2 1 Inter net work function Not supported Supported Allows inter network communications between DeviceNet and networks like Con troller Link and Ethernet 3 levels max Configura tion connec tion method Serial con nection Not supported Supported Peripheral Bus or Host Link con nection to a CPU Unit or a Serial Communi cation Board Unit Direct con nection to DeviceNet Supported Supported I O communications at star tup Specifies I O communications start stop after each slave on the scan list starts nodes that perform explicit message com munications must also be registered in the scan list Sets Master start stop using a software switch or the Configurator Performs I O communications only with slaves registered in the scan list Explicit message nodes do
240. med for damages resulting from the use of the information contained in this publication Nn nr FW NY TABLE OF CONTENTS PRECAUTIONS a 4468 lt tessanss eeu meseeGcnt use Intended Audiences srves esse oie che aes hee see a eae General Precautions re meatag the Casey hy Ra ie E AE ELE Satety Precautions cea hose ey aes Pare AES ere SEN ae Operating Environment Precautions 0 0 0 0 cece eee Application Precautions 0 0 eee een eee eens Conformance to EC Directives 2 0 0 eee eens SECTION 1 Features and System Configuration 1 1 1 2 1 3 1 4 1 5 1 6 1 7 Overview of DeviceNet 0 e a ccc neee DeviceNet Unit Features 0 0 eee ee Specifications sacs ieee a a E pore ett aM tots acess acs pier nage AETA Comparison with Previous Models 0 00 0 cece eee eee ee Outline of the Configurator 00 0 eee eee Basic Operating Procedures uuu nunana renarna List of Usage Methods by Purpose SECTION 2 Nomenclature and Installation 0 2 1 2 2 Nomenclature and Functions Installing the DeviceNet Unit SECTION 3 Allocated CIO and DM Words ee000 3 1 3 2 3 3 Overview of Word Allocations Allocated CIO Area Words 0000 cee euee Allocated DM Area Words 000000 e eee SECTION 4 Remote I O Master Communi
241. mmunications checks on slave vendor ID device type and product code data Setting an explicit message monitor timer list e Setting a COS cyclic heart beat timer value Setting the communications cycle time Note 1 A device Parameter Wizard is supported for the Master 2 Using remote I O master allocations eliminate restrictions on node addresses Furthermore a number of masters can be mounted to the PC with no allocation area duplication Setting parameters for other manufacturers slaves EDS file required Setting node addresses and baud rates Monitoring func tions e Listing information on devices connected to the network in node address order or remote I O configuration order for example Monitoring Unit status data Master function status data and slave function status data Monitoring Master error history CVM1 DRM21 V1 or C200HW DRM21 V1 Up to 20 records of time error code and error condition data CS1W DRM21 Up to 64 records of time error code and error condition data e Monitoring communication cycle time Storage func tions Saving offline device information prepared with master device parameters or online network device information Such data is saved as network configuration files Other functions e Reading writing and preparing EDS files e Checking for duplicate I O allocations in master parameters e Printing master slave device parameters e Installing Expansion Modules to
242. mote I O com munications started or if the number of I O points did not match the number registered Remote I O communications can be performed with fixed allocations instead of a scan list in order to change a system component Do not operate without a scan list during actual system operation Use this mode only to replace a Master Unit or to change a system component change a connected slave or a node address Note a To disable the scan list turn ON the Scan List Clear Switch word n bit 01 during remote I O communications with the scan list en abled with fixed allocations user set allocations using allocated DM Area words or user set allocations using the Configurator In all these cases remote I O communications are executed using the fixed allocations area that was last used when the list was dis abled All slaves are targeted for remote I O communications with the scan list disabled b Slaves that are connected to the network while communications are in progress are also targeted for communications Errors can not be confirmed however even if there are slaves present that did start up due to problems such as equipment failure because there is no scan list available to check communications against The communications cycle time will also be significantly longer than the calculated value c The scan list is automatically enabled when user set allocations are set using the allocated DM Area words or the Configurator If
243. mum number of errors that can be recorded in DeviceNet Unit error history Fixed to 0040 hex 40 decimal for DeviceNet Units No Stored Response The number of error history records stored at the point when the command was executed The range is 0000 to 0040 hex 0 to 64 decimal Error History Data Response 244 FINS Commands and Responses for DeviceNet Units Appendix C Returns the error history for the number specified by Read Record No in order from the Read Start Record No The total number of Error History Data bytes is 10 x Read Record No One record of error history data is structured in 10 bytes as shown in the fol lowing diagram 1st byte 10th byte tA ote a er Minute Second Day Time Year Month Error code Detailed informa tion e Error Codes Detailed Information Shows the contents of the error stored in that record Refer to 9 2 Error Log Functions for details e Minutes Seconds Day Time Year Month Shows the date and time that the error stored in that record occurred Explanation e Reads the error history data recorded in the DeviceNet Unit from the specified point for the specified number of records e Up to 64 records are recorded in the DeviceNet Unit and the oldest data will be the first to be replaced when the maximum is reached Important Points e If there are fewer error history records than the Read Record No the records up to the last latest recor
244. n tus mode Unit Setup Writes user settings scan list communica File tions cycle time settings etc as a file on Backup the Memory Card in the CPU Unit See 7 2 Switch Memory Card Backup Functions for details Note Files can only be backed up with the scan list enabled Returns to OFF after the data is written to a file Note The File Read Write Error Flag word n 11 bit 08 in Unit Status 2 will turn ON if data failed to be writ ten to file Note 1 When the Master function is enabled the Unit Setup File cannot be backed up unless the scan list is enabled 3 2 3 Master COS Send Switches Words n 2 to n 5 One Master COS Send Switch is allocated to each slave node address If the switch for a slave is turned ON then COS output data will be sent to that slave Bit15 Bit14 Bit13 Biti2 Biti1 BitiO Bit09 Bit08 Bit07 Bit06 Bit0S Bit04 Bit03 Bito2 BitO1 BitOO n 2 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 n 3 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 n 4 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 n 5 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 More than one of these switches may be turned ON at the same time The switches will return to OFF starting at the switches for the slaves to w
245. n I O memory Slave Master Bit 15 0 First word specified to OUT 1 area rs OUT area Bit 15 0 First word specified IN area ia IN 1 area p re Connection Types The type of connection cannot be specified when the allocated DM area words is used for settings The master specifies a poll bit strobe COS or cyclic connection Step 1 Stop Slave Communications If the Unit is already functioning as a slave turn ON the Slave Stop Switch word n 1 bit 07 to stop slave communications This step is not necessary if slave communications have already stopped Step 2 Set the Slave User Allocations Table This table is used to specify the areas first words and sizes for OUT block 1 and IN block 1 e Slave User Allocations Table First word m D30000 100 x unit number Allocated DM area words Details Word m 8 Bits 00 to 07 Slave OUT 1 area Word m 9 Bits 00 to 15 First word of the slave OUT 1 area Select from fol lowing table Word m 10 Bits 00 to 07 Slave OUT 1 area size in bytes Word m 11 Bits 00 to 07 Slave IN 1 area Word m 12 Bits 00 to 15 First word of the slave IN 1 area Select from fol lowing table Word m 13 Bits 00 to 07 Slave IN 1 area size in byte 127 User set Allocations Section 5 3 Note e Areas and Word Ranges for the OUT 1 IN 1 Areas Word range 00 Hex The block is not used
246. n error occurred in the duplicate node address check word n 10 bit 06 e A Bus OFF error has occurred word n 10 bit 05 72 Allocated CIO Area Words Section 3 2 Bit Name Remote I O Communica tions Flag Status Controlled by Unit operation Indicates that remote I O communications are being performed for the master function Normally the Unit will perform remote I O communica tions automatically Note This bit only indicates the start of remote I O communications and does not indicate whether data has actually been exchanged with slaves Actual data exchange between one or more slaves is mon itored from I O Data Communications Flag word n 12 bit 15 Therefore use I O Data Communications Flag rather than this bit as the input condition in I O processing for slaves from the ladder program Indicates remote I O communications have stopped This bit turns OFF in order to stop communications under the following conditions e No slaves are registered in the scan list e Invalid Setup Data Flag word n 12 bit 04 e A remote I O communications error or sending error network power er ror or send timeout error occurred with DIP switch pin 3 remote I O communications stop continue setting for communications errors on the front panel turned ON The remote I O Communications Stop Switch word n bit 04 is ON Reserved by system Master Function Enabled Flag Indicates th
247. n fatal error information L Non fatal error information H Message exists does not exist L Message exists does not exist H Error code L Error code H Error message 16 bytes 172 Receiving Explicit Messages Section 6 5 e Operation status Returns the operation status of the CPU Unit in 1 byte 2 digit hexadecimal e Operating mode Returns the operating mode of the CPU Unit in 1 byte 2 digit hexadecimal 0001 Hex PROGRAM mode 0002 Hex MONITOR mode 0004 Hex RUN mode e Fatal error information Returns the fatal error information for the CPU Unit in 2 bytes low to high 15 14131211109 8 7 6 543210 1 System error FALS 1 Cycle time over 1 Program error 1 I O setting error 1 No of I O points exceeded 1 Inner Board fatal error 1 Number duplicate use error 1 I O Bus error 1 Memory error e Non fatal error information Returns the non fatal error information for the CPU Unit in 2 bytes low to high 15 1413 1211109 8 7 65 43 2 0 UGE Deeial tie Unspecified reserved for system use 1 Special I O Unit error 1 CPU Bus settings error 1 Battery error 1 SYSMAC BUS error 1 Special I O Unit 1 CS1 series CPU Bus Unit error 1 Inner Board error 1 I O verification error 1 PC system error 1 Unspecified reserved for system use 1 Basic I O Unit error 1 Interrupt task error 1 Unspecified reserved for system use 1 System error FAL
248. n the network Use the following table to troubleshoot scan list problems Error Probable cause A scan list couldn t be created by the cre ate scan list operation A scan list couldn t be cleared by the clear scan list operation Neither the create scan list nor clear scan list operations can be performed until the I O Data Communications flag goes ON The I O Data Communi cations flag will be OFF for a short time after the power is first turned ON and after the scan list clear operation is executed Make sure that the I O Data Communications flag is ON before attempting to execute the create scan list or clear scan list operations The create scan list or clear scan list operation was executed but the master s 7 segment displays still display The display usually lasts for 1 s after the create scan list operation or 0 1 s after the clear scan list operation 224 Restart the DeviceNet Unit execute the clear scan list operation and then the create scan list operation if necessary Replace the DeviceNet Unit if this doesn t correct the problem Maintenance and Replacement Section 9 4 9 4 Maintenance and Replacement 9 4 1 Cleaning N Caution 9 4 2 Inspection Inspection Equipment Inspection Procedure This section describes the routine cleaning and inspection recommended as regular maintenance as well as the Unit replacem
249. n without the Configurator so slaves with slow response times can be used A wide variety of I O devices like Remote I O Terminals Environment resis tant Terminals Remote Adapters Sensor Terminals Temperature Input Ter minals CQM1 I O Link Units Analog I O Terminals C200H I O Link Units RS 232C Units MULTIPLE I O TERMINALS Temperature Adjusters Invert ers and Intelligent Plugs can be used as slaves Specifications Section 1 3 1 3 Specifications 1 3 1 Model Applicable PC CS Series DeviceNet Unit Unit classification CPU Bus Unit Model number CS1W DRM21 Types of communications Remote I O communications master fixed or user set allocations Remote I O communications slave fixed or user set allocations Message communications CJ Series CJ1W DRM21 General Specifications General specifications of the CS CJ series DeviceNet Unit conform to the general specifications for the SYSMAC CS CJ series CPU Units Functional and Performance Specifications Item Specification DeviceNet Unit model CS1W DRM21 CJ1W DRM21 Applicable PC CS Series CJ Series Unit classification CPU Bus Unit Applicable unit numbers OtoF Mounting position CPU Rack CS Expansion Rack Cannot be mounted to a C200H Expansion I O Rack or SYSMAC BUS Slave Rack 3 Units max Unique words must be allocated using the Allo cated CIO Area Words Software Switches 16 Units max Unique words must be allocated us
250. nBKUP dvf where nn is the Unit number in 2 digit hexadecimal File Names The following files are created on the Memory Card Directory fixed Route and directory File name fixed DNnnBKUP dvf nn Unit number in 2 digit hexadecimal Note The data in the above files is compatible with the data in the DeviceNet Unit device parameter file 249 Appendix E Multi vendor Applications This appendix provides precautions and reference material needed when using DeviceNet CompoBus D Units as DeviceNet components in a multi vendor environment Connecting another Company s Slaves to an OMRON Master If a Slave has an EDS file it can be installed in OMRON s Configurator to enable handling it just like an OMRON Slave OMRON s Configurator already has installed all of the Slave EDS files currently registered with the ODVA In particular be sure to determine the number of words in the OMRON Master Unit that the Slave requires for input and output For Connection Object Interface 2 Polled I O Connection the number of I O words allocated in the OMRON Master can be found from the Produced Connection Size and Consumed Connection Size as shown below Up to 32 words can be allocated to inputs and another 32 words to outputs Produced Connection Size This is the amount of memory usually in bytes allocated as input Consumed Connection Size This is the amount of memory usually in bytes allocated as output If the
251. nd bits 00 and 01 of n 10 Unit Error Flag and Master Function Error Flag will be ON Troubleshooting with the DeviceNet Unit Indicators Section 9 1 Verification Error I O Size Mismatch Verification Error Illegal Device Verification Error Illegal Product Code Correction Inspect the slave and then create the scan list again Error log Hex Red lashing ooa Likely Cause The slave s I O data size does not match the registered scan list Occurs with the scan list enabled DeviceNet Unit Response Records the error in the error log The master will periodically attempt to reconnect with the slave with the verifi cation error Flags Allocated for C200H DeviceNet Master Unit CIO n 24 Bit 14 Error Flag and bit 07 Comparison Error Flag will be ON CIO Area Flags Allocated to DeviceNet Unit Bit 00 of n 12 Comparison Error Flag and bits 00 and 01 of n 10 Unit Error Flag and Master Function Error Flag will be ON Correction Inspect the slave and then create the scan list again 7 segment Error log Hex Red lashing o Likely Cause The Configurator is set to check the device type and the slave s device type does not match the registered scan list Occurs with the scan list enabled DeviceNet Unit Response Records the error in the error log The master will periodically attempt to reconnect with the slave with the verifi cation error Flags Allocated for C200H DeviceNet Master Unit CI
252. nd source Record stored in EEPROM Setting table logic error 03 Hex Routing table OA Hex Master scan list OB Hex Slave scan list OC Hex Message moni toring timer list Node address duplication cause 00 Hex Local node address Packet discarded because of parameter error Same as the code such as 0101 Hex in the dis carded FINS explicit message packet Bus Off detected 00 Hex 00 Hex Network power supply error 00 Hex 00 Hex 220 Transmission timeout 00 Hex 00 Hex Error Log Functions Section 9 2 Error code Hex Error Structure error Detail code First byte 01 Hex I O area dupli cation 02 Hex I O area range exceeded 03 Hex Unsupported slave Second byte Slave s node address Record stored in EEPROM Verification error 01 Hex slave 02 Hex 03 Hex type 04 Hex code 05 Hex Unsupported connection 06 Hex I O size mis match 07 Hex Illegal connec tion path Non existent Illegal header Illegal device Illegal product Slave s node address Remote I O communications error 01 Hex Master 02 Hex Slave Master Slave s node address Slave Master s node address Remote I O communications stopped because of a remote I O communications error 01 Hex Remote I O communications error 02 Hex Network power supply error 03 Hex Transmission timeout Remot
253. ng one of the following methods e Setting through the allocated DM Area words Slave User Allocations Table e Setting through the Configurator Set through the allocated DM Area words Master User Allocations Table CIO 0000 to 6143 WR W000 to W511 HR HROOO to HR511 DM D00000 to D32767 EM E00000 to E32767 Banks 0 to C Set through the Configurator No of allocation blocks 2 blocks OUT 1 and IN 1 3 blocks OUT 1 IN 1 and IN 2 Allocation size Per block 100 words max Total size 200 words max for a total of 2 blocks 400 words max for a total of 3 blocks Connection type Note 126 Automatic connection specified by the master Automatic or user specified 1 Functions will vary as shown below depending on whether allocations are set through the allocated DM Area words Slave User Allocations Table or through the Configurator User set Allocations Section 5 3 2 Only two blocks OUT 1 and IN 1 can be allocated when setting are made with the allocated DM Area words area but there are three blocks OUT 1 and IN 1 2 available with the Configurator Setting through the Allocated DM Area Words Slave User Allocations Table 5 3 1 5 3 2 Procedure Words can be allocated for the OUT 1 area master to Slave Unit and IN 1 area Slave Unit to master from any specified I O memory location specified in the settings in the allocated DM area words Specified area i
254. ng the C200HW DRM21 V1 with the CS1W DRM21 or CJ1W DRM21 If the DeviceNet Unit is not registered it will result in a routing table error and the 7 segment display of the DeviceNet Unit will indi cate HC 234 Appendix B DeviceNet Connections DeviceNet has several different protocols for remote I O communications between Master and Slave devices Connections are units used to monitor those protocols There are four kinds of DeviceNet remote I O communications protocols connections Poll bit strobe COS change of state and cyclic CS CJ series DeviceNet Units support all four types The connection used by the DeviceNet Unit is automatically selected if the Configurator is not used If the Configurator is used the connection can be automatically selected by the DeviceNet Unit or the user can specify the connections for each slave Up to two connections can be set COS and cyclic connections cannot be specified at the same time The characteristics of each connection are outlined in the following table Connection Characteristics Poll Used for basic I O Bit strobe Used for input of 8 bytes or less Sends broadcasting requests from master and receives input from slaves COS Change of Communications occur at regular cycles heartbeat timer and the con Note COS and cyclic State nection is determined by the master or slave sending the data connections cannot be Data can be sent only when required which reduces the net
255. ng the DeviceNet Unit All of the settings data stored in the DeviceNet Unit can be saved to the CPU Unit s Memory Card and later read from the Memory Card It will be much easier to replace the Unit if you save all of the settings data when the Unit is operating normally 1 Toggle OFF to ON the Unit Setup File Backup Switch word n 1 bit 15 2 Toggle OFF to ON the Unit Setup File Restore Switch word n 1 bit 14 3 The backup file is saved to the CPU Units Memory Card with the filename DNnnBKUP dvf The number nn is the unit number in 2 digit hexadeci mal Default Remote I O Allocations Turn ON power to all slaves and then turn ON the Scan List Enable Switch bit 00 The scan list will be registered User set Remote I O Allocations The scan list can be written to the DeviceNet Unit from the CPU Unit s Mem ory Card or a network file saved on a disk Using the Settings Data Stored in the CPU Unit s Memory Card Use the following procedure to write all of the settings data from the Memory Card to the DeviceNet Unit 1 Turn ON power to the PC 2 Switch the CPU Unit to PROGRAM mode 3 Toggle OFF to ON the Unit Setup File Restore Bit word n 1 bit 14 Using a Network File Stored on a Floppy Disk or Hard Disk Use the following procedure to write the settings to the DeviceNet Unit from a network file saved on a disk 1 Turn ON power to the DeviceNet Unit and the Configurator 2 Place the
256. nging the communications system configuration Turn ON the Scan List Clear Switch for the allo cated CIO Area words and turn the Scan List Enable Switch back ON after you change the com munications system Checking master I O allocation status fixed allocations user set allocations by allocated DM Area words user set allocations by the Configurator Monitor the Master Status 2 status codes in the allocated CIO Area words from a Programming Device Checking to see if all slaves are registered in the scan list Check the Registered Slave Table in the allocated CIO Area words Checking to see if all slaves are performing remote I O communi cations properly Check the Normal Slave Table in the allocated CIO Area words Checking to see if there is an error history in the DeviceNet Unit Check the error history registration yes no in the allocated CIO Area words from a Programming Device Monitoring the error history in the DeviceNet Unit Execute the device monitor function from the Con figurator Error History Tab Monitoring status of the DeviceNet Unit Execute the device monitor function from the Con figurator Status and Unit Status Tabs Checking the current communi cations cycle time Execute the device monitor function from the Con figurator Current Communications Cycle Time Tab Adjusting the communications cycle time Execute the device parameter edit function f
257. ngths trunk and branch lines e Broken or loose cables e Installation of terminators at both ends of the trunk line e Excessive noise 7 segment Error log Hen e o eo R ashing oa Likely Cause The Configurator is set to check the vendor and the slave s vendor does not match the registered scan list Occurs with the scan list enabled DeviceNet Unit Response Records the error in the error log The master will periodically attempt to reconnect with the slave with the verifi cation error Flags Allocated for C200H DeviceNet Master Unit CIO n 24 Bit 14 Error Flag and bit 07 Comparison Error Flag will be ON CIO Area Flags Allocated to DeviceNet Unit Bit 00 of n 12 Comparison Error Flag and bits 00 and 01 of n 10 Unit Error Flag and Master Function Error Flag will be ON Correction Inspect the slave and then create the scan list again Error log Hex C iR 0 ashing 4 Likely Cause The connection path was set with the Configurator and there is a mistake in the connection path setting in the scan list Occurs with the scan list enabled DeviceNet Unit Response Records the error in the error log The master will periodically attempt to reconnect with the slave with the verifi cation error Flags Allocated for C200H DeviceNet Master Unit CIO n 24 Bit 14 Error Flag and bit 07 Comparison Error Flag will be ON CIO Area Flags Allocated to DeviceNet Unit Bit 00 of n 12 Comparison Error Flag a
258. nit No For parity errors generated when data transferred between CS CJ series CPU Bus Unit and CPU Unit For watchdog timer errors in CS CJ series CPU Bus Unit 0400 to 040F CPU Bus settings error last 2 digits are binary code for the Unit No System error FAL FAL instruction executed 4101 to 42FF Note Error clear codes are 1 word 2 byte data so the above codes are specified with the low byte first The low to high bytes for the above codes are set as high to low bytes in I O memory when setting the codes as data for operand S of CMND 490 For example to specify battery error OOF7 Hex specify the error code as F7 Hex followed by 00 Hex as shown in the following diagram Command Block o1 10 00 2F 00 00 es Fz 00 Destination Class ID Attribute ID node address Attribute Value Service Code Instance ID The settings for operand S and following words for CMND 490 are shown in the following diagram Data set for CMND 490 Bit 15 08 07 00 S 0 28 01 8 1 o 10 S 2 oo 2F Class ID Instance ID S 4 65 F7__ Attribute ID Attribute Value FINS command code Node address Service Code In this case error code 00F7 is set from the high to the low byte No of bytes received response The number of bytes received from the destination node address remote node is returned in hexadecimal Destination node address response T
259. nnection path length 14 Produced connection path 15 Consumed connection path length 16 Consumed connection path 17 Production inhibit time Service DeviceNet service Parameter option 05 Reset No OE Get Attribute Single No 10 Set Attribute Single No 1 The following table shows the instance type by communications type Communications type Instance type Explicit Message 0 1 0 1 2 The following table shows the transport class trigger by connection type Format Transport class trigger Poll client 22 hex COS M client 12 hex with ACK 10 hex no ACK COS M server 92 hex with ACK 90 hex no ACK Cyclic M client 02 hex with ACK 00 hex no ACK Cyclic M server 82 hex with ACK 80 hex no ACK Bitstrobe client 22 hex Explicit client 22 hex Explicit server 83 hex PC Object 2F Hex Object class Attribute Not supported Service Not supported 258 Multi vendor Applications Appendix E DeviceNet service Parameter option Object instance 1 CIO area Service 1CBlock String Read Logical Area Address Length 1DBlock StringN Read Logical Area Address Length 1EBlock String Write Logical Area Address 1FBlock StringN Write Logical Area Address Object instance 3 DM area Service 1CBlock String Read Logical Area Address Length 1DBlock StringN Rea
260. node Node Address Source local node Node Address Response Returns the local node DeviceNet node address that was the source of the explicit message Error Code Response Returns the error code defined by the DeviceNet e The Explicit Message Send command sends a DeviceNet defined explicit message to an OMRON Special I O Slave Unit or a Slave manufactured by another company and receives a response e Unlike other FINS commands the Explicit Message Send command specifies the local node DeviceNet Unit as the CMND and IOWR instruc tion control code destination The actual destination node is specified using the Destination Node Address in the Explicit Message Send com mand Always specify the local node DeviceNet Unit in the CMND or IOWR instruction control code If another node Master unit is specified an error will occur e If the DeviceNet Master Unit receives an explicit message it will automat ically return a response Note 1 Refer to DeviceNet Specifications for explicit message parameter details 2 For information on explicit messages for OMRON slave refer to DeviceNet CompoBus D Slave Manual W347 3 Contact the Open DeviceNet Vendor Association Inc ODVA at 8222 Wiles Road Suite 287 Coral Springs FL 33067 USA phone 954 340 5412 fax 954 340 5413 e mail billmoss ix netcom com Home page http www odva org to obtain copies of the specification 262 Index A adaptors remote 4 10
261. ns ON if any one of the following bits turns ON e Network Power Error Flag word n 10 bit 07 e Send Timeout Flag word n 10 bit 08 Communica tions Error Flag ON OFF Communica tions Error Flag This is the same as the Remote I O Communications Flag word n 12 bit 02 Verification Error Flag ON OFF Verification Error Flag This is the same as the Verification Error Flag in word n 12 bit 00 1 0 Data Communica tions Not Running Flag ON OFF I O Data Communica tions Not Running Flag This operates in the reverse way of the Remote I O Com munications Flag word n 11 bit 01 Reserved by system Scan List Operation Completed Flag Reserved by system Scan List Operation Error Flag Reserved by system Communica tions Error Stop Cleared Flag Message Communica tions Permit ted Flag ON OFF Message Communica tions Permit ted Flag The same as the Online Flag in word n 11 bit 00 Note When executing message communications instructions GSEND RECV CMND from the ladder program use an AND of input conditions for the Network Communications Enabled Flag in the CPU Unit A20200 to A20207 and this bit Invalid Scan List Data Flag ON OFF Invalid Scan List Data Flag The same operation as the Invalid Scan List Data Flag word n 11 bit 04 Error Flag ON OFF Error Flag This bit turns ON if bit 00 01 or 03 to 07 in this word
262. ns error is occurring This section describes the remote I O communications performed as a DeviceNet master by the Devicenet Unit 4 1 4 2 4 3 4 4 4 5 4 6 4 7 Master Remote I O Communications 4 1 1 Allocations 0 0 0 0 02 4 1 2 Remote I O Master Specifications 4 1 3 Precautions on the Number of Master Units 4 1 4 Procedure for Using Remote I O Master SCAN Dist a Ah ate AA Roe MASE ANN oe EES Fixed Allocations 00 e eee eee eee ee 4 3 1 Allocated Words 0 000 e eee ee 4 3 2 Procedure 0 cece eee eee 4 3 3 Changing System Components 4 3 4 Fixed Allocations Example User set Allocations 00 e cece eee eee Starting and Stopping Remote I O Communications 4 5 1 Starting Remote I O Communications 4 5 2 Stopping Remote I O Communications 4 5 3 Restarting Remote I O Communications Example of Ladder Programming for Remote I O Communications Errors that May Occur in Remote I O Communications SECTION 4 Remote I O Master Communications 92 92 95 96 97 99 101 101 102 105 105 107 116 116 116 116 116 118 91 Master Remote I O Communications Section 4 1 4 1 Master Communications 4 1 1 92 Note Allocations Master Remote I O Communications Remote I O communications are used to automatically transfer data between slaves and the CPU Unit withou
263. nse Whereas the DeviceNet Unit monitors the message time out with this tim er the CPU Unit monitors with the response monitor time set in the CMND SEND RECV instruction There is thus no effect when only one of them i e only the message monitoring timer or only the response monitor time in the CMND SEND RECYV instruction is increased or decreased Set the 184 Connecting to the CX Programmer via the DeviceNet Section 7 1 response monitor time in the CMND SEND RECV instruction to be the same as or slightly longer than the time for the message monitoring timer Response monitor time in the CMND SEND RECYV instruction gt message monitoring timer If time outs occur frequently increase both of the set tings equally while maintaining the relationship between them 7 1 3 Setting the Frame Length when Using the CX Programmer via the DeviceNet When using the CX Programmer via the DeviceNet set the frame length in the Network Settings under Change PLC from the CX Programmer to 542 bytes or less When using the peripheral bus the value must be changed because the default setting is 1 004 bytes The Host Link SYSMAC WAY does not need to be changed because the factory setting is 540 bytes The frame length setting is made with the following window Click on the Set tings Button to the right of Network Type in the Change PLC Dialog Box to access this window Network Settings T oolbus x Network Driver Modem NE l
264. nue setting for a communications error on the front panel is ON stop Returns to OFF at the start of communications even with just one slave present Reserved by system Routing Incorrect data in the routing tables set in the CPU Unit Refer to 1 6 3 Cre Table Error ating Routing Tables Flag Indicates that the error has not occurred if a routing table has been set Invalid Mes Indicates that the data in the message monitoring timer list is not correct eae Indicates that the data in the message monitoring timer list is correct er 7 9 Turns OFF if the Configurator registers a message monitoring timer list when the error occurs The message monitoring timer list shows the time spent waiting for responses in message communications It is set from the Configurator Reserved by system 3 2 6 Unit Status 2 Word n 11 Word n 11 n CIO 1 500 25 x unit number Status Controlled Unit operation by Online Flag Indicates that the Unit is online The Unit normally goes online automati cally Note When executing message communications instructions SEND RECV CMND from the ladder program use an AND of input con ditions for the Network Communications Enabled Flag in the CPU Unit A20200 to A20207 and this bit Indicates that the Unit is offline A Unit will go offline under the following conditions e Operation is stopped by the hardware software check at startup e A
265. number in 2 digit hexadecimal 7 2 2 File Names The following files are created on the Memory Card Directory fixed Route and directory File name fixed DNnnBKUP dvf nn Unit number in 2 digit hexadecimal Note The data in the above files is compatible with the data in the DeviceNet Unit device parameter file 188 This section describes the time required for remote I O communications and message communications 8 1 8 2 Remote I O Communications Characteristics 8 1 1 8 1 2 8 1 3 8 1 4 Communications Cycle Time and Refresh Time I O Response Time 000 0005 More than One Master in Network System Startup Time 0002 Message Communications 000000000 ee 8 2 1 8 2 2 Message Communications Time Calculating the Maximum Message Response Time SECTION 8 Communications Timing 190 190 192 194 195 196 196 197 189 Remote I O Communications Characteristics Section 8 1 8 1 Remote I O Communications Characteristics 1 2 3 Note This section describes the characteristics of remote I O communications when the DeviceNet Unit is used as a master in combination with OMRON s slaves Use this section for reference when planning operations that require precise I O timing The equations provided here are valid under the following conditions The DeviceNet Unit is operating with the scan list enabled
266. ocation Set ting 1 Switch word n bit 08 Fixed allocation area 2 CIO 3570 CIO 3470 Turn ON the Slave Fixed Allocation Set ting 2 Switch word n bit 09 Fixed allocation area 3 CIO 3770 CIO 3670 Turn ON the Slave Fixed Allocation Set ting 3 Switch word n bit 010 A maximum of 3 DeviceNet Units can be included as slaves in a single PC because the three allocation areas above are set individually for fixed alloca tions The default setting is fixed allocations area 1 5 2 2 Procedure Step 1 Stop Slave If the Unit is already functioning as a Slave Unit turn ON the Slave Stop Communications Switch word n 1 bit 07 to stop slave communications This step is not nec essary if slave communications have already stopped Step 2 Select a Fixed Turn ON one of the Slave Fixed Allocation Setting Switches 1 to 3 word n 1 Allocation Area bits 08 to 10 in the allocated ClO Area words to select a fixed allocation area between 1 and 3 One words is allocated for the output OUT area from the Slave Unit to the master and another word is allocated for the input IN area from the master to the Slave Unit in the CS CJ series DeviceNet CIO Area as shown below First word n CIO 1500 25 x unit number Software switch Software switch name Fixed allocation area Allocated output Allocated input IN address OUT area area master to slave slave to master Word n 1 bit 08 Slave Fixed Allocation Fixed allo
267. ock 1 can be set using this table Word Bit 15 Bit 08 Bit 07 Bit 00 m 1 Reserved by system OUT block 1 area m 2 First word in OUT block 1 m 3 Reserved by system IN block 1 area m 4 First word in IN block 1 m 5 Reserved by system Allocation size setup table area m 6 First word in the allocation size setup table m 7 Setting results Note OUT blocks 1 and 2 and IN blocks 1 and 2 can be set from the Configurator I O allocations can be updated in the master by setting this table and turning ON the Master User set Allocations Switch word n bit 11 The Unit will restart automatically and start operating with the scan list enabled 82 Allocated DM Area Words Section 3 3 Areas and Word Ranges Note Make sure the CPU Unit is in PROGRAM mode and the master function is enabled before you set these values OUT block 1 area See Areas and Word Ranges First word in OUT block 1 IN block 1 area First word in IN block 1 Allocation size setup table area First word in the allocation size setup table See note Details Specifies the OUT block area The OUT block is not allocated when set to 00 Hex Specifies the first word for the OUT block Specifies the IN block area The IN block is not allocated when set to 00 Hex Specifies the first word for the IN block Specifies the area for the allocation size setup table An area is not allocated when set to 00 Hex
268. ommand execution The first byte provides the main response code MRES which classifies the results and the second byte provides the sub response code SRES which provides details on the results 142 FINS Commands and Responses Section 6 2 The main response codes are listed below Refer to SYSMAC CS CU Series Communication Commands Reference Manual W342 for further details on response codes including sub response codes SRES Main code Main code 00 Normal completion Read not possible 01 Local node error Write not possible 02 Destination node error Not executable in current mode 03 Communications controller error No Unit 04 Unsupported setting error service not supported Start stop not possible 05 Routing error Unit error 10 Command format error Command error 11 Parameter error Access right error Abort 6 2 3 Units Supporting FINS Communications The parameters used for FINS commands depend on the Unit that is process ing the command Command details are provided in Appendix E FINS Com mands and Responses for DeviceNet Units for commands and responses addressed to DeviceNet Units Refer to SYSMAC CS CJ Series Communication Commands Reference Man ual W342 for information on commands and responses addressed to CS CJ series CPU Units 6 2 4 FINS Command Lists Commands Addressed to CS CJ series CPU Units Function
269. or Max No of Fixed allocations 63 nodes slaves con User set By allocated nected per _ allocations DM Area DeviceNet Unit words By Configu rator Max No of I O Fixed allocations 2 048 pts 64 input words 64 output words points per _ User set _ By allocated 16 000 pts 500 input words x 1 block 500 output words x 1 block DeviceNet Unit allocations DM Area words By Configu 32 000 pts 500 input words x 2 blocks 500 output words x 2 blocks rator 95 Master Remote I O Communications Section 4 1 Item Max No of I O Fixed allocations Specifications 2 048 pts 64 input words 64 output words per Slave con trollable by a DeviceNet Unit User set allocations By allocated DM Area words 3 200 pts 100 input words 100 output words By Configu rator 4 1 3 Precautions on the Number of Master Units The following system configurations can be constructed based on various numbers of Master Units when DeviceNet Units are used Pattern Configuration One Master Unit connected on a single network Multiple Master Units connected on a single network 3 200 pts 100 input words 100 output words Multiple Master Units connected to a single PC Remote I O communications Fixed alloca tions x O Up to 3 M
270. or The first word is outside the setting range 110C Hex Parameter error The OUT 1 or IN 1 area size exceeds 200 bytes The OUT 1 and IN 1 area size is 0 Both the OUT 1 and IN 1 blocks are set for no allocations 1104 Hex Address range overflow The allocated area exceeds the valid word range 2201 Hex Wrong operating mode The CPU Unit is not in PROGRAM mode 2201 Hex Unit busy Service cannot be executed because the Unit is busy 2606 Hex Cannot execute service The Unit slave communications have not been disabled Allocated DM Area Words Section 3 3 3 3 5 Communications Cycle Time Reference Table This table can be used to access the present maximum and minimum com munications cycle times All the values in this table are cleared from the Unit and the maximum and minimum values are updated with new values when the Communications Cycle Time Reference Table Clear Switch word n bit 13 is turned ON Word Bit 15 Bit 00 m 15 Communications cycle time setting value ms m 16 Communications cycle time present value ms m 17 Communications cycle time maximum value ms m 1g Communications cycle time minimum value ms Ranges Details Communications cycle time set 0000 to Provide the communications cycle ting value ms 01F4 Hex 0 time setting as well as the present to 500 maximum and minimum commu Communications cyc
271. or Flag 230 Word address CS CJ Series IR 2001 10 x unit No C200HX HG HE C200HS Unit No 0 to 9 IR 101 10 x unit No Unit No A to F IR 401 10 x unit No 10 Bit Names for CS CJ series DeviceNet Unit Mas ter Replace ment Sta tus 1 Unit Error Flag CS CJ series DeviceNet Unit Node Address Duplicated Bus Off Flag Reserved for system use Configura tion Error Flag Structure Error Flag Send Error Flag CS CJ series word address CIO 1524 25 x unit No Bit Appendix A Details and CS1W DRM21 CJ1W DRM21 status This is the same as a Unit memory error word n 10 bit 04 Note This bit is also used for incor rect switch settings for the C200HW DRM21 V1 The Unit will not start if the switch set tings are incorrect This bit turns ON if any one of the fol lowing flags turns ON e Node address duplicated word n 10 bit 06 e Bus Off word n 10 bit 05 Reserved by system This bit turns ON if any of the following flags turn ON e Routing table error word n 10 bit 12 e Invalid message timer list word n 10 bit 13 e Invalid Scan List Data word n 12 bit 04 e Remote O refresh error word n 12 bit 05 Note The C200HW DRM21 V1 does not support slave communica tions Scan list data errors for slave communications are not relevant This is the same as th
272. or not the master is operating and whether the scan list is enabled or disabled The right dot indicator shows whether or not the slave is operating Normal Master s node address Error Error code and faulty node address Indicates whether the slave is operating or stopped Indicates whether the master is operating or stopped and whether the scan list is enabled or disabled Seven segment Digits The following table shows the functions of the 7 segment digits Status Display Remote I O communications active and Displays the mas Lit normal ter s node address From power ON to completion of node 00 to 63 address check master function disabled slave function disabled or both disabled Flashing Remote I O communications started Flashing until com munications actu ally start From completion of the node address Flashing check until the start of remote I O com munications Error Watchdog timer Not lit Memory error or Error code only Lit system error Other errors Alternately displays the error code and error node address see diagram below Scan list Reading Flashing Registered Nomenclature and Functions Section 2 1 The following diagram shows the alternating error code node address display OFF 0 1 s OFF 0 3 s OFF 0 1 s OFF 0 3 s Faulty slave s Faulty slave s ae aoe dae faces mi 5 node Address SESS S s
273. ors have been registered in the error history Turns OFF when the Unit receives an error history clear request 73 Allocated CIO Area Words Section 3 2 3 2 7 Master Status 1 Word n 12 Word n 12 n CIO 1 500 25 x unit number Verification Error Flag Status Controlled by Unit operation Indicates that the data in the slave registered in the scan list is different from the data from the actual slave It occurs with the scan list enabled Indicates that a verification error has not occurred or turns OFF when a verification error is cleared Structure Error Flag Indicates that I O allocations cannot be made with the scan list disabled Indicates that a structure error has not occurred or turns OFF when a structure error is cleared Remote I O Communica tions Error Flag Indicates that a remote I O communications timeout has occurred during remote I O communications with slaves Remote I O communications will stop if DIP switch pin 3 remote I O com munications stop continue setting for communications errors on the front panel is ON stop This error occurs with the scan list enabled or disabled Indicates that a remote I O communications error has not occurred or turns OFF when a remote I O communications error is cleared Reserved by system Invalid Scan List Data Flag Indicates that there is incorrect data in the scan list mismatched check sum Remote I O communic
274. oth ends of the trunk line Connect 121 Q terminators if the wrong resistance is being used Check whether all of the slaves settings are correct Check whether the communications cables are wired correctly Check whether the power supply cables and power supply are wired and set correctly Check for broken wires in the communications and power supply ca bles attached to the connectors Check whether the slaves are operating properly When an OMRON slave is being used refer to the DeviceNet Slaves Operation Manual W347 If another company s slave is being used refer to that slave s user s manual Use the following table to troubleshoot I O Link problems Error Probable cause The I O isn t simultaneous Observe the following precautions when writing application programs e The simultaneity of node units of data is ensured between the PC and DeviceNet Unit e In OMRON slaves the simultaneity of word units of data is ensured e f another company s slave is being used refer to that slave s user s manual for details At startup OFF outputs are output from the slaves When the master is operating in scan list enabled mode and the PC is set to maintain the status of I O area bits those held output points will be output from the output slaves at startup Be sure to perform the Create Scan List operation and operate the master with the scan list enabled Refer to the CS1 Series CPU Unit Operation
275. page 191 Trt out Output Slave s communications time Slave See page 191 Tpc The PC s cycle time Tar The PC s DeviceNet Unit refresh time See page 192 The minimum I O response time Tm is the total of the following terms Tin Tin Tatin Tec Tae Tat out Tout Note 1 Refer to the CompoBus D DeviceNet Slaves Operation Manual W347 for details on the Input and Output Slaves delay times 2 Refer to Refresh Time on page 192 and to the PC s Operation Manual for details on the PC s cycle time 8 1 3 More than One Master in Network The following equation shows the remote I O communications cycle time Tam when there is more than one master in the network An example for two masters is used First the network is divided into two groups Master A and the slaves in remote I O communications with it and master B and the slaves in remote I O communications with it ae 4 des ce Slaves in remote I O commu Slaves in remote I O commu nications with Master A nications with Master B Group A Group B Master A Master B Slave A Slave B Slave C Slave D SI ave E Slave F 194 Remote I O Communications Characteristics Section 8 1 Note Although in the above diagram the Slaves are separated into two groups for convenience the actual physical positions in the Network are irrelevant Next we can refer to 8 7 1 Communications
276. per tion ating mode Default setting Slave disabled 66 Slave Stop Switch Stops slave communications The Unit automatically restarts Turn this switch ON if the Unit will be used only for master communications Returns to OFF after slave communications stop Slave disabled Allocated CIO Area Words Section 3 2 Bit Name Slave Fixed Allo cation Set ting 1 Switch Status Con trolled by Unit operation Allocates the following words to the slave e OUT 1 area input to the CPU Unit CIO 3370 1 word allocated e IN 1 area output from the CPU Unit CIO 3270 1 word allocated e OUT 2 area Not used e IN 2 area Not used Note 1 Slave communications must be disabled before this switch is turned ON After the switch is turned ON turn the Slave Enable Switch word n 1 bit 06 ON to enable Fixed Allocation Setting 1 This is the default setting for the Unit The words allocated by this switch are used as the I O area for the slave Use the Slave Enable Switch word n 1 bit 06 Returns to OFF after fixed allocations have been set Operation conditions CPU Slave Unit func oper tion ating mode Slave Fixed Allo cation Set ting 2 Switch Allocates the following words to the slave e OUT 1 area input to the CPU Unit ClO 3570 1 word allocated e IN 1 area output from the CPU Unit CIO 3470 1 word allocated e
277. pleted User Allocation Area Setting Failed Flag Indicates that an error has occurred in the following operation e Slave user set allocations user setting word n 1 bit 11 Once this bit turns ON it will remain ON until the operation is successfully completed Indicates that the error has not occurred The bit turns OFF when the operation is successfully completed 76 Fixed Allocation Area Setting Failed Flag Indicates that an error has occurred in one of the following operations e Slave Fixed Allocation Setting 1 word n 1 bit 08 e Slave Fixed Allocation Setting 2 word n 1 bit 09 e Slave Fixed Allocation Setting 3 word n 1 bit 10 Once this bit turns ON it will remain ON until the operation is successfully completed Indicates that the error has not occurred The bit turns OFF when the operation is successfully completed Allocated CIO Area Words Section 3 2 Bit Name COS Send Failed Flag Status Controlled by Unit operation Indicates that an attempt was made to send COS to a Master using the Slave COS send switch Slave COS Send Switch in n 1 in Software Switches 2 but the transmission failed The following may cause the failure of COS signal transmission e A COS connection was not established with a master e Bus OFF error occurred e A network power error occurred e A send timeout occurred Once this bit turns ON it will remain ON until the ope
278. ponse 2 Unlike other FINS commands this command is addressed to the local De viceNet Unit The actual destination of the explicit message is given in the command data as described above 3 If the DeviceNet Unit receives an explicit message it will automatically re turn a response 4 Refer to the DeviceNet Specification for details on parameters for explicit messages 5 Contact the Open DeviceNet Vendor Association Inc ODVA at 8222 Wiles Road Suite 287 Coral Springs FL 33067 USA phone 954 340 5412 fax 954 340 5413 e mail billmoss ix netcom com Home page http www odva org to obtain copies of the specification 6 For details on explicit messages to OMRON Special I O Slaves refer to the CompoBus D DeviceNet Slaves Operation Manual W347 6 4 2 Sending Explicit Messages Using CMND 490 CMND 490 can be used in the CPU Unit ladder program of the CS CJ series DeviceNet Unit to send explicit messages FINS command headers are attached to the explicit messages and sent After the FINS command header and the FINS completion code are sent the explicit message response is received The following command is used CMND S D C S First command word 161 Sending Explicit Messages Section 6 4 D First response word C First control data word Command data is set in order starting with the word specified for the CMND 490 operand S first command word and continuing with words with higher addresses in
279. put words x 2 100 output words x 1 5 1 3 Procedures for Using Remote I O Slave Communications Fixed Allocations for Remote I O 1 2 3 1 Turn ON the communications slave and PC power supplies Note Turn ON the communications power supply prior to turning ON the slave power supply or the slaves may not go online 2 Switch the CPU Unit to PROGRAM mode 3 Turn ON the Slave Stop Switch word n 1 bit 07 from the PC Program ming Device to stop slave communications 4 Turn ON one of the Slave Fixed Allocation Setting Switches 1 to 3 word n 1 bits 08 to 10 from a Programming Device 5 Turn ON the Slave Enable Switch word n 1 bit 06 from a Programming Device to enable slave communications 6 Switch the CPU Unit to RUN mode Slave remote I O communications will start up Note Slave communications must be disabled prior to area allocation and must be enabled after area allocation The order of the procedure is 1 stop slave com 123 Slave Remote I O Communications Section 5 1 munications allocate areas and then enable slave communications The allo cated areas will not be valid if the procedure is done in any other order User set Remote I O Allocations Using DM Area Settings 1 2 3 Note 1 1 Turn ON the communications slave and PC power supplies Note Turn ON the communications power supply prior to turning ON the slave power supply or the slaves may not go online Switch the
280. r Allocations for slaves with two bytes or more cannot start at bit 08 Setting through the Allocated DM Area Words Master User Allocations Table All slaves are allocated words in order of node addresses in two blocks OUT block 1 and IN block 1 Addresses are in ascending order Not all nodes need to be allocated OUT areas and addresses for nodes with no allocations are skipped Area specified in I O memory Bit 15 0 specified e addre Bit 15 0 in ascending order First word specified a to to OUT block 1 gt Output to Slaves to sd feta Poe ee hia te eset ee Addresses are in ascending order Not all nodes need to be allocated IN areas and addresses for nodes with no Bit 15 o Bit 15 o allocations are skipped First word specified First word specified Address 0 Node addresses to IN block 1 to 4 Input from Slaves o E eens _ __ Peres cee eae The block allocation order and block allocation areas can be set Node addresses in each block are allocated words in ascending order from 0 to 63 Node addresses that are not allocated are skipped not allocated words Each address is allocated at least one byte rightmost byte 1 word or multiple words e More than one word is allocated for each slave according to it s node address with more than16 I O points e The rightmost byte of the word is allocated to each slave that has less than 16 I O points Note Multiple Master Units can
281. r log The master will periodically attempt to reconnect with the slave with the struc ture error Flags Allocated for C200H DeviceNet Master Unit CIO n 24 Bit 14 Error Flag and bit 04 the Structure Error Flag will be ON CIO Area Flags Allocated to DeviceNet Unit Bit 01 of n 12 Structure Error Flag and bits 00 and 01 of n 10 Unit Error Flag and Master Function Error Flag will be ON Correction Use slaves with input and output areas of 200 bytes max Error log Hex 35 Red flashing 0344 Likely Cause A slave registered in the scan list doesn t exist or the local node s master s node address is registered in the scan list Occurs with the scan list enabled DeviceNet Unit Response Records the error in the error log e If a slave is involved the master will periodically attempt to reconnect e If the master is involved it will not send an OPEN frame to itself 20 Ge Troubleshooting with the DeviceNet Unit Indicators Section 9 1 Verification Error Illegal Vendor Verification Error Illegal Connection Path 204 Flags Allocated for C200H DeviceNet Master Unit CIO n 24 Bit 14 Error Flag and bit 07 Comparison Error Flag will be ON CIO Area Flags Allocated to DeviceNet Unit Bit 00 of n 12 Comparison Error Flag and bits 00 and 01 of n 10 Unit Error Flag and Master Function Error Flag will be ON Correction Check the following e Matching master and slave baud rates e Proper cable le
282. r the CJ1W DRM21 1 2 DeviceNet Unit Features The following are features of the CS series and CJ series DeviceNet Units CS1W DRM21 and CJ1W DRM21 Multi vendor Network Devices made by other companies masters or slaves can be connected to DeviceNet because it conforms to open field network specifications By using a combination of valves sensors and other DeviceNet products the network can be adapted to various field level applications Simultaneous Remote I O Remote I O communications that constantly transfer I O between a DeviceNet Communications and Unit and slaves as well as message communications where the DeviceNet Messaging Services Unit sends and receives data as needed can both be executed simulta neously When a DeviceNet network is constructed this feature ensures the network will be able to handle applications that require the free flow back and forth of bit data and message data FINS commands can be executed along with DeviceNet explicit messages in message communications Remote I O Communications CS CJ series DeviceNet Unit master Remote I O master function Note Refer to SECTION 4 Remote I O Master Communications for details on remote I O communications 15 DeviceNet Unit Features Section 1 2 Explicit Message Communications CS CJ series DeviceNet Unit Explicit message CS CJ series DeviceNet Unit Note Refer to 6 4 Sending Explicit Messages for details on remote I O communica t
283. ration is successfully completed Indicates that the error has not occurred The bit turns OFF when COS is successfully sent Connection 2 Estab lished Flag Indicates that an I O connection has been established for OUT 2 IN 2 This bit turns ON even if valid I O data has not been exchanged Indicates that an I O connection has not been established for OUT 2 IN 2 Connection 1 Estab lished Flag Indicates that an I O connection has been established for OUT 1 IN 1 This bit turns ON even if valid I O data has not been exchanged Indicates that an I O connection has not been established for OUT 1 IN 1 Remote I O Communica tions Flag for OUT 2 IN 2 Indicates that an I O connection has been established for OUT 2 IN 2 and the slave is conducting normal remote I O communications with the mas ter Indicates that an I O connection has been established for OUT 2 IN 2 and the slave is not conducting normal remote I O communications with the master Usage example When writing the ladder program for slave remote I O communications used a NO input conditions for this bit to control I O pro cessing with the master Remote I O Communica tions Flag for OUT 1 IN 1 Indicates that an I O connection has been established for OUT 1 IN 1 and the Slave is conducting normal remote I O communications with the Mas ter Indicates that an I O connection has been established for OUT 1 IN 1 and
284. rd WR 04 Hex 50 0032 Hex e IN block 1 area and first word WR 04 Hex 100 0064 Hex e Allocation Size Setup Table area and first word DM 03 Hex 00100 0064 Hex This example shows user set allocations for the following slaves Node address Outputs Product 16 pt Transistor Output Terminal DRT 1 OD16 8 pt input and 8 pt Output Environment resistant Terminal DRT1 MD16C CQM I O Link Terminal CQM1 DRT21 8 pt Transistor Input Terminal DRT 1 IDO8 CS CJ series DeviceNet Unit CS1W DRM21 Slave Unit Master User Allocations Table m 1 OUT block 1 area WR 04 Hex m 2 First word of OUT block 1 50 0032 Hex m 3 IN block 1 area WR 04 Hex m 4 First word of IN block 1 100 0064 Hex m 5 Area for the Allocation Size Setup Table DM 03 Hex m 6 First word of the Allocation Size Setup Table 00100 0064 Hex 111 User set Allocations ss Section 4 4 112 Allocation Size Setup Table OUT sizes specified in the leftmost byte Address 0 OUT 2 bytes IN sizes specified in the rightmost byte Address 0 IN 0 bytes 1 Address 1 OUT 1 bytes Address 1 IN 1 bytes 142 Address 2 OUT 2 bytes Address 2 IN 2 bytes 3 Address 3 OUT 0 bytes Address 3 IN 1 bytes 4 Address 4 OUT 0 bytes Address 4 IN 0 bytes I 5 Address 5 OUT 20 bytes Address 5 IN 20 bytes Resulting Slave Allocations OUT area 1 15 00 W
285. rds 3 2 1 60 Word n n 1 n 2 n 3 n 4 n 5 n 6 n 7 n 8 n 9 n 10 n 11 n 12 n 13 n 14 n 15 n 16 n 17 n 18 n 19 n 20 n 21 n 22 n 23 n 24 Bit 15 Data is stored at the offset positions shown in the figure below starting from the first word allocated to the Unit in the CIO Area The first word can be calculated as follows from the unit number setting First word n CIO 1 500 25 x unit number Bit 00 Direction Software Switches 1 Software Switches 2 Master COS Send Switches 4 words I O CPU Unit lt DeviceNet Unit Disconnect Connect Switches 4 words Outputs CPU Unit DeviceNet Unit Unit Status 1 Unit Status 2 Master Status 1 Master Status 2 Slave Status 1 Slave Status 1 Inputs Registered Slave Table 4 words CPU Unit DeviceNet Unit Normal Slave Table 4 words C200H Master Replacement Status 1 Software Switches 1 Word n Note All switches execute some function when the user turns them ON They turn OFF automatically after the function has been executed Once a function is set by turning a switch ON except for the switches listed below it is saved regardless of whether the power is turned OFF and ON again e Remote I O Communications Start Switch bit 02 03 e Remote I O Communications Stop Switch bit 04 No functions other than master and slave communications are disabled by stopping master or
286. re Switch word n 1 bit 14 to read the Unit setup data file on the Memory Card and to enable these settings as the Unit settings DeviceNet Unit CPU Unit Unit Setup File Restore Switch All setup data Memory Card Restore Note If there is an error in the setup data or if the file could not be read the File Read Write Error bit in Unit Status 2 word n 11 bit 08 will turn ON 248 Memory Card Backup Functions Appendix D 3 Saving Files from Configurator to Memory Card Device parameter files dvf files for this DeviceNet Unit that have been created using the Configurator can be saved on the Memory Card via the HMC AP001 Memory Card Adaptor as file name DNnnBKUP dvf where nn is the Unit number in 2 digit hexadecimal This DeviceNet Unit can be mounted to the CPU Unit and by turn ing ON the Unit Setup File Restore Switch word n bit 14 the setup data can be restored to the DeviceNet Unit Note The file name when saving setup data to the Memory Card must be DNnnBKUP dvf where nn is the Unit number in 2 digit hexadecimal For example for unit number 00 the file name must be DNOOBKUP dvf If the file is saved under another name the data cannot be restored from the Memory Card to the DeviceNet Unit DeviceNet Unit CPU Unit Configurator com Unit Setup File Restore Switch puter HMC AP001 Memory Card Adaptor Memory Card Memory Card Saving device parameter file Saved as file name DNn
287. re attempting to install and operate the DeviceNet Unit Be sure to read the precautions provided in the following section Section 1 provides an overview of the DeviceNet network including features specifications and sys tem Section 2 describes the nomenclature and installation of the DeviceNet Unit Section 3 describes the words allocated to the DeviceNet Unit in the CIO Area and DM Area These words both enable controlling the DeviceNet Unit and accessing Unit and network status Section 4 describes the remote I O communications performed as a master by the DeviceNet Unit Section 5 describes the remote I O communications performed as a slave by the DeviceNet Unit Section 6 describes message communications using FINS commands sent from the ladder program in the CPU Unit of the PC Section 7 describes connecting to CX Programmer via the DeviceNet and the Memory Card backup function Section 8 describes the time required for remote I O communications and message communications Section 9 describes error processing periodic maintenance and troubleshooting procedures needed to keep the DeviceNet network operating properly We recommend reading through the error process ing procedures before operation so that operating errors can be identified and corrected more quickly The Appendices provide information on allocation differences with C200H series DeviceNet Units DeviceNet connections remote programming and monitoring Memory Card
288. red in the scan list is set incorrectly Unsup ported con nection The slave does not support the connection registered in the scan list Results Reconnect with the error slave and continue remote I O com munications Indicators MS Not related NS Flashes red 7 segment display Errors that May Occur in Remote I O Communications Section 4 7 Condition Error Details Results Indicators 7 segment display Fixed or user set allocations I O communications error A timeout occurred during remote I O communications The Slave response timed out 6 times ina row or an error occurred 3 times in a row Network power error The network is not supplying com munications power Send timeout A communications request was not successfully completed due to the following reasons e There are no devices on the net work Baud settings do not match for every node e CAN controller error Reconnect with the error Slave and continue remote I O com munications MS Not related NS Flashes red MS Not related NS Goes out Duplicated node address The master node address is the same address as another node Bus OFF detected Bus OFF error was detected All communica tions stop remote I O communica tions stop slave operation stops and message communications are disabled MS Not related NS Flashes red Master scan list lo
289. remote I O communications Usage example When writing the ladder program for remote I O commu nications set a NO input condition for this bit to control slave I O process ing Indicates that remote I O communications are not being conducted with any slaves 3 2 8 Master Status 2 Word n 13 The leftmost eight bits indicate the status of master I O allocations Word Bit 15 Bit 08 Bit 07 Bit 00 n 13 Master I O Allocation Status Reserved by system Master I O Allocation Status Code Details Unit starting up Fixed allocation status 1 with the scan list disabled Fixed allocation status 2 with the scan list disabled Fixed allocation status 3 with the scan list disabled Fixed allocation status 1 Fixed allocation status 2 Fixed allocation status 3 User set allocations in the allocated DM Area words User set allocations from the Configurator Master function disabled 75 Allocated CIO Area Words Section 3 2 3 2 9 Slave Status 1 Word n 14 Word n 14 n CIO 1 500 25 x unit number Reserved by system Status Controlled by Unit operation Remote I O Communica tions Error Flag for OUT 1 IN 1 Indicates that a communications error has occurred in the OUT 1 IN 1 slave I O connection Indicates that a remote I O communications error has not occurred or turns OFF when a remote I O communications error is cleared Remot
290. ress Slave s indicator status System startup time The Master is The NS indicator is OFF or flashing green 5 seconds started just after Slave startup Just the Master is The NS indicator is flashes red while the Mas 7 seconds restarted ter is OFF Just the Slaves are 9 seconds restarted Program Example As shown in the preceding table it takes time for DeviceNet communications to start up This programming uses flags in the Master status area to prevents the Slaves I O processing from being performed until remote I O communica tions start up 195 Message Communications Note Slave Function Section 8 2 This programming is for a DeviceNet Unit with a unit number of 00 1512 1510 15 00 004 H gmp 0001 A EEEE E i Remote I O 1 Communications Slaves O n 12 bit 15 I processing j Unit Error i i n 10 bit 00 j i 005 JME 0001 Refer to 3 2 Allocated CIO Area Words for details on the Master Status Area It takes approximately four seconds from the time that the Devicenet Unit is turned ON or restarted as a slave until remote I O communications with the master begin 8 2 Message Communications 8 2 1 196 Message Communications Time Note The message communications time is the time required from the time a Mas ter Unit starts to send a message over the Network to another node until the Master Unit completes sending the message data
291. returned Explanation An error has occurred if the test data sent by the command and the tests data returned by the response are different READ ERROR HISTORY 2102 Reads the error history saved in the DeviceNet Unit Command Block 21 02 Command Beginning No of code record no records Response Block Loe W eee wt tet Es te E 21 02 Et _ SS Command End code Max no No of No of Errorlog Error log code of stored stored read data for data for records records records 1 record 1 record End Codes End code hex Contents Normal end Command length exceeds maximum command length The command length is insufficient for the smallest command Outside address range error The Read start record No is larger than the number of records currently stored Parameter error No of read records 0 Parameter Details Read Start Record No Command Specifies the record number where the read is to start in 2 byte 4 digit hexa decimal The record number is specified from 0000 to 0003F hex 0 to 63 dec imal with the first word being 0000 hex Read Record No Command response For commands specifies the number of records to be read The specification range is 0001 to 0040 hex 1 to 64 decimal For responses the number of records actually read is returned Max No of Records Response The maxi
292. rogrammer via the DeviceNet185 7 1 4 Response when Using the CX Programmer via the DeviceNet 185 Memory Card Backup Functions 0 00 00 c eee eee eee ee 186 7 2 1 Outline of Functions 00 0 cece eee 187 72222 CPile Names sn gee ena EET RAPE CS CEES eee 188 181 Connecting to the CX Programmer via the DeviceNet Section 7 1 7 1 Connecting to the CX Programmer via the DeviceNet With CX Programmer Ver 2 1 or later a serial connection can be made to a PC containing a CS CJ series DeviceNet Unit to form an online connection via the DeviceNet to other PC CPU Units on the network e CS series CPU Unit e CJ series CPU Unit e Programmable Slave DeviceNet Unit Serial gt DeviceNet CX Programmer Ver 2 1 or later Serial connection Host Link or peripheral bus Online connection enabling all online functions including remote programming and monitoring Programmable Slave CS series CPU CJ series CPU Unit Unit It is also possible to form an online connection for remote programming or monitoring with the PC CPU Units shown above on the DeviceNet network from another network CX Programmer Ver 2 1 or later Ethernet gt DeviceNet gateway DeviceNet Unit Online connection enabling all online functions including remote programming and monitoring DeviceNet DeviceNet Unit Programmable Slave CS CJ series 182 Connecting
293. rol The only DeviceNet masters that can be handled by the Configurator are OMRON s CS1W DRM21 CJ1W DRM21 CVM1 DRM21 V1 and C200HW DRM21 V1 1 5 2 Configurator Specifications Item Specification Operating envi Hardware Personal computer IBM PC AT or compatible ronment CPU Pentium 166 MHz or higher with Windows NT Memory 32 Mbytes Hard disk A minimum of 15 Mbytes OS Windows 95 98 Me NT4 0 or 2000 Network connection method Dedicated Board Card 3G8F5 DRM21 Dedicated ISA Board 3G8E2 DRM21 Dedicated PCMCIA Card Serial connection to e Peripheral or RS 232C port of PC with DeviceNet DeviceNet network with Unit mounted gateway e RS 232C port of Serial Communications Board Unit Serial communications mode Peripheral bus or Host Link Dedicated Network status A single node address is used Board Card number of Boards Cards 34 Connectable One network Outline of the Configurator Section 1 5 Item Main functions Setup functions Specification Master device parameter settings for OMRON s Master e Remote I O master allocations with a scan list The node address order can be set as desired Two output blocks and two input blocks can be allocated See note Remote I O slave allocations Setting master remote I O communications connections Setting slave remote I O communications connections Enabling or disabling device data checks through remote I O co
294. rom the Configurator Communications Cycle Time Tab Saving all parameters like scan list data for masters and slaves on the network Save the network configuration from the Configura tor DeviceNet Con figurator Opera tion Manual Replacing a DeviceNet Unit Insert a Memory Card in the CPU Unit and turn ON the Unit Setup File Backup Switch in the allocated CIO Area words Replace the DeviceNet Unit Turn ON the Unit Setup File List Switch in the allocated CIO Area words Turn ON Scan List Clear Switch in the allocated CIO Area words Make sure the slave is connected and then turn ON the Scan List Enable Switch 43 This section describes the nomenclature and installation of the DeviceNet Unit 2 1 2 2 Nomenclature and Functions 2 1 1 Nomenclature and Functions 0 0 e eee eee eee 2 1 2 Status Indicators MS and NS 0 0 0 0 e eee eee 2 1 3 Seven Segment Display 0 0 0 0 000 e eee eee 2 1 4 Switch Settings 25 5 5 ees bebe eee bb eee bbe eb bees Installing the DeviceNet Unit 0 0 0 cee eee eee eee 2 2 1 System Configuration Precautions 000 222 2 SMOUNUN Se os ets Ra eee Rade 8 MIE EE ee MONS aes T 2 2 3 Handling Precautions 0 00 eee eee eee ee 2 2 4 External Dimensions 0 0 0 e ee eee eee eee SECTION 2 Nomenclature and Installation 46 46 47 48 49 51 51 52 53 55
295. rom 2 to 500 ms How ever the calculated value is only enabled when the calculated value from the conditions equation is greater than the setting Note Uses the default value calculated using 1 input word and 1 output word even for missing nodes when the scan list is disabled Message Max No of nodes for message commu communica nications per DeviceNet Unit tions FINS message com 62 nodes Note FINS message com munications Node munications using address 0 cannot be SEND RECV are used in FINS commu not supported on nicatins PCs to which a 63 nodes C200H DeviceNet Master Unit or a CVM1 CV DeviceNet Master Unit is mounted Explicit message are supported how ever Send explicit mes sages Execution commands FINS commands to SEND RECV instructions send receive data Any FINS commands CMND instruction Sending and receiving FINS commands connected through a serial line Executes FINS commands from a host computer to a PC to which a CS CJ series DeviceNet Unit is mounted on DeviceNet through Host Link connections A PC can also send unsolicited FINS commands over DeviceNet to a host computer connected through Host Link Inter network communica Same type tions of network Allows transmission across the same type of networks between DeviceNet networks when multiple Units are mounted can cross up to three levels Different type of net work 26 Allows transm
296. rvice Word data H Code Word data H Word data L Word data L Destination node address No of bytes Read data 200 bytes max received Parameters Destination node address command The node address of the CS CJ series DeviceNet Unit that reads the data specified in 1 byte 2 digit hexa decimal Service code command response ID Hex is specified for commands For responses the highest bit will turn ON and 9D Hex will be returned Class ID command Always 002F Hex Instance ID command The type of memory area that will read the data is specified in hexadecimal as shown in the following table Instance ID Hex CPU Unit memory area Word range for read 0000 to 6143 DM D00000 to D32767 WR W000 to W511 HR HO000 to H511 EM banks 0 to C En_00000 to En_32767 n 0 to C Address L Address H command The address of the first word to read the data from is specified in hexadecimal as shown below Address L The lower 2 digits when the first word address is given in 4 digit hexadecimal Address H The higher 2 digits when the first word address is given in 4 digit hexadecimal 176 Receiving Explicit Messages Important Points Section 6 5 No of Read Words command The number of words of read data is speci fied in 1 byte 2 digit hexadecimal The range is 01 to 64 Hex 1 to 100 deci mal No of bytes received response The number of bytes received from the destination node a
297. s Edit All Masters and select the corresponding Slave Click the Detailed Settings Button 3 On the Connection Tab Page shown below select a check box e Automatic selection e User selection Select up to two connections from poll bit strobe COS and cyclic COS and cyclic connections cannot be used at the same time COS send switch OFF to ON I O refresh CPU Unit user program DeviceNet Unit i Communications cycle Communications cycle Communications cycle Communications cycle time time time time Slave I O using normal connection COS output 236 DeviceNet Connections Appendix B Note 1 Output data using poll connections and output data using COS or cyclic connections are transmitted using the same frame Therefore set the same output size bytes when combining poll and COS or poll and cyclic 2 The COS cyclic heartbeat timer is the smallest transmission interval for COS or cyclic connections It can be set for each corresponding slave Refer to DeviceNet Configurator Operation Manual W382 for details on Configurator operation Connection Path Connection path are parameters that specify the type of I O data in the slaves Depending on the type of slave the internal I O data type may be able to be selected If it can the connection path and I O data type in the slave specified for remote I O communications The connection path settings will differ depending on the allocation method as outlined below
298. s Section 6 3 Program Example A202 14 071 BSET 1234 D01000 First Scan Flag 021 MOV 0005 021 MOV 0001 021 MOV 0600 021 MOV 0000 021 MOV 0064 021 MOV 0001 Execution condition 000 A202 1511 00 00 00 mim Network Online Fla Enabled Word n 11 090 SEND D01000 D03000 i 025 Flag bit 00 oe 0000 A202 aoz 01 00 021 k MOV A503 Network Network 061 Enabled Execution 961 Flag Error Flag D01004 D00000 D00001 D00002 D00003 D00004 0000 D00000 0000 D00006 0000 001 END Sets 1234 in D01000 to D01004 Places data into control data words to specify the 5 words to be transmitted to the CPU Unit of node 06 of network 01 through port 0 with response 0 retries and a response monitoring time of 10 0 seconds Places 0001 into ClO 0000 Transfers 5 words of data from D01000 to D01004 from the PC of node 05 to D03000 to D03004 in the PC of node 06 Shifts the contents of CIO 0000 one bit to the left Stores the completion code in A203 to D00006 Shifts the contents of CIO 0000 one bit to the right and retries the next cycle ClIO 000000 ON 155 Using FINS Message Communications Section 6 3 Example 2 Sending a FINS Command Using CMND CS CJ series CMND CS CuJ series DeviceNet Unit No 0 DeviceNet Unit Unit ad dress 00 Node 05 Node 06 i Network 01 4 MEMORY AREA
299. s Error e Returns an error response 0302 Hex to commands requiring a re sponse e Discards other frames and stores an error record 010B Hex in the er ror log Flags Allocated for C200H DeviceNet Master Unit CIO n 24 There is no status notification because communications with the CPU Unit are disabled CIO Area Flags Allocated to DeviceNet Unit There is no status notification because communications with the CPU Unit are disabled Correction Replace the CPU Unit 7 segment Error log Hex DeviceNet Unit Response Output data is set to 0 With the master these are output bits With the slave these are input bits to the other master Error log Hex Likely Cause The Output OFF Bit A50015 was turned ON in the CPU Unit DeviceNet Unit Response Output data is set to 0 With the master these are output bits With the slave these are input bits to the other master Error log Hex L9 Red flashing 0345 Likely Cause A timeout occurred during remote I O communications using the slave func tion DeviceNet Unit Response Records the error in the error log If slave has outputs the status of those outputs is determined by the hold clear outputs setting for communications errors CIO Area Flags Allocated to DeviceNet Unit Bits 00 and 03 of n 10 the Unit Error Flag and Slave Error Flag and bits 02 and 03 of n 14 the Remote I O Communications Error Flag for OUT1 IN1 and Remote I O Communica
300. s PC Data length excluding SEND instruction 267 words RECV instruc 542 bytes max command code tion 269 words 135 Overview Section 6 1 Note 1 The DeviceNet Unit must be registered in the local network routing table of the CS CJ series PC when two or more Communications Units including the DeviceNet Unit are mounted to a CS CJ series PC The commands will not be sent if the Unit is not registered in the routing tables 2 For DeviceNet networks connected to a CS CJ series DeviceNet Unit message communications can be conducted between networks including other DeviceNet networks as well as Controller Link SYSMAC LINK and Ethernet networks Up to three levels of networks can be crossed Routing tables containing local network tables and relay network tables must be registered in the CPU Units of each PC on the network Up to 3 network levels including DeviceNet can be crossed Controller Link Unit Controller Link Unit CS CJ series DeviceNet Unit S CJ series CPU Unit Note FINS commands sent and received by the CS CJ series DeviceNet Unit include commands addressed to the CS CJ series CPU Unit and commands addressed to the CS CJ series DeviceNet Unit FINS message communications is possible between two PCs with CS1W DRM21 or CJ1W DRM21 DeviceNet Units FINS messages cannot be sent or received for PCs with C200H series DeviceNet Master Units C200HW DRM21 V1 or CVM1 CV series De
301. s and C200H DeviceNet Master C200HW DRM21 V1 Remote O Com munica tions Stop Switch Stops remote I O communications Once remote I O communications have been stopped they will remain stopped until the Unit has been restarted or the remote I O communications have been restarted i e until the Remote I O Communications Start Switch is turned ON Note 1 The switch is ignored if remote I O commu nications are already stopped 2 Message communications will remain enabled even if remote I O communications have stopped Returns to OFF when remote I O communications stop Default setting 62 Reserved by system Allocated CIO Area Words Section 3 2 Bit Name Status Con trolled by Unit operation Operation condi tions CPU Mas Scan Unit ter list oper func sta ating tion tus mode Default setting 06 Master OFF gt gt User Enables master communications The Unit automati Pro Dis Master Enable ON cally restarts gram abled enabled Switch Once enabled the Unit will function as a Master mode regardless of whether the power is turned OFF and back ON again until the Master Stop Switch word n bit 07 is turned ON Note 1 Master communications are enabled in the default settings 2 If this bit is turned ON with master communi cations enabled a Unit st
302. s are set 10 Master OFF User Functions the same as bit 08 to allocate the following Pro En Dis Fixed ON words The Unit automatically restarts gram abled abled Alloca e OUT area CIO 3600 to CIO 3663 1 word 1 node ad Node tion Set dress ting 3 e IN area CIO 3700 to CIO 3763 1 word 1 node ad Switch dress OFF Unit Returns to OFF after the fixed allocation areas are set 63 Allocated CIO Area Words Section 3 2 Bit Name Status Con Unit operation Operation condi Default trolled tions setting by CPU Mas Scan Unit ter list oper func sta ating tion tus mode 11 Master OFF User Reads setup data from the Master User Allocations Pro En Master User set ON Setup Table words m 1 to m 7 inthe DM Area and gram abled Fixed Alloca registers the scan list The Unit automatically restarts mode Alloca tions Once registered the Unit will operate with master user tion Switch set allocations regardless of whether the power is Setting turned OFF and back ON again until the scan list is 1 cleared enabled OFF Unit Returns to OFF when the scan list is registered and the Unit starts operating with the scan list enabled Note If there is a setting error an error code will be stored in the Master User Allocations Setup Table words m 1 to m 7 and the Scan List Register Clear Failed Flag word n 12 bit 11 will turn ON 12 Tempo OFF User Reads setup d
303. s at node address 3 Detailed slave status at node address 2 to m 68 Detailed slave status at node address 63 Detailed slave status at node address 62 Controlled Unit operation by Slave Error Indicates that a remote I O communications error has occurred with Flags the slave More specifically this bit turns ON when at least one of the following errors occurs e Verification Error Flag word n 12 bit 00 e Structure Error Flag word n 12 bit 01 e Remote I O Communications Error Flag word n 12 bit 02 Indicates that an error has not occurred or turns OFF when the error has been cleared Slave Verifi Indicates that the data for the slave registered in the scan list is dif cation Error ferent from the actual Slave It occurs with the scan list enabled Flags Indicates that a verification error has not occurred or turns OFF when a verification error is cleared Slave Con Indicates that an error that disables I O allocations has occurred at figuration the Slave with the scan list disabled Error Flags Indicates that a structure error has not occurred or turns OFF when the structure error is cleared 89 Allocated DM Area Words Section 3 3 Bit Name Slave Remote I O Communica tions Error Flag Status Controlled by Unit operation Indicates that an error has occurred in remote I O communications with the Slave This bit turns ON if a timeout occurs in at
304. s is shown at the words indicated in the following table as FINS completion codes During execution of the instructions the status will be 00 or 0000 and this will be reflected at the end of the execution of the network communications instruction Port 0 to 7 A203 to A210 contain the completion codes for the results Completion Codes of communications instruction execution for ports 0 to A203 to A210 7 respectively Note For the CS CJ series the completion codes are stored as 2 bytes of data 1 word upon completion of the execution of SEND 090 RECV 098 and CMND 490 These codes are the same as the re sponse codes for FINS commands The first byte of the completion code is placed in bits 08 to 15 and the second byte is placed in bits 00 to 07 Timing of Reading Responses Responses should be read on the rising edge upward differentiation of the Network Enabled Flag as shown in the following diagram Network Enabled Flag tH Processing to read response Send Receive Data Areas The size of the data areas that can be used with SEND and RECV depends on the PC that is being used The following table shows the areas that can be used for CS CJ series PCs CIO Area CIO 0000 to CIO 6143 Work Area WR W000 to W511 153 Using FINS Message Communications Section 6 3 Data Area Range Holding Area HOOO to H511 Auxiliary Area A000 to A959 3 Timer Area T0000 to T4095 Counter Area C0000 to
305. s max 8 000 input words 8 000 output words When set from the Configurator 32 000 pts max 16 000 input words 16 000 output words The following areas can be set CIO 0000 to 0235 0300 to 0511 CIO 1000 to 1063 HR HROOO to HRO99 DM D00000 to D05999 The following areas can be set CIO 0000 to 6143 WR W000 to W511 HR HROOO to HR511 words DM D00000 to D32767 EM E00000 to E32767 Banks 0 to C sup ported OUT 1 OUT 2 IN 1 and IN 2 for a total of 4 blocks can be set at any size total for 1 to 4 blocks at any position in the allocation areas given above Any node addresses can be set within a block Any position in the allocation areas given above Using allocated DM Area words Total of two block OUT 1 and IN 1 Using the Configurator A total of 4 blocks OUT 1 OUT 2 IN 1 and IN 2 With a total of 4 blocks and a maximum of 100 words per block the maximum number of words is 100 using message communica tions and 300 without using the message communications 500 words max per block Using allocated DM Area words 1 000 words total for 2 blocks Using the Configurator 2 000 words total for 4 blocks Maximum of 32 input words 32 output words per slave Using 2 connections Maximum of 200 input words 100 output words per slave Using 1 connection Maximum of 100 input words 100 output words per slave There are the following restrictions e The bytes 7
306. s unit number The unit number of the CPU Bus Unit Example Unit 00 Unit 01 Unit 02 Network address 1 Network address 2 Network address 3 Local Network Table Address of local CPU Bus Unit s network unit number ee k 146 Using FINS Message Communications Section 6 3 Relay Network Tables Address of local CPU Bus Unit s network unit number The unit number of the DeviceNet Unit as a CPU Bus Unit is the number set on the rotary switches on the front panel 0 to 15 The network address is the address of the Network to which the CPU Bus Unit is connected 1 to 127 The network address is specified when this local network table for the routing table is created Relay network tables show the destination network final network and the network and node address of the first relay point on the way to that network the first point to which communications are sent The relay points are fol lowed on the way to the final network Final Network Address Relay Network Address Relay Node Address Final network address The address of the final network 1 to 127 Relay network address The address of the network to which the first relay point belongs 1 to 127 Relay node address The node address of the first relay point Procedure for Creating the Routing Table Use the CX Net function for creating sending routing tables in the CX Pro grammer with the following procedure 1
307. s used to set whether or not communications will stop after a communications error OFF Continue communications ON Stop communications If pin 3 is ON remote I O communications will be stopped if one of the follow ing errors occurs Remote I O Communications Error Flag n 12 bit 02 is ON Send Timeout Flag n 10 bit 08 is ON Network Power Error Flag n 10 bit 07 is ON Remote I O communications will remain stopped even if the error is cleared Message communications and slave functions will continue To resume com munications turn ON the Remote I O Communications Start Bit word n bit 02 of Software Switches 1 Refer to 3 2 Allocated CIO Area Words for details The 7 segment display will show AO when remote I O communications stop Refer to SECTION 9 Troubleshooting and Maintenance If pin 3 is OFF remote I O communications will stop if a send timeout or net work power error occurs but will restart automatically when the cause of the error is cleared Hold Clear Remote Outputs When the DeviceNet Unit is used as a slave pin 4 is used to set whether to hold or clear remote outputs when a communications error occurs If the DeviceNet Unit is used as a slave the 7 segment display will show L9 when remote I O communications stop Refer to SECTION 9 Troubleshooting and Maintenance Color stickers that match communications cable colors are attached to the communications connectors Match the colors
308. s x 2 100 output words x 1 CS Series C200HX HG HE C200HW DRT21 1 024 pts 32 input 32 output words CQM1H CQM1 Series CQM1 DRT21 32 pts 1 input 1 output word Allocation areas in the CPU Unit to which this Slave is mounted CS Series CS1W DRM21 CJ Series CJ1W DRM21 CIO WR DM EM HR CS Series C200HX HG HE C200HW DRT21 CIO DM EM AR LR T C CQM1H CQM1 Series CQM1 DRT21 ClO Overview of DeviceNet Message Communications Communications Instructions Master CS Series Unit model CS1W DRM21 SEND 192 CJ Series CJ1W DRM21 RS 232C Interface Unit Receive RECV 193 Section 1 1 FINS commands CMND 194 CVM1 CV Series CVM1 DRM21 V1 SEND 192 RECV 193 CMND 194 CS Series C200HX HG HE C200HS Max No of nodes per Master for message communications using FINS commands C200HW DRM21 V1 Master model CS Series None None IOWR CS1W DRM21 62 nodes CJ Series CJ1W DRM21 Capacity Node address 0 cannot be used in FINS communications CVM1 CV Series CVM1 DRM21 V1 8 nodes CS Series C200HX HG HE C200HS C200HW DRM21 V1 8 nodes Not supported Max No of nodes per Master for message communications using explicit messages CS Series CS1W DRM21 63 nodes CJ Series CJ1W DRM21 CVM1 CV Series
309. sed for the message monitoring timer and operation continues For error 7 The communications cycle time is set automatically and operation continues For error 8 Operation continues Flags Allocated for C200H DeviceNet Master Unit CIO n 24 Bit 14 Error Flag and bit 00 the Incorrect Switch Settings EEPROM Error Flag will be ON Troubleshooting with the DeviceNet Unit Indicators Section 9 1 CIO Area Flags Allocated to DeviceNet Unit Bits 00 and 04 of n 10 the Unit Error Flag and Unit Memory Error Flag will be ON Correction Replace the Unit if the error recurs CPU Unit Exchange Errors Unit Number duplication CPU Unit Faulty H2 DeviceNet Unit Faulty Node Address Setting Error Communications Speed Setting Error Error Tog Hew Red flashing OFF Set the unit numbers correctly and restart the DeviceNet Units Error log Hex Red flashing OFF Replace the CPU Unit if the error recurs when the CPU Unit is restarted 7 segment Error log Hex rs fa OFF Replace the DeviceNet Unit if the same error recurs when the Unit is mounted to another CPU Unit Error log Hex Red flashing OFF Likely Cause The node address set on the rotary switches is out of range 64 or higher Set the node address correctly and restart the DeviceNet Units Tsegment Error log Hex Red lashing i o Likely Cause The communications speed is set incorrectly 21 W Troubleshooting with the Devic
310. set the master scan list Error log Hex Red lashing OoOo o Likely Cause An error occurred in the Unit s non volatile memory itself This error will occur in the following cases 1 An error occurs reading the identity information during initialization 2 All 64 error log records cannot be used during initialization or registering an error log record An error occurs while reading or writing the error log An error occurs while reading or writing the master function enabling data or the master scan list 5 An error occurs while reading or writing the slave function enabling data or the slave scan list An error occurs while reading or writing the message monitoring timer An error occurs while reading or writing the communications cycle time set value 8 An error occurs while reading the identity information during Identity object server processing Pe Mm This error does occur for checksum errors while reading data DeviceNet Unit Response Registers an error record with error code 0602 in the RAM error log area For error 1 Normal operation continues For error 2 or 3 Remaining writes to EEPROM are all ignored Other than that normal opera tion continues Error records continue to be written to RAM For error 4 The master remote I O communications are stopped Other operations con tinue For error 5 The slave scanning is stopped and other operations continue For error 6 The default values are u
311. ssages can be sent between PCs between an OMRON PC and a master made by another company or between slaves They can be used to send receive data read time data error histories and other data or control operation e g by force setting resetting bits There are two types of messages FINS messages and explicit messages 6 1 1 Outline of Message Communications FINS messages Explicit messages Outline Message communications for General purpose message com OMRON products that use the munications using the DeviceNet FINS protocol protocol Remote OMRON PCs with a CS CJ series Other manufacturer masters or device DeviceNet Unit slaves OMRON PCs with C200H or CVM1 CV series DeviceNet Master Unit or CS CuU series DeviceNet Units OMRON PCs with C200H I O Link Units Features Provide a greater range of services Enable message communications than explicit messages by sending with DeviceNet devices from other and receiving FINS commands manufacturers Have message compatibility with Can receive explicit messages other OMRON networks such as ___ from OMRON PCs with C200H or Controller Link SYSMAC LINK CVM1 CV series DeviceNet Master and Ethernet up to 3 levels Units and can send explicit mes sages to OMRON PCs with C200H I O Link Units Send FINS communications function Receive Message communications funct
312. st here e Areas and Word Ranges for OUT Block 1 IN Block 1 and the Alloca tion Size Setup Table Word range 00 Hex The block is not used 01 Hex CIO Area CIO 0000 to 17FF Hex 0 to 6143 03 Hex Data Memory DM 0000 to 7FFF Hex 0 to 32767 04 Hex Work WR 0000 to 01FF Hex 0 to 511 05 Hex HR HR 0000 to 01FF Hex 0 to 511 08 to 14 Hex Expansion Data Memory EM 0000 to 7FFF Hex 0 to 32767 for all Bank 0 to bank C 13 banks banks Step 3 Setting the Allocation Size Setup Table Specify the area and first word in this table at words m 5 and m 6 IN and OUT sizes for all nodes are set here as shown in the table below The setting range for each node is 0 to 200 bytes 0 to 100 words although actual size depends on the allocated slaves The maximum size per block is 500 words If the size set here is larger than 1 byte the start bit for all slaves is bit 00 and size is allocated in ascending node address order starting from the beginning of the OUT 1 and IN 1 areas in word units If the size is set at 0 bytes for a node address it is skipped the words are allocated to the next address e Allocation Size Setup Table 109 User set Allocations Section 4 4 lis the first word in the Allocation Size Setup Table and is specified at words m 5 and m 6 Bit 15 08 07 00 1 0 Node address 0 OUT size bytes Node address 0 IN size bytes I 1 Node address 1 OUT size bytes Node ad
313. t ClO 3400 to ClO 3463 15 0 Address 0 Input from Slaves CIO 3561 Address 61 CIO 3562 Address 62 CIO 3563 Address 63 103 Fixed Allocations Section 4 3 CS CJ series DeviceNet CIO Area Bit CIO 3600 to OUT block ClO 3663 Bit _15 CIO 3700 to IN block ClO 3763 Note 104 Fixed Allocations Area 3 OUT blocks are allocated to slaves from CIO 3600 to CIO 3663 and IN blocks are allocated to slaves from CIO 3700 to CIO 3763 OUT block Bit _15 0 2 wn Output to Slaves 0 15 0 Address 0 Address 1 Address 2 to Address 60 Address 61 Address 62 Address 6 lt Input from Slaves The Slave allocation order is fixed in the output OUT and IN blocks starting from address 0 Each address is allocated at least one byte rightmost e More than one word is allocated for each slave according to it s node address with more than16 I O points e The rightmost byte of the word is allocated to each slave that has less than 16 I O points The table below shows how fixed allocations areas differ between the C200HW DM21 V1 DeviceNet Master Unit of the C200H series and the CS1W DRM21 DeviceNet Unit of the CS CJ series and CJ1W DRM21 DeviceNet Unit of the CJ series C200HW DRM21 V1 C200 DeviceNet CIO Area CS1W DRM21 CJ1W DRM21 CS CJ series DeviceNet CIO Area CIO 3200 to CIO 3263 CIO 3400 to CIO 3463 CIO 3600 to ClO 3663 CIO 3300 to CIO 3363 CIO 3500
314. t Controller Link Unit and Ethernet Unit It is therefore necessary to create routing tables for the communications func tions to be used as shown in the table below Using FINS message communications across networks Mounted Units Using master or slave functions only Using explicit message communications not supported across networks Using FINS message communications not across networks DeviceNet is the only Not necessary See note 1 Local network table Communications Unit mounted Multiple DeviceNet Units mounted as Communications Units Not necessary See note 1 Local network table necessary See note 2 DeviceNet Unit and other Communica tions Unit mounted simultaneously Local network table necessary See note 2 Note 1 viceNet Unit must be registered in that table 2 The DeviceNet Unit must be registered in the local network table See note 2 and relay network table are nec essary If a local network table already exists in the CPU unit being used the De 145 Using FINS Message Communications Section 6 3 3 In all cases other than the following two exceptions a local network table must be made and the DeviceNet Unit must be registered in it a When there is only one DeviceNet Unit b When only multiple DeviceNet Units are mounted with no remote I O communications 4 A local network table is sometimes necessary even when the DeviceNet Unit
315. t any special programming in the CPU Unit under which the Master Unit is mounted 1 CS CJ series DeviceNet Unit master CS CJ series CPU Unit Slaves A CS Cu series DeviceNet Unit can function as either a master or slave in remote I O communications and it can even function as both a master and a slave at the same time Turn ON the Master Enable Switch word n bit 06 in the Software Switches in the words allocated in the CIO Area to set the CS CJ series DeviceNet Unit to function as a master Once this switch is turned ON and master communications are enabled the Unit will contin ue to perform master communications regardless of whether the power is turned OFF and back ON again Turn ON the Master Stop Switch word n bit 07 to stop master communications Master communications are the fo cus of this section In the following descriptions a CS CJ series DeviceNet Unit set to function as a master is referred to as a Master Unit and a CS CJ series DeviceNet Unit set to function as a slave is referred to as a Slave Unit All slaves are allocated words in the I O memory of the CPU Unit to which the Master Unit is mounted They are allocated using one of the following meth ods 1 Fixed allocations 2 User set allocations Master Remote I O Communications Section 4 1 Fixed Allocations User set Allocations Using the Master User Allocations Table Any one of the three areas below can be speci
316. the CX Programmer after extending the cycle time in the Commu nications Cycle Time Setup Table word m in the DM Area and turning ON the Temporary Setting Switch for Communications Cycle Time word n bit 12 Extending the communications cycle time 1 5 times will result in a 20 30 improvement in response However whereas the CX Programmer re sponse will increasingly improve by extending the communications cycle time the remote I O communications response will suffer The CX Programmer response decreases in accordance with decreases in the DeviceNet communications speed At a speed of 125 Kbps response will suffer by up to a twenty fold drop in comparison with connection by a periph eral bus Accordingly a DeviceNet communications speed of 500 Kbps is recom mended when the CX Programmer is connected to the network via the DeviceNet Unit 7 2 Memory Card Backup Functions 186 Note Note The DeviceNet Unit stores the following setup data in the internal non volatile memory EEPROM e Master scan lists e Slave scan lists e Message monitoring timer lists e Communications cycle time settings e Master Slave functions enabled disabled settings Backup is possible only when scan lists are enabled With the CS CJ series DeviceNet Unit all this setup data can be backed up to and restored from a Memory Card mounted to the CPU Unit See note The data can be backed up to a Memory Card only It cannot be backed up to a
317. the executed explicit mes sage T 28 01 00 00 94 l ne o Command End code No of bytes Error code code received Service code 94 hex Source node address local node e When the explicit message execution failed or timed out I 28 01 Command End code code 261 DeviceNet Explicit Message Send Command for Other Manufacturer Nodes Appendix F Parameter Details Explanation Send Destination Node Address Command Specifies the node address of the explicit message destination The local node DeviceNet Unit is specified for CMND and IOWR instruction control data for Explicit Message Send commands and the actual destination node is specified here Service Code Command response For commands the service code defined by the DeviceNet is specified For normal responses the value for when bit 15 of the service code specified in the command turns ON is returned For error responses 94 hex which indi cates an error is returned Class ID Command Specifies the class ID for the explicit message destination Instance ID Command Specifies the instance ID for the explicit message destination Service Data Command response For commands specifies the data defined by the service code For responses returns the reception data defined by the service code No of Bytes Received Response Returns the number of bytes received after Source local
318. the explicit message cannot be sent or times out 160 Sending Explicit Messages Section 6 4 28 01 Command Response code code Parameters Destination node address command The node address of the destination of the explicit message The node address of the local DeviceNet Unit is specified in the control data for the CMND 490 or IOWR instruction but the node address of the actual destination is specified here in the FINS com mand Service code command response A service code defined for DeviceNet In a normal response bit 15 of the service code specified in the command will be turned ON and returned In an error response 94 Hex will always be returned Class ID command The class ID of the destination of the explicit message Instance ID command The instance ID of the destination of the explicit message Service data command response The data defined for the services codes No of bytes received response The number of bytes received from the destination node address remote node Destination node address remote node The node address of the OMRON Special I O Slave Unit or Slave manufactured by another company to which the explicit message was sent is returned Error code response An error code defined by DeviceNet Note 1 This command sends a DeviceNet defined explicit message to an OMRON Special I O Slave Unit or a Slave manufactured by another company and receives a res
319. the list is subsequently cleared using a software switch fixed allo cations 1 to 3 will be used for remote I O communications when the scan list is disabled Make sure the system has stopped before Fixed Allocations Section 4 3 Backing Up the Scan List you disable the scan list with a Master Unit that is set for user set allocations Particularly when multiple Master Units are connected to a single network communications will not be performed suc cessfully if even one Master Unit on the network is operating with the scan list disabled Once the list is disabled the user set allo cations data registered in the Master Unit is lost Fixed Allocations or User set Allocations in Allocated DM Area Words User set Allocations from the Configurator A scan list must be created to switch the DeviceNet Unit to operation with the scan list disabled or to replace a DeviceNet Unit It is important to back up the list using one of the following methods Save the scan list as a backup file on Memory Card by turning ON the Setup File Backup Switch word n 1 bit 15 in the words allocated in the CIO Area Save the scan list as a backup file on Memory Card or save it either as a net work component file and master parameter file using the Configurator In the preceding cases turn ON the Setup File Restore Switch word n 1 bit 14 in the words allocated in the ClO Area to input setup data such as the scan list backed up on Memory Card
320. the network Remote I O com munications will begin with the scan list enabled 5 Switch the CPU Unit to RUN mode Using Slave Function To use the slave function the Slave Enable Switch word n 1 bit 06 must be turned ON from a Programming Device Enable slave communications through CS1W DRM21 CJ1W DRM21 properties if you are using a Configu rator With fixed allocations or allocations set in the allocated DM Area words slave communications must be disabled prior to area allocation and must be enabled following area allocation The order of the procedure is thus Slave Stop Switch if slave communications are enabled area allocation and Slave Enable Switch Note Slave communications must be disabled prior to area allocation when using fixed allocations or allocations set in the allocated DM Area words and the settings must be read to the Unit when slave communications are enabled Allocations will not be valid if slave communications are enabled during area allocation Fixed Allocations Use the following procedure to use fixed allocations Refer to 5 2 Fixed Alloca tions for details on fixed allocations 1 2 3 1 Switch the CPU Unit to PROGRAM mode 39 Basic Operating Procedures Section 1 6 2 Check Unit Status 2 word n 11 bit 07 from a Programming Device con nected to the CPU Unit to see if the slave function is OFF disabled If it is disabled skip step 3 below and proceed to step 4 3 If slave communic
321. the slave from the master Input OUT area to the master from the slave Note Select one of the preceding areas using the software switches All are fixed at 1 word per node address The default setting is Fixed Allocation Area Setting 1 By allocated DM Set the areas the first words and slave allocation size for the OUT 1 Area words and IN 1 blocks total of 2 blocks using the Slave User Allocation Setup Table in the allocated DM Area words Allocated words The input and output areas can be the following sizes starting from any word in any of the following areas CIO Area WR Area HR Area DM Area or EM Area Output OUT area from this slave 100 words Input IN area to this slave 100 words Set the areas for the OUT 1 and IN 1 2 blocks the first words and the slave allocation sizes using the Configurator Allocated words The input and output areas can be the following sizes starting from any word in any of the following areas CIO Area WR Area HR Area DM Area or EM Area Output OUT area from this slave Input IN area to this slave 32 points 1 input word 1 output word 3 200 pts 100 input words 100 output words 1 word User set allocations By Configurator 100 words 100 words Max No of O points per DeviceNet Unit slave Fixed allocations User set By allocated DM allocations Area words By Configurator 4 800 pts 100 in
322. the slave is not conducting normal remote I O communications with the master Usage example When writing the ladder program for slave remote I O communications used a NO input conditions for this bit to control I O pro cessing with the master 77 Allocated CIO Area Words Section 3 2 3 2 10 Slave Status 2 Word n 15 Word Bit 15 Bit 08 Bit 07 Bit 00 n 15 Slave I O Allocation Status Master Node Address Master Node Addresses This indicates the node address of the remote master for slave communica tions Master Node 0000 to 003F Hex This information is valid when the Remote Address 0 to 63 I O Communications Flag word n 14 bit 14 or 15 is ON in Slave Status 1 Slave I O Allocation Status This indicates the I O allocation status of the slave Details Unit starting up Fixed Allocation Setting 1 Fixed Allocation Setting 2 Fixed Allocation Setting 3 User set allocations using allocated DM Area words Set from the Configurator Slave function disabled 3 2 11 Registered Slave Table Words n 16 to n 19 This table indicates the slaves that are registered in the master scan list The bits correspond to node addresses This table is updated when the Unit starts up and when a scan list is registered Biti5 Biti4 Biti3 Bitl2 Biti1 BitiO Bit09 Bit08 BitO7 Bito6 BitOS Bit04 Bit03 BitO2 BitO1 Bitoo n 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 n 17 31 3
323. those of other I O Units These Units belong to a group called Special I O Units One I O Unit Connecting Cable cable length 40 mm is included with each I O Unit One end connector is attached to the Communications Unit I O Unit Connecting Cables with a cable lengths of 0 1 0 3 0 4 0 6 and 1 m GCN1 010 030 040 060 100 are sold separately see below BEE Length For details on MULTIPLE I O TERMINAL Units refer to the DeviceNet Com poBus D MULTIPLE I O TERMINAL Operation Manual W348 DeviceNet Unit Features Section 1 2 1 1 5 DeviceNet Configurator Use version 2 of the DeviceNet Configurator for the CS1W DRM21 CJ1W DRM21 DeviceNet Unit Earlier versions of the DeviceNet Configurator do not support the CS1W DRM21 DeviceNet Unit Product Components Network connection Applicable name to computer computer DeviceNet WS02 CFDC1 E Installation disk Any of the following IBM PC AT or Windows 95 98 Configurator CD ROM Serial connection compatible Me NT4 0 or Ver 2 2000 e PCMCIA Card e ISA Board See the table below Note The following Boards and Cards can be used Components Applicable computer 3G8F5 DRM21 Dedicated ISA Board with IBM PC AT or Windows 95 98 or DeviceNet Configurator Ver 2 compatible NT4 0 3G8E2 DRM21 Dedicated PCMCIA Card with Windows 95 or 98 DeviceNet Configurator Ver 2 Note Use DeviceNet Configurator version 2 10 or later fo
324. tion 5 3 IN 2 area Not used Bit strobe Not used Bit strobe IN data Not used COS COS OUT data COS IN data Not used Cyclic Cyclic OUT data Cyclic IN data Not used Poll bit strobe Poll OUT data Poll IN data Bit strobe IN data Poll COS See note Poll COS OUT data Poll IN data COS IN data Poll cyclic See note Poll cyclic OUT data Poll IN data Cyclic IN data COS bit strobe COS OUT data COS IN data Bit strobe IN data Cyclic bit strobe Note 1 Cyclic OUT data Cyclic IN data Bit strobe IN data With poll COS connections the OUT data is the same for poll and COS Set the same OUT areas for poll and COS connections when specifying the areas with the Configurator With poll cyclic connections as well the OUT data is the same for poll and cyclic Set the same OUT areas for poll and cyclic when specifying the areas with the Configurator 2 Use Configurator Ver 2 10 or later for the CJ1W DRM21 131 SECTION 6 Message Communications This section describes message communications using FINS commands sent from the ladder program in the CPU Unit of the PC Gal OVERVICW araoa eee AKERS RD RE ee adele s E BOA seals 134 6 1 1 Outline of Message Communications 000 134 6 1 2 FINS Message Communications 0005 135 6 1 3 Explicit Message Communications 00 137
325. tion 5 3 Setting through the A maximum of three blocks can be allocated at any locations in I O memory Configuration for the output OUT area block 1 input IN area block 1 and input IN area block 2 Specified area in I O memory User set block order Master Bit 15 0 First word specified Slave output to OUT area 1 OUT area Bit 15 0 First word specified Slave input to IN area 1 IN area Bit 15 0 First word specified Slave input to IN area 2 IN area The block allocation order and block allocation areas can be set as required Refer to the DeviceNet Configurator Operation Manual W382 for details on the allocation procedure 5 3 3 Connection Types The type of connection can be specified if the Configurator is used for set tings The number of applicable allocation areas varies with the type of con nection used e A maximum of three areas OUT 1 IN 1 and IN 2 can be used when multiple connections are specified e Two allocation areas OUT 1 and IN 1 can be used if the automatic con nection setting or a single connection is specified 130 User set Allocations Connection Types and Allocated I O Areas The following table shows the relationship between various connection combi nations and the allocated areas that are applicable with those connections Specified connection type Poll OUT 1 area Poll OUT data IN 1 area Poll IN data Sec
326. tion mountable units Without Configurator Configurator CS Series CS1W DRM21 CPU or Expansion CPU Master and Slave DeviceNet Unit Rack Classified as CPU Bus Units CJ Series CJ1W DRM21 CPU Rack or Expansion Rack Classified as CPU Bus Units CVM1 CV Series CVM1 DRM21 V1 CPU or Expansion CPU Master only DeviceNet Master Rack Classified as CPU Unit Bus Units CS Series C200HW DRM21 V1 CPU Rack or Expansion DeviceNet Master I O Rack Classified as 200HX HG HE ca Unit Special I O Units C200HS 1 1 4 Types of Slave The following classifications are used for DeviceNet Slaves e General purpose Slaves Slave with I O functions for I O that uses an ordinary connector connected to a communications cable e Environment resistant Slaves Slave with I O functions for I O that uses a round waterproof connector connected to a communications cable e Special Slaves Slave with functions not related to I O e g message communications for O that uses an ordinary connector connected to a communications cable Overview of DeviceNet Section 1 1 General purpose Slaves Communications Cable Normal Square Connectors Name Remote I O Terminals with Transistors Appearance I O points 8 input points NPN Model number DRT1 ID08 8 input points PNP DRT1 ID08 1 16 input points NPN DRT1 ID16 16 input points PNP DRT1 ID16 1 Remarks
327. tions Error Flag for OUT2 IN2 will be ON Correction Check the following e Matching master and slave baud rates e Proper cable lengths trunk and branch lines e Broken or loose cables 21 N Error Log Functions Unit Errors Special Unit Error Section 9 2 e Installation of terminators at both ends of the trunk line e Excessive noise Error log Hex OFF Rea ti Orr o DeviceNet Unit Response Records the error in the error log Stops the Unit Correction Restart the CPU Unit Replace the DeviceNet Unit if the error recurs 9 2 Error Log Functions Errors detected by the DeviceNet Unit are stored in the error log along with the date and time of their occurrence The error log can be read cleared and monitored using FINS commands or a Configurator 9 2 1 Error Log Table Error Log Table Error Log Storage Area Note Reading and Clearing the Error Log Each time an error occurs one error record is recorded in the DeviceNet Unit s RAM error log table The table can record up to 64 records If another error occurs when the table is full the oldest record will be erased to make room for the new error record The error log table records the following information e Error code e Detail code e Time of occurrence The CPU Unit s time is used for the time stamp When an error is detected information on the error and the time stamp are stored in the Unit s internal RAM as an error log record Serious errors
328. tions error when used as a slave ON lt CJ1W DRM21 ON z Hold clear I O for communications error when used as a slave fo A g z Continue stop communications for communications error when used as a master a S _ Baud rate e The settings of the DIP switch pins are shown in the following table All pins are set to OFF at the factory Function Setting Baud rate See the next table Continue stop remote I O communica OFF Continue communications tions for communication errors when ON Stop communications used as a master Hold clear remote outputs for commu OFF Clear remote outputs nications error when used as a slave on Hold remote outputs Baud Rate Pins 1 and 2 are used to set the baud rate as shown in the following table Baud rate 125 kbps 250 kbps 500 kbps Not allowed 1 Always turn OFF the PC before changing the DIP switch settings 2 Set the same baud rate on all of the nodes Master and Slaves in the Net work Any slaves with baud rates different from the master s rate won t be able to participate in communications and may cause a communications error between nodes that have been set properly Installing the DeviceNet Unit Section 2 2 Communications Connectors Note Note Note Continue Stop Remote I O Communications When the DeviceNet Unit is used as a master pin 3 i
329. to 15 cannot be used for start bytes for slaves with more than 8 points e More than one master cannot share a slave e Slaves with 8 points Require the leftmost or rightmost byte does not require 1 word e Slaves with 16 points Require 1 word e Slave with over 16 points Require multiple words the last byte will be the rightmost byte with an odd number of bytes Comparison with Previous Models Section 1 4 Item Remote I O communica tions Master Max No of slaves con nected C200HW DRM21 V1 With no Configurator fixed allocations 50 nodes With no Configurator user set allocations 63 nodes CS1W DRM21 CJ1W DRM21 63 nodes for fixed or user set allocations Remote I O Slave Fixed alloca tions No DeviceNet words in CIO Area 32 points 1 input word 1 output word Select one of the following Input area to the Slave 1 ClO 3370 2 CIO 3570 3 ClO 3770 Output area from the Slave 1 ClO 3270 2 CIO 3470 3 CIO 3670 User set allo cations Set in the allocated DM Area words or the Configurator The following areas can be set CIO CIO 0000 to CIO 6143 WR W000 to W511 HR HROOO to HR511 DM D00000 to D32767 EM E00000 to E32767 Banks 0 to C sup ported Using the allocated DM Area words Can create OUT 1 and IN 1 for a total of 2 blocks Using the Configurator Can create OUT 1 OUT 2 IN 1 and IN 2 for a total of 4 blocks 100 words
330. to CIO 3563 CIO 3700 to CIO 3763 Fixed allocations area Output area CIO 0050 to CIO 0099 CIO 0350 to CIO 0399 Input area Fixed Allocations 4 3 3 Changing System Components Section 4 3 The scan list must be cleared in the following situations e Adding a slave e Removing a slave e Changing a node address Turn OFF the Scan List Clear Switch word n bit 01 to clear the scan list Remote I O communications will be performed with the scan list disabled using fixed allocations in the fixed allocations area that was used the last time the list was disabled Make sure that communications with all slaves are oper ating properly after the scan list is cleared and the system component is changed and then turn ON the Scan List Enable Switch word n bit 00 again to register all slaves currently online in the scan list Remote I O communica tions will continue during this time with the scan list enabled 4 3 4 Fixed Allocations Example This example shows the allocations that are used when Fixed Allocations 1 are used for the following slaves Node address Outputs Inputs Product 8 pt Transistor Input Terminal DRT1 ID08 8 pt Transistor Output Terminal DRT1 OD08 16 pt Transistor Input Terminal DRT1 ID16 16 pt Transistor Output Termi nal DRT1 OD16 8 pt Input and 8 pt Output Envi ronment resistant Terminal DRT1 MD16C CQM 1 0 Link Terminal CQM1 DRT21
331. to which a DeviceNet Unit is mounted and slaves Message communications are achieved by executing specific instructions SEND 192 RECV 193 and CMND 194 from the program in the CPU Unit to which the DeviceNet Unit is mounted Renee m Fixed allocations Remote I O master communications User set allocations DeviceNet functions m Fixed allocations 1 2 3 Remote I O slave communications User set allocations Explicit message communications Message communications L_ FINS message communications The following functions are supported with a CS CJ series DeviceNet Unit 1 Without the Configurator Software Tool a I O area words can be flexibly allocated for remote I O Master and Slave communications Three types of fixed allocations as well as user set allocations through allocated DM Area words are possible b More than one DeviceNet Unit can be mounted under a single PC c More than one DeviceNet Unit can be connected in a single network With the Configurator remote I O can be allocated in any order i e not necessarily in the other of node addresses Note The Configurator that is connected through a dedicated Board or Card uses one node in the DeviceNet network It does not use a node if it is connected by a serial line 2 ACS CJ series DeviceNet Unit can function as either a master or slave in remote I O communications Both can be used simultaneously 3
332. tput 500 words max x 2 blocks OUT area Input IN 500 words max x 2 blocks area 23 Section 1 3 Specifications Item Specifications Fixed allocations Remote I O master 24 Max No of Slaves con nected per DeviceNet Unit User set allocations By allo cated DM Area words By Config urator 63 nodes Max No of I O points per DeviceNet Unit Fixed allocations 2 048 pts 64 input words 64 output words User set allocations By allo cated DM Area words 16 000 pts 500 input words x 1 block 500 output words x 1 block By Config urator 32 000 pts 500 input words x 2 blocks 500 output words x 2 blocks Max No of I O per Slave controllable by a DeviceNet Unit Fixed allocations 2 048 pts 64 input words 64 output words User set allocations By allo cated DM Area words 3 200 pts 100 input words 100 output words By Config urator 3 200 pts 100 input words 100 output words Specifications Section 1 3 Remote I O slave Item Allocation method Fixed allo cations Specifications Select one of the following fixed allocation areas using the Slave Fixed Allocated Area Switches 1 2 and 3 in the software switches in the allocated CIO Area words Allocated words CIO Area 1 0 Size Fixed Alloca tion Area Area Area Setting Setting Setting 1 2 3 3370 3570 37
333. trunk line e Excessive noise Error 10g Hex mo oo o w o7 Likely Cause The master s node address is also set on another node 209 Troubleshooting with the DeviceNet Unit Indicators Section 9 1 Bus Off Detected Memory Access Errors Message Monitoring Timer List Logic Error 210 DeviceNet Unit Response Records the error in the error log e The Unit will go off line and communications will be disabled Error responses will be returned to all communications requests e The exchange of data with the CPU Unit will continue Flags Allocated for C200H DeviceNet Master Unit CIO n 24 Bit 14 Error Flag and bit 01 the Node Address Duplicated Bus Off Flag will be ON CIO Area Flags Allocated to DeviceNet Unit Bits 00 and 06 of n 10 the Unit Error Flag and Duplicated Node Address Flag will be ON Correction Check the node addresses set on other nodes in the network Correct the set tings to eliminate the duplication and restart the DeviceNet Units Error Tog Hex moo ooo fw 0340 Likely Cause A Bus Off condition was detected DeviceNet Unit Response Records the error in the error log e The Unit will go off line and communications will be disabled Error responses will be returned to all communications requests e The exchange of data with the CPU Unit will continue Flags Allocated for C200H DeviceNet Master Unit CIO n 24 Bit 14 Error Flag and bit 01 the Node Address Duplicated Bus Off Flag
334. ultiple 19 194 node address display 48 number of 96 precautions 96 remote I O communications 92 procedures 97 specifications 24 95 status 200 status areas 230 system startup time 195 user set allocations reference table 87 using master function 38 memory access errors 210 Memory Card 19 27 186 247 message communications See also communications message monitoring timer 140 message response time 197 mounting 52 objects 252 MULTIPLE I O TERMINAL Units 5 13 multi vendor environment 251 multi vendor network See also features N networks connecting for FINS communications 157 errors 208 installation procedure 36 inter network connections 18 multiple masters 194 multiple PCs on a single network 19 O objects 252 Connection Object 253 DeviceNet Object 253 Identity Object 252 Message Router Object 252 PC Object 258 See also PLC object services operation basic operation procedures 36 operating environment precautions Xxiii operating status Master Unit 200 overview 2 P PLC object services 166 precautions Xi applications xiv general xii handling 53 Master Units number of 96 operating environment Xxiii safety xii system configuration 51 previous models comparison 29 replacing ladder programs 233 programming examples 154 See also instructions See also ladder programs R refresh time 192 remote I O communications characteristics 190 See
335. unications Remote I O communications stop under the following user controlled condi tions Message communications can still be performed when the remote I O communications stop Stop Communications Remote I O communications stop when the Remote I O Communications With All Slaves Stop Switch word n bit 04 is turned ON Stop Communications Remote I O communications stop when the Disconnect Connect Switch for With a Specified Slave the desired slave words n 6 to n 9 is turned ON Units are disconnected from remote I O communication when the Disconnect Connect Switch is turned ON Note The communications cycle time is not shorter even though a slave has been disconnected from remote I O communications by turning ON the Disconnect Connect Switch Blank time in the communications cycle will only be increased 4 5 3 Restarting Remote I O Communications Remote I O communications restart under the following conditions Restart Communications Remote I O communications restart when the Remote I O Communications with All Slaves Start Switch word n bit 01 or 03 is turned ON Only communications with slaves stopped using the Disconnect Connect Switch will be restarted Restart Communications Remote I O communications restart when the Disconnect Connect Switch for with Specified Slave the desired slave words n 6 to n 9 is turned ON Restoring the unit will have been completed when the Disconnect Connect Switch turns OFF 4 6 Exampl
336. unications cannot be performed between networks 157 Sending Explicit Messages Section 6 4 Up to 3 levels of networks including DeviceNet are possible Controller Link Unit Controller Link Unit CS CJ series DeviceNet Unit CS CJ series CPU Unit CS CJ series DeviceNet Unit When connecting networks routing tables must be registered for the PC CPU Units on all networks When connecting two or more communication units including the DeviceNet Unit to a CS CJ series CPU Unit the DeviceNet Unit must be registered in the CS CJ series PC CPU Unit routing table for the local network table only Commands cannot be executed if the DeviceNet Unit is not registered 6 4 Sending Explicit Messages CS CJ series DeviceNet Units can send explicit messages FINS command headers are attached to explicit messages and sent Explicit messages can be sent to the following destinations e Masters or slaves made by other manufacturers e Other PCs with a CS CU series DeviceNet Unit e PCs Slaves with C200H I O Link Units See note Note Only reading and writing I O memory is possible for PCs with C200H I O Link Units Status reading writing is not possible Example CS CJ series DeviceNet Unit Other manufacturer master or slave or CS CJ series CPU Unit CS CJ series DeviceNet Unit Explicit messages can be sent FINS header C200HX HG HE or CS CJ series CPU Unit Slave Note Only I O memory read write possible 158
337. up table s First word of OUT block 1 k First word of IN block 1 Note 1 15 IN block 1 00 00 00 00 00 Not usable 00 01 01 Not usable 01 02 02 The numbers in the OUT 1 and IN 1 blocks represent node addresses 2 Bytes are allocated in order in the blocks in word units in the order of node addresses If the allocated size is 1 byte the rightmost byte is used but the leftmost byte cannot be used Slave User Allocations Setup Table The I O areas specified here for the slave OUT 1 area for slave IN 1 area are used if the slave function is enabled using the Slave User set Allocations Switch word n 1 bit 11 Word m 8 m 9 m 10 m 11 m 12 m 13 m 14 Bit 15 Bit 08 Bit 07 Bit 00 00 Hex fixed Slave OUT 1 area First word of the Slave OUT 1 area 00 Hex fixed OUT 1 area size bytes 00 Hex fixed Slave IN 1 area First word of the Slave IN 1 area 00 Hex fixed IN 1 area size bytes Setting results I O allocations for the slaves can be updated by setting this table and turning ON the Slave User set Allocations Switch word n 1 bit 11 The Unit restarts automatically and starts operating with the scan list enabled Note Make sure the CPU Unit is in PROGRAM mode and the Unit has stopped slave communications before you set these values 85 Allocated DM Area Words Section 3 3 Areas and Word Ranges Name Slave OUT 1 area Range See
338. upply error or transmission timeout DeviceNet Unit Response Remote I O communications as a master will stop Remote I O communica tions as a slave and message communications will continue Flags Allocated for C200H DeviceNet Master Unit CIO n 24 Bit 14 the Error Flag will be ON as well as bit 05 or 06 the Sending Error Flag or Communications Error Flag CIO Area Flags Allocated to DeviceNet Unit Bit 00 of n 10 Unit Error Flag will be ON together with one of the following combinations e Bit 02 of n 12 the Remote I O Communications Error Flag and bit 01 of n 10 the Master Function Error Flag ON e Bit 07 of n 10 the Network Power Error Flag ON e Bit 08 of n 10 the Send Timeout Flag ON Correction Perform error processing according to the cause e Remote I O communications error See error d9 e Network power supply error See error EO e Transmission timeout error See error E2 Correct the cause of the error and then restart remote I O communications by toggling bit 02 of n the Remote I O Communications Start Switch Structure Error VO Area Duplication Error log Hex ao iR ashing as Likely Cause The slave s I O areas overlap Occurred with the scan list disabled Errors will occur in the active slaves DeviceNet Unit Response Records the error in the error log The master will periodically attempt to reconnect with the slave with the struc ture error Flags Allocated for C200H Devi
339. urn ON the Scan List Enable Switch 102 Remote I O communications will start with the scan list disabled after a fixed allocations area has been selected Check to see if communication is pro ceeding normally with each slave and then turn ON the Scan List Enable Switch word n bit 00 to communicate with the scan list enabled Fixed Allocations Section 4 3 Fixed Allocations Area 1 OUT blocks are allocated to slaves from CIO 3200 to CIO 3263 and IN blocks are allocated to slaves from CIO 3300 to CIO 3363 OUT block Bit 15 0 CS Cu series DeviceNet CIO Area Bit CIO 3200 15 0 OUT block Bit_15 0 Bit 1 CIO 3300 Address 0 Address 1 Address 2 CIO 3300 CIO 3301 CIO 3302 IN block o to Address 60 Address 61 Address 62 Address 63 Output to Slaves to CIO 3263 to 4 Input from Slaves CIO 3363 Fixed Allocations Area 2 OUT blocks are allocated to slaves from CIO 3400 to CIO 3463 and IN blocks are allocated to slaves from CIO 3500 to CIO 3563 OUT block l l Bit 15 9 CS Cu series DeviceNet CIO Area CIO 3400 Address 0 CIO 3401 Address 1 CIO 3402 Address 2 to to gt Output to Slaves CIO 3460 CIO 3461 Address 61 CIO 3462 Address 62 CIO 3463 Address 63 IN block 15 o OUT block Address 1 Bit 15 0 Address 2 aie CIO 3500 CIO 3501 Address1 to IN block CIO 3502 ___ Address 2_ CIO 3563 to CIO 3560 Address 60 Bi
340. ut the NS indicator remains OFF refer to the tables in 9 1 Troubleshooting with the DeviceNet Unit In The NS indicator normally goes ON about 2 s dicators after the MS indicator Make sure that the master s unit number setting is correct Make sure that the unit number is not duplicated on another Special Unit Check the I O table with the I O Table Verification operation and cor rect it if necessary After correcting it perform the I O Table Create operation Restart the Unit Replace the Unit if it doesn t restart 222 Troubleshooting Section 9 3 Error The DeviceNet Unit s MS indicator is ON and green but the NS indicator continues to flash green The NS indicator normally goes ON 2 s after the MS indicator Probable cause If the DeviceNet Unit s 7 segment display is displaying an error code refer to the tables in 9 1 Troubleshooting with the DeviceNet Unit In dicators Restart the Unit Replace the Unit if it doesn t restart The DeviceNet Unit s MS and NS indicators are ON and green but the 7 segment display contin ues to flash the master s node address The node address normally stops flashing within 8 s after the NS lights 9 3 3 I O Link Problems Check that the DeviceNet Unit s baud rate matches the baud rates set on all of the slaves If they don t match set all of the baud rates to the same value Make sure that there are121 Q terminators connected at b
341. ves may not go online Switch the CPU Unit to PROGRAM mode Perform the following steps to allocate areas create scan lists and down load the settings to the nodes a Enable slave communications in CS1W DRM21 or CJ1W DRM21 properties using the Configurator b Create the device parameters to set slave communications c Save the data as a device parameter file Note If desired you can also go directly online and download the device parameter file to the DeviceNet Unit slave without saving the file d Read the device parameter file go online and download the file to the DeviceNet Unit slave Switch the CPU Unit to RUN mode Slave remote I O communications will start up Fixed Allocations Section 5 2 Note 1 Enable slave communications in CS1W DRM21 or CJ1W DRM21 proper ties if the Configurator is used 2 Use Configurator Ver 2 10 or later for the CJ1W DRM21 5 2 Fixed Allocations 5 2 1 Allocated Words Words in the CS CJ series DeviceNet CIO Area in the CPU Unit are allocated Words can be selected from one of three fixed allocation areas Use a Soft ware Switch to select the allocation area Each area is comprised of an OUT area that is used to write data to the mas ter IN area and an IN area that is used for inputs from the master OUT area in remote I O communications OUT area IN area Selection method master to slave slave to master Fixed allocation area 1 CIO 3370 CIO 3270 Turn ON the Slave Fixed All
342. viceNet Master Units CVM1 DRM21 V1 Explicit messages however can be received from these PCs The following table outlines which CPU Unit support for FINS message com munications CPU Unit sending message CS Series Mounted DeviceNet Unit DeviceNet Master Unit CS1W DRM21 FINS message CPU Unit in receiving message cS Series CJ Series cs Series C200HX HG HE CVM1 CV Series CJ Series CJ1W DRM21 Instructions to send receive data SEND RECV Instructions to execute any FINS command CS1W DRM21 Can receive CJ1W DRM21 C200HW DRM21 v1 Cannot receive C200HW DRM21 vi Cannot receive CVM1 DRM21 v1 Cannot receive CS Series C200HW DRM21 V1 Not supported Cannot receive Can receive Can receive Can receive C200HX HG HE C200HW DRM21 V1 Not supported Cannot receive Can receive Can receive Can receive CVM1 CV Series 136 CVM1 DRM21 V1 SEND RECV Cannot receive Can receive Can receive Can receive Overview Section 6 1 Sending FINS Message Communications CS1W DRM21 CS1W DRM21 i CJ1W DRM21 CJ1W DRM21 C200HW DRM21 V1 CUM DAME Mt CS CJ series CPU Unit l Command can be sent J DeviceNet eee T___ command cannot be sent CVM1 CV Command cannot be sent Wicssee cat cdnat sates sececcoss Gecone Ss woceesint
343. view 134 programming examples 154 specifications 138 structure 135 time 196 timing for reading responses 153 using 145 procedures prior to starting 38 remote I O 3 15 23 errors 118 222 example ladder programming 116 restarting 116 See also Master Units See also Slave Units specifications 123 starting 116 stopping 116 scan lists 99 software switches 9 status 9 time Slave 20 26 191 timing 189 Configurator See also DeviceNet Configurator connections 20 235 connection path 237 supported 22 26 using allocations 236 CPU Units errors 213 indicators 222 I O memory read write 167 status read write 166 CX Programmer 18 cycle time 190 communications 20 190 reference table 87 setup table 81 specifications 26 232 D DeviceNet Configurator 15 17 27 connecting an OMRON slave to another company s con figurator 251 connections 236 functions 33 35 making slave allocations 94 113 130 models 33 outline 33 saving files to Memory Card 188 249 263 264 specifications 34 dimensions 55 DM Area See also I O allocations dot indicators See also seven segment display E EC Directives xvi EEPROM data 26 186 247 errors 201 codes 219 display 48 communications 224 error flags 71 74 76 79 error log functions 218 error log table 218 master 202 memory access 210 message communications 139 140 network 208 remote I O communications 118 scan lists
344. were stopped by multiple transmissions has occurred When a Bus OFF occurs the Unit goes offline and all communications stop remote I O communications stop slave operation stop and message communications are disabled OFF Unit Indicates that the error has not occurred Once this error has occurred the bit will remain ON and will not return to OFF 06 Node ON Unit Indicates a duplicate node address check error when the Unit starts up Address The Unit goes offline and all communications stop Remote I O communi Duplicated cations stop slave operation stop and message communications are dis Flag abled OFF Unit Indicates that the error has not occurred Once this error has occurred the bit will remain ON and will not return to OFF 71 Allocated CIO Area Words Section 3 2 Bit Name Status Controlled Unit operation by Network Indicates that there is no power from the network power supply Power Error Note Remote I O communications stop if DIP switch pin 3 remote I O Flag communications stop continue setting for a communications error on the front panel is ON stop Indicates that the error has not occurred or turns OFF when the network power supply has restarted Send Time Indicates that a send timeout occurred due to one of the following factors out Flag e No slaves present e Mismatched baud rate settings Note Remote I O communications stop if DIP switch pin 3 remote I O communications stop conti
345. when connecting communica tions cables to the connectors These colors are given in the following table Color Signal Power line negative voltage V Communications line low CAN L Shield Communications line high CAN H Power line positive voltage V For details on communications specifications and wiring refer to DeviceNet CompoBus D Operation Manual W267 Before connecting communications cables turn OFF the PC power supply all slave power supplies and the communications power supply 2 2 Installing the DeviceNet Unit 2 2 1 System Configuration Precautions e I O words are allocated to CPU Bus Units according to the unit number setting on the switch located on the front panel of the Unit not according to Unit slot numbers Refer to 3 1 Overview of Word Allocations 51 Installing the DeviceNet Unit Section 2 2 e In the CS series up to 16 Units can be mounted to the CS1W BCLILI3 CPU Backplane or CS1W BILI_ 3 Expansion CPU Backplane e In the CJ series up to 16 Units can be mounted to the CPU Unit or Expansion Unit but no more than 10 Units on either 2 2 2 Mounting CS series Mount the DeviceNet Unit to the Backplane using the following procedure 1 2 3 1 Hook the claw on the bottom of the Unit onto the Backplane Backplane 2 Insert the Unit into Backplane connectors and securely tighten the screw at the bottom of the Unit Tighten t
346. will be ON CIO Area Flags Allocated to DeviceNet Unit Bits 00 and 05 of n 10 the Unit Error Flag and Bus Off Flag will be ON Correction Check the following e Matching master and slave baud rates e Proper cable lengths trunk and branch lines e Broken or loose cables e Installation of terminators at both ends of the trunk line e Excessive noise Error log Hex Red lashing O ona Likely Cause There is an error in the contents of the message monitoring timer list stored in non volatile memory Troubleshooting with the DeviceNet Unit Indicators Section 9 1 Slave Scan List Logic Error Master Scan List Logic Error DeviceNet Unit Response Records the error in the error log Operation will continue using the default message monitoring timer values Flags Allocated for C200H DeviceNet Master Unit CIO n 24 Bit 14 Error Flag and bit 03 the Structure Error Flag will be ON CIO Area Flags Allocated to DeviceNet Unit Bits 00 and 13 of n 10 the Unit Error Flag and Incorrect Message Monitoring Timer List Data Flag will be ON Correction Use the Configurator to register the message monitoring timer list again Error Tog Hex Redas O ona Likely Cause There is an error in the contents of the slave scan list stored in non volatile memory DeviceNet Unit Response Records the error in the error log e The slave remote I O communications will be stopped e Message processing and the exchange of data with the CPU
347. will periodically attempt to reconnect with the slave with the verifi cation error Flags Allocated for C200H DeviceNet Master Unit CIO n 24 Bit 14 Error Flag and bit 07 Comparison Error Flag will be ON CIO Area Flags Allocated to DeviceNet Unit Bit 00 of n 12 Comparison Error Flag and bits 00 and 01 of n 10 Unit Error Flag and Master Function Error Flag will be ON Correction Inspect the slave and then create the scan list again Error log Hex a p ommo oes Likely Cause A timeout occurred during remote I O communications using the master func tion The response from the slave timed out 6 consecutive times DeviceNet Unit Response Records the error in the error log The master will periodically attempt to reconnect with the slave with the error but remote I O communications will stop if the master is set to stop communi cations Flags Allocated for C200H DeviceNet Master Unit CIO n 24 Bit 14 Error Flag and bit 06 Communications Error Flag will be ON CIO Area Flags Allocated to DeviceNet Unit Bit 02 of n 12 Remote I O Communications Error Flag and bits 00 and 01 of n 10 Unit Error Flag and Master Function Error Flag will be ON Correction Check the following Troubleshooting with the DeviceNet Unit Indicators Section 9 1 e Matching master and slave baud rates e Proper cable lengths trunk and branch lines e Broken or loose cables e Installation of terminators at both ends of the trunk lin
348. with CS CJ series DeviceNet Unit mounted and the type of memory area Do not exceed the boundary of the data areas for the PC you are using Word Data Write Service Code 1F Hex Word Data Write writes data to any I O memory area in CPU Units with CS CJ series DeviceNet Units mounted The write word data is in word units The response block is returned from low to high bytes Important Points Command Block fefoje ft ff ec Er eE a a NEETI ETA Class ID Word data L Word data L Instance ID Service Code Address L Word data H Word data H Destination node address Address H Write data 200 bytes max 178 Receiving Explicit Messages Response Block Parameters Important Points Section 6 5 Service Code Destination node address No of bytes received Destination node address command The node address of the CS CJ series DeviceNet Unit to which the data is written specified in 1 byte 2 digit hexadecimal Service code command response IF Hex is specified for commands For responses the highest bit will turn ON and 9F Hex will be returned Class ID command Always 002F Hex Instance ID command The memory area to which the data is written is specified in hexadecimal as shown in the following table Instance ID Hex CPU Unit memory area Word range for write 0000 to 6143 DM D00000 to D32767 WR W000 to W511 HR H000 to H511 EM banks 0 to C En_00000 to En_32767 n 0 to
349. work com USed at the same time munications load This connection can be used to send data to the master or slave if the master or slave data changes For DeviceNet Units the transmission timing can be decided in the user program The following points apply for CS CJ series DeviceNet Units If the Master COS Send Switch is turned ON remote I O communica tions output data can be sent every time from the master using COS to the slaves that support COS If the Slave COS Send Switch is turned ON remote I O communications output data can be sent every time from the slave using COS to the master input data from the perspective of the master Even if the software switch is not turned ON the COS communications using regular cycles heartbeat timer can be performed simultaneously Note This CS CJ series DeviceNet Unit is the only OMRON slave that supports COS Communications timing is determined by regular cycles heartbeat timer Masters and slaves send output or input data in regular cycles Note 1 The C200HW DRM21 V1 and CVM1 DRM21 V1 DeviceNet Master Units use bit strobe connections with slaves with 8 or less input points and poll connections with other slaves The DeviceNet Unit au tomatically chooses the connection 2 There can be only one master on each network if COS or cyclic connections are used 235 DeviceNet Connections Appendix B Connections Using Allocations Without Con Fixed allocation
350. x No of simultaneous instructions One each for 8 ports ports 0 to 7 Refer to the section on CMND 490 in the CS CJU Series Programmable Controllers Instructions Reference Manual W340 for information on ports logical ports 138 Overview Section 6 1 Specification Response monitoring time Default setting 2s User setting 0 1 to 6553 5 s Retries 0 to 15 FINS mes Received from CS CJ Supported Data send receive or FINS commands sage com series CPU Unit with CS munications CJ series DeviceNet Unit commands Received from CVM1 CV Not supported series CPU Units with CVM1 CV series DeviceNet Master Unit Received from CS CUJ series and C200HX HG HE CPU Units with C200H series DeviceNet Master Unit Received from C200HX HG HE Units with C200H series DeviceNet Master Unit Internetwork connections Same net Supports internetwork communications between DeviceNet networks with work type CS CJ series DeviceNet Units mounted up to 3 levels Different net Supports internetwork communications between DeviceNet networks with work type CS CJ series DeviceNet Units mounted and other networks Controller Link SYSMAC LINK and Ethernet up to 3 levels Message monitor timer function explicit The response monitoring time for DeviceNet Units during explicit message message communications communications the interval the explicit connection is open can be set
351. yte From higher byte Bit 15 os o7 00 Bit 15 08 07 00 Sin sin _7a f 56 a4 T 12 From lower byte Bit 15 08 07 00 Sin From lower byte S n oO IN e _56 The response format data in service data that is in word 2 byte or double word 4 byte units such as word data and ERROR CLEAR codes is also specified from low to high bytes in response block format Example Sending Explicit Messages Using CMND 490 r DeviceNet Unit No 0 CMND 490 instruction ANES i Node address 05 Unit address FE Hex or 10 Hex Explicit message Slave node 11 Operation The vendor code is read from a Slave OMRON vendor code 002F Hex using the EXPLICIT MESSAGE SEND command 28 01 The command data is written starting at DM01000 and the response data is stored starting at D02000 When execution of CMND 490 has been completed the completion code is stored in D00006 and the instruction is executed again Command Details The following command is used CMND S D C S D01000 First command word at local node Settings Hex D01000 2801 Command Code D01001 OBOE Slave node address 11 Service code 0E D01002 0001 Class ID 0001 D01003 0001 Instance ID 0001 D01004 0100 Attribute ID 01 D D02000 First response word at local node C D00000 First control word 163 Sending Explicit Messages Response 164 Settings Hex D00000 0009 D00001 000A D00002 0001 D00003
Download Pdf Manuals
Related Search
Related Contents
取扱説明書 - ミマキエンジニアリング S7G2 MCU (High-performance MCU) 施工説明書(PDF:1378KB) Thermal Dynamics - matériel de découpage à l`arc 134 - Austromex Gas Devil 4WD - rc-car-online.de Samsung S2 Audio Player 2GB Black VL-W600 - Panasonic Rio CNHR Copyright © All rights reserved.
Failed to retrieve file