background image

95

A.1. General guidelines on input data processing

The C200HW-PRM21 must be activated by setting the RUN bit (100.00) ON. It is recommended to always set
this bit ON whenever the PLC program runs. If the PLC is set to PROGRAM mode, or the program stops due
to a severe failure (FALS), this bit will turn OFF. If the unit detects this, it will Hold or Clear all slave output data,
depending on the setting of DM 1017 (default = Clear, i.e. remote outputs are turned OFF like local outputs).

Bit 102.00 indicates if the Master Unit transferred
input data from its buffer to the mapped input area in
the PLC memory. In case the PLC cycle time is
shorter than the bus cycle time this may not always
be the case. In case no new data is available,
processing of slave data may be skipped. If 102.00 is
OFF, the ladder program between the JMP
instruction and the corresponding JME instruction
will be skipped.

Before processing input data from a
PROFIBUS slave, it is recom-
mended to verify the corresponding
‘slave active’ bit. If the slave is not
exchanging data with the master,
the data in the allocated input area
may be invalid, and should not be
processed.

In this case, 200.02 is the slave
active bit of the slave with address
02, whose inputs are mapped to
IR350, and outputs to IR050.

This JME instruction signifies the end of the
PROFIBUS slave input data processing. The program
will continue here following the JMP command if no
new input data was available (if 102.00 was OFF).

If a slave active bit turns OFF during operation, this
signifies a communication breakdown or slave failure.

In this case, an alarm is triggered. Depending on the
severity of the failure, further emergency processing
may be added by the user.

Содержание C200HW-PRM21

Страница 1: ...C200HW PRM21 PROFIBUS DP Master Unit OPERATION MANUAL Cat No W349 E2 2...

Страница 2: ......

Страница 3: ......

Страница 4: ......

Страница 5: ...C200HW PRM21 PROFIBUS DP Master Unit Operation Manual Produced May 2000...

Страница 6: ...iv...

Страница 7: ...Wd in documentation in this sense The abbreviation PLC means Programmable Logic Controller and is not used as an abbreviation for anything else Visual Aids The following headings appear in the left c...

Страница 8: ...vi...

Страница 9: ...1 Physical layout of the unit 10 2 2 Mounting the C200HW PRM21 13 2 3 Setting up a network 14 3 SPECIFICATIONS AND PERFORMANCE 17 3 1 Overall Specifications 18 3 2 Performance 20 4 CONFIGURATOR 29 4...

Страница 10: ...viii Appendices 93 Appendix A Tips and sample programs 93 Appendix B GSD file for C200HW PRM21 101 Appendix C CS1 PLC series compatibility 103 Index 105 Revision History 107...

Страница 11: ...ion 3 describes the overall specifications and the communication performance of the Unit Section 4 describes the software for configuring the PROFIBUS DP network Section 5 describes the interface with...

Страница 12: ...x...

Страница 13: ...rtant for the safe and reliable application of the PROFIBUS DP Master Units You must read this section and understand the information contained before attempting to set up or operate a PROFIBUS DP Mas...

Страница 14: ...on for installing and operating OMRON PROFIBUS DP Master Units Be sure to read this manual before operation and keep this manual close at hand for reference during operation It is extremely important...

Страница 15: ...d these precautions Use the Units only with the power supplies and voltages specified in the operation manuals Other power supplies and voltages may damage the Units Take measures to stabilise the pow...

Страница 16: ...Directives PROFIBUS DP Master Units that meet EC directives also meet the common emission standard EN50081 2 When PROFIBUS DP Master Units are built into equipment however the measures necessary to en...

Страница 17: ...Introduction 2 1 2 Protocol architecture 2 1 3 Device types 4 1 4 PROFIBUS DP characteristics 4 1 4 1 Bus Access Protocol 4 1 4 2 Data throughput 5 1 4 3 Diagnostics functions 6 1 4 4 Protection mecha...

Страница 18: ...technology according the international standard IEC 1158 2 PROFIBUS FMS FMS stands for Fieldbus Message Specification This version is the general purpose solution for communication tasks at a higher...

Страница 19: ...tion of the twisted pair cable does not require expert knowledge The bus structure permits addition and removal of stations or step by step commissioning of the system without influencing the other st...

Страница 20: ...sages or send messages to the master when requested to do so Slaves are also called passive stations The C200HW PRM21 is a DPM1 device 1 4 PROFIBUS DP characteristics 1 4 1 Bus Access Protocol Layer 2...

Страница 21: ...n to logical peer to peer data transmission PROFIBUS DP provides multi peer communication broadcast and multicast Broadcast communication an active station sends an unacknowledged message to all other...

Страница 22: ...at the DP slaves The monitoring interval is specified during the configuration Protection mechanism at the master The DPM1 monitors data transmission of the slaves with the Data_Control_Timer A separ...

Страница 23: ...e configuration and perform data exchange with its associated DP slaves The data exchange comprises reading the inputs of the DP slaves and writing zero s to the outputs of the DP slaves Operate DPM1...

Страница 24: ...er set maximum number of entries in the list of active stations or the maximum number of slaves the master can handle DP slave related specifications This section contains all specification related to...

Страница 25: ...2 1 Physical layout of the unit 10 2 1 1 LEDs 10 2 1 2 Rotary Switch 10 2 1 3 BUS Connector 11 2 1 4 Configurator Connector 12 2 1 5 Termination Switch 13 2 2 Mounting the C200HW PRM21 13 2 3 Setting...

Страница 26: ...he left side give a status indication of the unit in general The four LEDs on the right side are related to the status of the PROFIBUS DP network Refer to section 5 4 for a detailed functional descrip...

Страница 27: ...tor is a 9 pin female sub D connector as recommended by the PROFIBUS standard EN 50170 The signals DGND and VP are used internally to power the bus terminator see section 2 1 5 The signal RTS TTL sign...

Страница 28: ...use of the same serial communication cable for both the CPU and the C200HW PRM21 The wiring of the RS 232C cable is shown in the picture below Pin No Signal Description 1 FG Frame Ground shield 2 SD...

Страница 29: ...PROFIBUS DP Master Unit C200HW PRM21 can be mounted to the CPU Rack or Expansion I O Rack of any CS1 C200HX HG HE or HS PLC Refer to the PLC s Installation Guide for details on mounting Units There ar...

Страница 30: ...pecified in the table below are based on line type A Repeaters The communication distance can be increased by the use of repeaters It is not recommended to use more than 3 repeaters in series A repeat...

Страница 31: ...If this is impossible use pin 1 If the Unit is installed within a control cabinet the cable shield of the bus cable should be electrically connected to a grounding rail as close as possible to the cab...

Страница 32: ...m The configurator provides the master with information about The slaves that are connected to the master The assignment of slaves to groups for broadcast multicast messages The mapping of the slaves...

Страница 33: ...verall specifications and the communication performance of the Unit 3 1 Overall Specifications 18 3 2 Performance 20 3 2 1 Fieldbus cycle time 20 3 2 2 PLC cycle time 24 3 2 3 I O response time in asy...

Страница 34: ...f DM settings 18 words of unit setup information No of slave status words 16 words of status diagnostic bits location is user definable Remote I O communi cations Max No of Slaves per Master Unit 124...

Страница 35: ...ns Section 3 1 19 Dimensions The following diagram shows the dimensions of the Master Unit Refer to the PLC s Installation Guide for the dimensions of the Unit when it is mounted to the Backplane All...

Страница 36: ...s cycle is approximately tBC ns nr x tMC nm x tGAP_REQ tTC where ns number of slave stations nr number of message retry cycles tMC message cycle time nm number of master stations tGAP_REQ live list ch...

Страница 37: ...ata bytes n2 number of reply data bytes n n1 n2 The formula is based upon the following assumptions The action frame and response frame have a variable format The transmission delay times are negligib...

Страница 38: ...e station delay time of the receiver and the synchronisation time A general formula for the token cycle time tTC 3 x 11 0 37 tBIT 70 tBIT The formula is based upon the following assumptions The transm...

Страница 39: ...us cycle time vs number of masters 0 0 5 0 10 0 15 0 20 0 25 0 30 0 35 0 40 0 0 4 8 12 16 20 24 28 32 Masters Bus cycle time ms 500 1500 3000 12000 Baud rate kbit s This figure is resembles the first...

Страница 40: ...f mapped I O words na 1 Using the default mapping mode the I O refresh time is C200HS 6 7 ms 2 areas 32 words out 32 words in C200HE C200HG C200HX CS1 series 3 6 ms 2 areas 50 words out 50 words in Re...

Страница 41: ...h time tPE Program Execution time Conditions The minimum response time can be achieved under the following conditions 1 No other master is connected to the network More masters will increase the field...

Страница 42: ...ccur under the following conditions 1 The slave in question is polled by the respective master at the beginning of the poll cycle 2 The Input data is available just after the master polled the respect...

Страница 43: ...gram Execution time The minimum response time can be achieved under the following conditions 1 No other master is connected to the network More masters will increase the fieldbus cycle time due to the...

Страница 44: ...h time tPE The Program Execution time The maximum response time can occur under the following conditions 1 The slave in question is polled by the respective master at the beginning of the poll cycle 2...

Страница 45: ...Setup 31 4 2 1 Installation 31 4 2 2 Uninstall 31 4 3 Operation 32 4 3 1 PROFIBUS DP configuration 33 4 3 2 Device database 33 4 3 3 Bus configuration 34 4 3 4 Device configuration 36 4 3 5 Group mem...

Страница 46: ...a can be prepared offline A serial communication link with the C200HW PRM21 is only necessary to download the configuration file to the Unit and for debugging purposes After the initial configuration...

Страница 47: ...configurator for Master devices of several manufacturers it is necessary to make the correct choices during installation to provide the correct settings for the C200HW PRM21 The license code is will...

Страница 48: ...dress or by memory allocation Insert Add Masters and Slaves to the configuration Online Download the configuration to the Unit Enter the online debug mode Monitor the status of the network Settings Se...

Страница 49: ...FIBUS DP network The GSD file for the C200HW PRM21 is named OC_1656 GSD and is provided with the configurator software package see also Appendix B For each slave that needs to be configured a specific...

Страница 50: ...ist Selected Masters allows you to set its bus address before clicking OK Multiple Masters It is possible to add multiple masters to a PROFIBUS DP configuration However each slave can only exchange da...

Страница 51: ...onfiguration window If a unit is already on the selected row a new row will be inserted above it The method of insertion is the same as for master units Multiple slaves can be inserted at a time Addre...

Страница 52: ...f entry Any automatically assigned address can be changed manually in the Slave Configuration panel Slave Configuration To configure a slave select Settings Slave Configuration or double click on its...

Страница 53: ...ly large area of the Unit s buffers When a slave s I O data is found to be overlapping with another slave an error message will be generated when attempting to download It is allowed to create gaps in...

Страница 54: ...on for parameter adjustment the buttons Common and or Module will be accessible Common provides access to the parameters which control the slave as a whole i e which are not specific for a module Modu...

Страница 55: ...odified for easier identification This has no effect on the operation of the unit The Freeze and Sync check boxes can be used to prevent assignment of slaves which do not support these functions Unche...

Страница 56: ...ot influence the automatic addressing function Address table The address table shows the start address and data length of each slave or slave module in the Master s input and output buffers The data l...

Страница 57: ...nd which slave s data is available at a given buffer location Sorted by data address The allocation of each Byte of each module can be checked by clicking the button Address Overview By double clickin...

Страница 58: ...configurations 80 slaves or when using a large number of repeaters or signal converters For manual adjustment of bus parameters select Optimize by user and click Edit It is highly recommended to acces...

Страница 59: ...e bus The master will periodically check if new active stations have been added between address 0 and the Highest Station Address see below If stations are detected GAP is updated The factor defines t...

Страница 60: ...allowed The first situation is when on startup the Unit has detected that a corrupted database is present in its non volatile memory In this case the RUN LED is flashing and the DP ERR LED is ON As s...

Страница 61: ...download is aborted An error message is displayed to indicate the first allocation problem that was encountered e g Use the address table viewer to locate the problem and resolve the conflict by modif...

Страница 62: ...unction can be started via the menu command Online Start Debug Mode Functions The Debugger provides the following functions Display of master unit status Display of PROFIBUS DP network state Display o...

Страница 63: ...t shown below and clicking Display Please note that not all items from the Task State list are supported by the C200HW PRM21 Invalid data may be displayed in some of the views The Global Task State wi...

Страница 64: ...e g Slave 4 indicates that the slave is not assigned to the selected master unit The status of this slave cannot be monitored A cross through the slave icon e g Slave 3 indicates that the slave was d...

Страница 65: ...on the information provided in the device s GSD file SyCon translates the diagnostic message as received from the slave in hexadecimal format bottom window into the texts as specified in the GSD file...

Страница 66: ...Debug mode Section 4 4 50...

Страница 67: ...gs to configure the Unit and the control status area 5 1 Unit Settings 52 5 1 1 I O Data Mapping 52 5 1 2 Slave Status Area Mapping 57 5 1 3 Data Exchange Method 57 5 1 4 Fatal PLC error handling 58 5...

Страница 68: ...wo output areas may be assigned Output data is transferred via the bus on the Backplane I O Bus to the output buffer of the Unit At certain time intervals this data is transmitted to the slaves over P...

Страница 69: ...mapping exceeds these values the mapping is ignored no data will be exchanged and a fatal error is indicated in IR n 2 see section 5 3 and the ERR LED is turned ON The maximum amount of data mapped p...

Страница 70: ...ing m Number of output data areas 0000 Default mapping C200HS PLC addresses IR050 IR081 are mapped to Unit output buffer bytes 000 063 C200HE C200HG C200HX PLC addresses IR050 IR099 are mapped to Unit...

Страница 71: ...Input area 2 start address in the CPU m 13 see m 10 Input area 2 size 1 Setting errors are indicated in IR n 2 see section 5 3 and the ERR LED will be flashing to indicate a non fatal error 2 If the s...

Страница 72: ...Transfer 100 words of input data 1011 any No 2 nd input area 1012 any No 2 nd input area 1013 any No 2 nd input area The first output area is correctly defined all values are in range The second outp...

Страница 73: ...methods are 1 Asynchronous the fieldbus cycles are triggered independently of the PLC cycle and therefore the fieldbus cycles run asynchronous with the PLC cycle This method provides optimal I O resp...

Страница 74: ...word Value Meaning m 17 Fatal PLC error handling asynchronous data exchange mode 0000 CLEAR outputs other HOLD outputs Note This selection is ONLY valid when the Unit operates in the asynchronous dat...

Страница 75: ...g the corresponding bit in the control word IR n The Unit will interpret this control word and place the corresponding command in the output mailbox Responses to these common control commands are auto...

Страница 76: ...ree words are status words and are read from the Unit The mapping of the slave status words that are read from the Unit is defined by the Unit settings see section 5 1 2 Note During a configuration do...

Страница 77: ...nge mode 1 Unit in normal operation exchange of I O data with PLC and processing of mailbox commands are enabled The purpose of this bit is to allow detection of a fatal PLC error A fatal PLC error wi...

Страница 78: ...nput mailbox clear 0 No specific action 1 Each I O refresh one unprocessed response if available is removed from the input mailbox IR n 03 06 Not used by C200HW PRM21 IR n 07 Issue control command 0 N...

Страница 79: ...tation address area hexadecimal When the Station address value is set to 7Fh all slaves assigned to the group s are selected Entering the value 00h in the Group select area of IR n 1 selects all group...

Страница 80: ...command work in a similar way They are meant for synchronising the input data After activating the function by sending a Freeze command the input data is not updated until another Freeze command is s...

Страница 81: ...ster branched into Auto_clear mode because of a remote node error The master will only branch into Auto_clear mode when this has been enabled in the configuration see 4 3 7 Bus parameters In Auto_clea...

Страница 82: ...1 There is an error in the output area mapping The mapping contains an incorrect value for either the start address in the output buffer in the Master the start address of the output area s in the PLC...

Страница 83: ...sponse message to a command message issued with IOWR 1 The input mailbox contains a response message to a command message issued with IOWR The PLC program should read this message from the input mailb...

Страница 84: ...er is not into the logical token ring Check the node address of the master and the highest station address of other master systems Check if the cables are connected properly FFh 36h 38h D4h Error in c...

Страница 85: ...transfer by IOWR IORD The diagnostic bit is reset after the request but if the cause for diagnostics is persistent the diagnostic bit will remain ON Note The contents of these status words are cleare...

Страница 86: ...cribes the sequence in which the LEDs are turned ON or OFF In some states additional information is indicated by the status word IR n 2 and IR n 3 The flowchart and the table refer to this status word...

Страница 87: ...master does get at least one positive reply back from one of the slaves in the network This does not automatically mean that I O data is being exchanged NW ST Green OFF Network state is Offline or Sto...

Страница 88: ...ured correctly DP ERR LED Flashing DP ERR LED Off Configuration is being downloaded READY LED Flashing COMM LED Off NW ST LED Off DP ERR LED Off READY LED On Wrong configuration data present DP ERR LE...

Страница 89: ...scribes the message communication The PLC program instructions IOWR and IORD are used to transfer the messages to and from the Unit 6 1 Message communication 74 6 2 IOWR 74 6 3 IORD 76 6 4 Messages 77...

Страница 90: ...t contain any valuable information Responses to other commands sent with the IOWR instruction have to be read with an IORD instruction to prevent filling up of the Input mailbox The transfer of messag...

Страница 91: ...lag is set the message was transferred successfully to the Output mailbox If this flag is not set either the Output mailbox was full or the RUN bit IR n 00 was not set or the DP communication was disa...

Страница 92: ...e the response from the Input mailbox This will prevent the Input mailbox from filling up An IORD instruction should not be executed in the PLC cycle after an Input mailbox clear command is issued As...

Страница 93: ...e Input mailbox have a fixed format The command and the response are according the following format Type Size words Description Message header 4 Defines the sender receiver command type and the total...

Страница 94: ...3 1 The settings in the Control command byte define which control command is to be sent see table below Command priority No response message When issued simultaneously Unsync has priority over Sync an...

Страница 95: ...Only request diagnostics of a station of which the diagnostics bit is set Only then the data in the response message is valid The data is most up to date just after the bit has been set Response messa...

Страница 96: ...r when the slave is noted as not being existent The lower byte of word n 6 contains the exact length in bytes of the message starting from word n 8 This represents the actual diagnostic data received...

Страница 97: ...slave was parameterised by a DP master other than the DP master which currently has access to the DP slave Station_status_2 Bit Meaning 0 1 DP Slave must be reparameterised 1 1 A diagnostic message is...

Страница 98: ...Messages Section 6 4 82...

Страница 99: ...troubleshooting procedures and maintenance operations needed to keep the PROFIBUS DP network operating properly 7 1 Error Indicators 84 7 2 Troubleshooting 84 7 3 Maintenance 90 7 3 1 Cleaning 90 7 3...

Страница 100: ...I O table verification operation and correct it if necessary After correcting it perform the I O Table Create operation An I O Unit Over error occurred The Master s Unit number setting is incorrect Ma...

Страница 101: ...Replace the Master Unit ERR LED is ON A fatal error is detected The cause is reported in IR n 2 06 IR n 2 08 Try to solve the cause and or restart the Unit If this does not help replace the Master Un...

Страница 102: ...t too long The network has not been terminated correctly Terminate the network at the appropriate places see section 2 3 1 Configuration is not correct Check IR n 3 to find out where what the possible...

Страница 103: ...COMM LED is ON The I O data mapping contains errors that caused that certain or no data areas to be mapped at all The ERR LED is Flashing Check the Unit settings IR n 2 09 and IR n 2 10 of the status...

Страница 104: ...it is faulty Replace the Master Unit Outputs do not change anymore Run bit IR n 00 is OFF This can be due to a fatal PLC error or due to a mode change to from PROGRAM mode with DM m 17 1 hold mode Che...

Страница 105: ...syntax errors Check the IORD instruction Are the correct Unit number and message length specified The Master Unit is faulty Replace the Master Unit Command was not successfully executed though IR n 2...

Страница 106: ...dition In general inspect the system once every 6 to 12 months but inspect more frequently if the system is used with high temperature or humidity or under dirty dusty conditions Inspection Equipment...

Страница 107: ...g is the same as the previous Master Unit During replacement of the Master Unit the network is not operational Observe the following precautions when replacing a Unit After replacement make sure that...

Страница 108: ...Maintenance Section 7 3 92...

Страница 109: ...C200HW PRM21 is set to 0 All unit settings are at the default value 0000 Slaves are mapped into the unit s I O buffers by auto addressing start at offset 0 Therefore Unit settings area is DM1000 1017...

Страница 110: ...94...

Страница 111: ...data may be skipped If 102 00 is OFF the ladder program between the JMP instruction and the corresponding JME instruction will be skipped Before processing input data from a PROFIBUS slave it is recom...

Страница 112: ...96...

Страница 113: ...most extreme cases i e at very high baud rates with very few slaves The method is based on automatic variation of the PLC cycle time to determine when input data is still refreshed each PLC scan Dete...

Страница 114: ...has been received during I O refresh 102 00 OFF the previous PROFIBUS cycle took longer than the PLC cycle The PLC scan time is increased by 0 2 ms It is essential that rate of increase is larger tha...

Страница 115: ...PLC cycle time By subtracting these two figures calculate the time required for the PLC program plus the overhead for servicing additional units and peripherals Only if the PROFIBUS DP cycle is severa...

Страница 116: ...100...

Страница 117: ...haviour of the PROFIBUS DP system PROFIBUS_DP GSD_Revision 1 Vendor_Name OMRON Corporation Model_Name C200HW PRM21 Revision V 1 1 Ident_Number 0x1656 Protocol_Ident 0 PROFIBUS DP Station_Type 1 DP mas...

Страница 118: ...ut 1 10 ms Time of master to get ready for reply after a sending a request unit bit times Trdy_9 6 11 Trdy_19 2 11 Trdy_93 75 11 Trdy_187 5 11 Trdy_500 11 Trdy_1 5M 11 Trdy_3M 11 Trdy_6M 11 Trdy_12M 1...

Страница 119: ...esses in the CS1 PLC series Function instead of C200H addresses CS1 will use addresses MACH No 0 to 9 IR100 IR199 Control Status area MACH No A to F IR400 IR459 CIO2000 CIO2159 Unit settings DM1000 DM...

Страница 120: ...104...

Страница 121: ...81 Extended 49 80 Dimensions 19 DM setting error See Status Bits DM Settings 18 52 58 Download 16 44 71 91 DP ERR See Indicators E EMC See Installation EN 50170 See PROFIBUS ERR See Indicators Error...

Страница 122: ...ailbox See Status Bits Response time 25 28 Run See Control Bits RUN See Indicators S Slave Active See Flags Slave Diagnostic See Flags Specifications Bus cable 14 Configurator 29 Master Unit 18 Statio...

Страница 123: ...outlines the changes made to the manual during each revision Page numbers refer to the previous version Revision code Date Revised content E1 1 September 1998 Original production E2 2 May 2000 Added d...

Страница 124: ......

Страница 125: ...Regional Headquarters OMRON EUROPE B V Wegalaan 67 69 NL 2132 JD Hoofddorp The Netherlands Tel 31 2356 81 300 Fax 31 2356 81 388...

Страница 126: ...Authorised Distributor Cat No W349 E2 2 Note Specifications subject to change without notice Printed in the Netherlands...

Отзывы: