How to Configure RevPi Gate for CANopen

To configure the gateway component, you have to perform the appropriate settings in the standard objects with the configuration software of your CANopen Master.

You can structure process data exchanged between the gateways application-specifically on the CANopen side using the process data object. For this purpose, CANopen uses mapping objects addressed via index and subindex

The gateway component supports the objects listed below. They comply with the specification DS302 (Version 4.02) of the CiA.

Extract from the specification DS302 (Version 4.02)

IndexObject NameSub-IndexDescriptionData TypeAccessComment
1000hDevice Type00hDevice TypeU32RO0000 0000h (No profile)
1001hError register00hError registerU8RO
1003hPre-defined error field00hNumber of errorsU8RW
01h… 08hError fieldU32RO
1005hCOB-ID Sync00hCOB-ID SyncU32RWDefault value is 0000 0080h
1006hCommunication cycle period00hDefines the sync intervallU32RWDefault value is 0000 0000h
1008hManufacturer device name00hManufacturer device nameVisible stringRO„KUNBUS-GW CANopen“
1009hManufacturer hardware version00hManufacturer hardware versionVisible stringRO1.0
100AhManufacturer software version00hManufacturer software versionVisible stringRO1.0
100ChGuard time00hGuard timeU16RW
100DhLife time factor00hLife time factorU8RW
1010hStore Parameters00hLargest sub index supportedU8RO01h
01hSave all parametersU32RWBaud rate and Node ID cannot be stored using this command.
1011hRestore parameters00hLargest sub index supportedU8RO01h
01hRestore all default parametersU32RW
1014hCOB ID EMCY00hCOB ID EMCYU32RODefault value is 80h + Node-ID
1015hInhibit Time EMCY00hInhibit Time EMCYU16RWDefault value is 0000h
1016hConsumer Heartbeat Time00hNumber of entriesU8RO01h
01hConsumer Heartbeat TimeU32RWNode ID + Heartbeat Time. Value must be a multiple of 1ms.

Default value is 0000h

1017hProducer Heartbeat Time00hProducer Heartbeat TimeU16RWDefault value is 0000h
1018hIdentity object00hNumber of entriesU8RO04h
01hVendor IDU32RO000002D5h
02hProduct CodeU32RO71
03hRevision NumberU32RO00010000h
04hSerial NumberU32RO
1400h

1407h

Receive PDO parameter00hLargest sub-index supportedU8RO02h
01hCOB ID used by PDOU32RW
02hTransmission typeU8RW
1600h

1607h

Receive PDO mapping00hNo. of mapped application objects in PDOU8RW
01hMapped object #1U32RW
02hMapped object #2U32RW
03hMapped object #3U32RW
04hMapped object #4U32RW
05hMapped object #5U32RW
06hMapped object #6U32RW
07hMapped object #7U32RW
08hMapped object #8U32RW
1800h

1807h

Transmit PDO

parameter

00hLargest sub-index supportedU8RO05h
01hCOB ID used by PDOU32RW
02hTransmission typeU8RW
03hInhibit timeU16RW
05hEvent Timer (ms)U16RW
1A00h

1A07h

Transmit PDO mapping00hNo. of mapped application objects in PDOU8RW
01hMapped object #1U32RW
02hMapped object #2U32RW
03hMapped object #3U32RW
04hMapped object #4U32RW
05hMapped object #5U32RW
06hMapped object #6U32RW
07hMapped object #7U32RW
08hMapped object #8U32RW

Fieldbus Output Data (Direction Master)

With these objects you can read process data that the gateway component sends to the Master. You have 3 possible access types:

  • Byte
  • Word
  • Doubleword

 

IndexObject NameSub-IndexDescriptionData TypeAccessRemark
2000hOutput Buffer00hNumber of entriesU8ROAccess type: Byte
01hOutput Buffer Byte #0U8RO
02hOutput Buffer Byte #1
80hOutput Buffer Byte #127
2001hOutput Buffer00hNumber of entriesU8RO
01hOutput Buffer Byte #128U8RO
02hOutput Buffer Byte #129
80hOutput Buffer Byte #255
2002hOutput Buffer00hNumber of entriesU8RO
01hOutput Buffer Byte #256U8RO
02hOutput Buffer Byte #257
80hOutput Buffer Byte #383
2003hOutput Buffer00hNumber of entriesU8RO
01hOutput Buffer Byte #384U8RO
02hOutput Buffer Byte #385
80hOutput Buffer Byte #511
2010hOutput Buffer00hNumber of entriesU8ROAccess type: Word
01hOutput Buffer Word #0U16RO
02hOutput Buffer Word #1
40hOutput Buffer Word #63
2011hOutput Buffer00hNumber of entriesU8RO
01hOutput Buffer Word #64U16RO
02hOutput Buffer Word #65
40hOutput Buffer Word #127
2012hOutput Buffer00hNumber of entriesU8ROAccess type: Word
01hOutput Buffer Word #128U16RO
02hOutput Buffer Word #129
40hOutput Buffer Word #191
2013hOutput Buffer00hNumber of entriesU8RO
01hOutput Buffer Word #192U16RO
02hOutput Buffer Word #193
40hOutput Buffer Word #255
2020hOutput Buffer00hNumber of entriesU8ROAccess type: Doubleword
01hOutput Buffer DWord #0U32RO
02hOutput Buffer DWord #1
20hOutput Buffer DWord #31
2021hOutput Buffer00hNumber of entriesU8RO
01hOutput Buffer DWord #32U32RO
02hOutput Buffer DWord #33
20hOutput Buffer DWord #63
2022hOutput Buffer00hNumber of entriesU8ROAccess type: Doubleword
01hOutput Buffer DWord #64U32RO
02hOutput Buffer DWord #65
20hOutput Buffer DWord #95
2023hOutput Buffer00hNumber of entriesU8RO
01hOutput Buffer DWord #96U32RO
02hOutput Buffer DWord #97
20hOutput Buffer DWord #127
2200hProperties of the partner gateway component00hNumber of entriesU8RO
01hInput sizeU16RO
02hOutput sizeU16RO
03hModule typeU16RO71
04hFieldbus stateU8ROs. Table Fieldbus Status

Fieldbus status

ValueMeaning
0x00Fieldbus not connected. Check all connections
0x01Fieldbus connected, no data communication. Check whether a node ID is set
0x02Gateway component configured, no data communication
0x03Cyclical data exchange

Fieldbus Input Data (from the Master)

With these objects you can read process data that the CANopen-Master sends to the gateway component. You have 3 possible access types:

  • Byte
  • Word
  • Doubleword

 

IndexObject NameSub-IndexDescriptionData TypeAccessComment
2100hInput Buffer00hNumber of entriesU8ROAccess type: Byte
01hInput Buffer Byte #0U8RO
02hInput Buffer Byte #1
80hInput Buffer Byte #127
2101hInput Buffer00hNumber of entriesU8RO
01hInput Buffer Byte #128U8RO
02hInput Buffer Byte #129
80hInput Buffer Byte #255
2102hInput Buffer00hNumber of entriesU8ROAccess type: Byte
01hInput Buffer Byte #256U8RO
02hInput Buffer Byte #257
80hInput Buffer Byte #383
2103hInput Buffer00hNumber of entriesU8RO
01hInput Buffer Byte #384U8RO
02hInput Buffer Byte #385
80hInput Buffer Byte #511
2110hInput Buffer00hNumber of entriesU8ROAccess type: Word
01hInput Buffer Word #0U16RO
02hInput Buffer Word #1
40hInput Buffer Word #63
2111hInput Buffer00hNumber of entriesU8RO
01hInput Buffer Word #64U16RO
02hInput Buffer Word #65
40hInput Buffer Word #127
2112hInput Buffer00hNumber of entriesU8ROAccess type: Word
01hInput Buffer Word #128U16RO
02hInput Buffer Word #129
40hInput Buffer Word #191
2113hInput Buffer00hNumber of entriesU8RO
01hInput Buffer Word #192U16RO
02hInput Buffer Word #193
40hInput Buffer Word #255
2120hInput Buffer00hNumber of entriesU8ROAccess type: Doubleword
01hInput Buffer DWord #0U32RO
02hInput Buffer DWord #1
20hInput Buffer DWord #31
2121hInput Buffer00hNumber of entriesU8RO
01hInput Buffer DWord #32U32RO
02hInput Buffer DWord #33
20hInput Buffer DWord #63
2122hInput Buffer00hNumber of entriesU8ROAccess type: Doubleword
01hInput Buffer DWord #64U32RO
02hInput Buffer DWord #65
20hInput Buffer DWord #95
2123hInput Buffer00hNumber of entriesU8RO
01hInput Buffer DWord #96U32RO
02hInput Buffer DWord #97
20hInput Buffer DWord #127