manualshive.com logo in svg
background image

Receiving a user defined CAN message

Section 4-6

47

transferred to the PLC.

Clearing the buffer

After a reset or after power-on, the buffer is only cleared when a new IOWR
message with control code #0004 is successfully executed. This means that
the  buffer  is  also  cleared  when  the  same  IOWR  message  (with  the  same
identifier values) is indicated to the Unit.

                                 Example

The following example shows how an arbitrary CAN message is read. In this
example, the Machine number is set to ‘1’.

Assume  that  there  is  a  32-bit  counter  unit  on  the  network  that  transmits  its
actual  count  value  every  time  the  count  changes.  On  average,  the  count
changes  every  2  ms.  The  identifier  of  the  message  is  280h.  Another  node
transmits  its  8-bit  input  value  every  4  ms  with  identifier  282h.  A  third  node
transmits its 16-bit clock value every 200 

µ

s with identifier 281h.

The scan time of the PLC is fixed to 8 ms. The C200HW-CORT21 only wants
to  receive  the  32-bit  counter  value  and  the  8-bit  input  value.  The  Unit  does
not want its receive buffer to be filled with the high frequent clock messages.
The received messages must be transferred to DM0600.

            14.00

IOWR (-)

   Indicate_Identifier

#0004

DM0500

#1004

  255.06

  12.00

EQ_FLAG

 ERROR

PLC memory address

Contents

DM0500

0280

DM0501

0282

DM0502

0001

DM0503

0600

DM0600

0006

DM0601

0280

DM0602

0004

DM0603

1004

DM0604

000F

DM0605

0000

DM0606

0000

DM0607

0280

DM0608

0004

DM0609

1003

DM0610

000F

DM0611

0000

DM0612

0000

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

Страница 1: ...C200HW CORT21 CAN Unit OPERATION MANUAL Cat No W904 E2 1...

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

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

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

Страница 5: ...C200HW CORT21 CAN Unit Operation Manual Produced July 2000...

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

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

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

Страница 9: ...4 2 2 Mounting the C200HW CORT21 27 2 3 Network cabling 27 3 PLC INTERFACE 29 3 1 Unit Settings 30 3 2 Control and Status area 32 3 3 LEDs 7 Segment Display 37 4 MESSAGE COMMUNICATION IOWR IORD 39 4 1...

Страница 10: ...viii...

Страница 11: ...ance of the Unit Section 2 describes the installation of the C200HW CORT21 Section 3 describes the interface with the user via the PLC system Section 4 describes the message communication Section 5 de...

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

Страница 13: ...is important for the safe and reliable application of the CAN Units You must read this section and understand the information contained before attempting to set up or operate a CAN Unit and PLC syste...

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

Страница 15: ...specified in the operation manuals Other power supplies and voltages may damage the Units Take measures to stabilise the power supply to conform to the rated supply if it is not stable Provide circuit...

Страница 16: ...common emission standard EN50081 2 When C200HW CORT21 products are built into equipment however the measure necessary to ensure that the standard is met will vary with the overall configuration of the...

Страница 17: ...the communication performance of the Unit 1 1 Overall Specifications 16 1 2 Dimensions 17 1 3 Performance 18 1 3 1 PLC cycle time 18 1 3 2 CAN Interface 18 1 3 3 Overall performance 20 1 3 3 1 Transm...

Страница 18: ...environmental standards EN50081 2 EN61131 2 Switch Settings Special I O Unit number 0 F by rotary switch Network baud rate 10 kbit s 1000 kbit s by 3 DIP switches User interface Indicators Unit statu...

Страница 19: ...1 2 Dimensions Dimensions The following figure shows the dimensions of the Unit Refer to the PLC s Installation Guide for the dimensions of the Unit when it is mounted to the Backplane of the host PLC...

Страница 20: ...the C200HW CORT21 depends on the number of user defined CAN messages that have been received since the last I O refresh Refer to section 4 6 for details about receiving user defined CAN messages Calc...

Страница 21: ...er second The CAN interface of the C200HW CORT21 is not able to transmit or receive this amount of messages per second Max transmit rate Max receive rate Max transmit message rate C200HW CORT21 2000 m...

Страница 22: ...200HW CORT21 the Unit immediately transfers the message to the CAN transmission interface The actual transmission of the message depends on the bus load The priority identifier value of the message de...

Страница 23: ...essage s need to be transferred to another PLC memory area After the IOWR instruction the Unit is ready to receive messages The C200HW CORT21 is able to store 15 messages and the buffer is transferred...

Страница 24: ...Performance Section 1 3 22...

Страница 25: ...e installation of the C200HW CORT21 2 1 Physical layout of the Unit 24 2 1 1 LEDs 24 2 1 2 7 segment display 24 2 1 3 Rotary Switch 25 2 1 4 Baud rate switches 25 2 1 5 BUS Connector 26 2 2 Mounting t...

Страница 26: ...200HW CORT21 V1 CAN module with CANopen functionality 2 1 1 LEDs Unit status The C200HW CORT21 has 2 indicator LEDs These LEDs give the status indication of the Unit in general Refer to section 3 3 fo...

Страница 27: ...t will not be possible to start up the network communication Note Always turn OFF the power to the PLC before changing the Unit number setting The Unit only reads the Unit number setting during the in...

Страница 28: ...is a 5 pin male open style connector The pins are numbered 1 to 5 starting from the top The label besides the connector indicates the colour of the individual wire in the cable that has to be connect...

Страница 29: ...be mounted in any slot in the backplane of a CPU Rack or Expansion I O Rack as long as its Unit number is not the same as the Unit number of another Special I O Unit within the system The maximum numb...

Страница 30: ...resistance m m 70 Specific line delay ns m 5 Value Terminator Parameter Minimum Nominal Maximum Resistance 118 120 130 Cable length The maximum length of the cable depends on the transmission speed se...

Страница 31: ...ser via the PLC system This includes Unit settings to configure the Unit plus the control and status areas 3 1 Unit Settings 30 3 1 1 Baud Rate Configuration 30 3 2 Control and Status area 32 3 2 1 Co...

Страница 32: ...nit settings area are only transferred to the Unit during initialisation i e at power on and at Special I O Unit restart The Unit is said to operate in Default Mode when the values of all Unit setting...

Страница 33: ...hin a bit time before the sample point m 19 0001 0007 TSEG2 value TSEG2 is the time segment within a bit time after the sample point 8 000 Baud rate BRP 1 x 3 TSEG1 TSEG2 kbit s Recommended TSEG2 SJW...

Страница 34: ...Reserved for CORT21 V1 PLC C200HW CORT21 n 2 Reserved for CORT21 V1 n 3 Status word n 4 Reserved for CORT21 V1 n 5 Reserved for CORT21 V1 C200HW CORT21 PLC n 6 Reserved for CORT21 V1 n 7 Reserved for...

Страница 35: ...recovery when the Unit has gone Bus Off due to an abnormal rate of errors on the bus IR n 3 10 is set Toggling this bit might not recover the Unit from Bus Off when the cause is not solved 0 No action...

Страница 36: ...CORT21 V1 Reserved for CORT21 V1 Reserved for CORT21 V1 Network power failure Bus Off Reserved for CORT21 V1 Reserved for CORT21 V1 Wrong CPU unit Application error New error s in error log 15 14 13 1...

Страница 37: ...00HW CORT21 detects an abnormal rate of errors on the bus the Unit will go bus off This means that all CAN communication is stopped The Unit will try to go online again after toggling IR n 03 Start Bu...

Страница 38: ...d due to IOWR IORD message communication If new errors have occurred since the last read action to the error log IR n 3 15 is set 0 No new error s in the error log since the last read action to the er...

Страница 39: ...of the Unit indicators LEDs LED Colour State Description OFF Fatal error or no power supply via backplane Blinking Initialising the hardware software RUN Green ON The Unit is initialised and no fatal...

Страница 40: ...LEDs 7 Segment Display Section 3 3 38...

Страница 41: ...on The PLC program instructions IOWR and IORD are used to transfer the messages to and from the Unit 4 1 Message communication 40 4 2 IOWR IORD 40 4 3 Error log 41 4 4 Reading the error log 43 4 5 Tra...

Страница 42: ...ic protocol The next sections will first describe the general use of the IOWR IORD instructions and the error log After that the other two message communication functions of the C200HW CORT21 are expl...

Страница 43: ...tion the PLC EQ flag is set when the syntax of the instruction the control code and the message length are valid Note The EQ flag does not indicate whether the contents of the message is correct or no...

Страница 44: ...or log 0363 Message length is out of range or does not relate to the specified data length in the IOWR message structure Transmitting a user defined CAN message 0364 Message length is out of range Rec...

Страница 45: ...ie within the range 1 26 If a length greater than 26 is specified the Unit will respond with a negative acknowledge and the error code 0360 is stored in the error log 4 5 Transmitting a user defined C...

Страница 46: ...nts DM0400 0000 DM0401 0002 DM0402 0201 4 6 Receiving a user defined CAN message Control code 0004 The C200HW CORT21 enables to receive an arbitrary CAN message with a combination of the IOWR instruct...

Страница 47: ...nge 010Ah to 0114h Set the minimum identifier to the first odd identifier in the range and the maximum identifier to the maximum value and the identifier mask to match the first bit word n 010B word n...

Страница 48: ...00h 07FFh word n 2 Data length range 0000 0008 word n 3 Data byte 2 Data byte 1 word n 4 Data byte 4 Data byte 3 word n 5 Data byte 6 Data byte 5 word n 6 Data byte 8 Data byte 7 word n 7 Identifier m...

Страница 49: ...the count changes every 2 ms The identifier of the message is 280h Another node transmits its 8 bit input value every 4 ms with identifier 282h A third node transmits its 16 bit clock value every 200...

Страница 50: ...80 DM0620 0004 DM0621 1002 DM0622 000F DM0623 0000 DM0624 0000 DM0625 0280 DM0626 0004 DM0627 1001 DM0628 000F DM0629 0000 DM0630 0000 DM0631 0282 DM0632 0001 DM0633 00AA DM0634 0000 DM0635 0000 DM063...

Страница 51: ...escribes the troubleshooting procedures and maintenance operations needed to keep the CAN network operating properly 5 1 Error Indicators 50 5 2 Troubleshooting 50 5 3 Maintenance 52 5 3 1 Cleaning 52...

Страница 52: ...rect it if necessary After correcting it perform the I O Table Create operation An I O Unit Over error occurred The MACHINE No rotary switch setting is incorrect Make sure that the setting does not ex...

Страница 53: ...by the control code EQ flag is not set The contents of the message is invalid Read the error log to find out the cause Check if the control code equals to 0003 or 0004 Check the message length Check t...

Страница 54: ...4 is set Restart the Unit If this does not help replace the Unit 7 segment display value is Blinking The 7 segment display indicates the cause Refer to section 3 3 for a list with error codes Try to s...

Страница 55: ...defective Unit might have an affect on the entire network communication so a defective Unit must be repaired or replaced quickly It is recommended to have spare Units available to restore network oper...

Страница 56: ...Maintenance Section 5 3 54...

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

Страница 58: ...56...

Страница 59: ...catalog number on the front cover of the manual Cat No W904 E2 1 Revision code The following table outlines the changes made to the manual during each revision Page numbers refer to the previous versi...

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

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

Страница 62: ...Authorized Distributor Cat No W904 E2 1 Note Specifications subject to change without notice Printed in the Netherlands...

Отзывы: