Manual
Table Of Contents
- Important User Information
- P. About This Document
- 1. Product Overview
- 2. CANopen Fieldbus Functionality
- 3. Transparent CAN Mode
- 4. Installation
- 5. Configuration
- 6. CANopen Module Specification
- 7. Supported Objects
- 8. Interface Functions
- A. Technical Specification
- B. Status LED Timing Diagrams
- C. CANopen Emergency Codes
- D. Error Codes (RET)
Interface Functions 46
Doc.Id. HMSI-216-117
CM CANopen Module for SIMATIC S7-1200
Doc.Rev. 1.00
8.1.4 Get Node & Network Status
Input Parameters
Output Parameters
Description
If a diagnostic message, related to the CANopen network status, is active, information on the cause of
the message can be read by using the RDREC function block to issue a request to record number 0099h.
You will receive the information in the parameter RECORD in the response.
Contents of Parameter RECORD
The parameter RECORD holds all diagnostic information, as described in the table below.
Name Data type Description
REQ Bool Starts the function. Has to be set to TRUE for one scan cycle.
ID HW_IO Logical address of the CANopen module.
INDEX Byte, Dint, Int, Sint, Uint, Usint, Word Data record number. Should be set to 0099h.
MLEN Byte, Usint, Usint Length in bytes of the data to be read. The value should cor-
respond to the length of the data area in RECORD.
RECORD Variant Destination area for the read data, see table below for con-
tents.
The user has to ensure that the data area is able to hold all
data as defined in the parameterization.
Name Data type Description
BUSY Bool The reading process is not yet complete, if this parameter is set to TRUE.
VALID Bool If set to TRUE, new data record was received and is valid.
ERROR Bool If TRUE, an error occurred during the reading process.
STATUS Dword Block status or error information, see “Message Error Codes” on page 60.
LEN Uint Length of the data that is read.
Offset Data type Description Definition
0 Uint8 Message error See “Message Error Codes” on page 60
1 Uint8 Error flags (module) Bit: Definition:
0: Bus Off
1: Configuration download error
2: Parameterization error
3: NVS error in module
4-7: (reserved)
2 Uint8 Error flags (network) Bit: Definition:
0: Network not ready
1: Node error control event
2-7: (reserved)
3 Uint8 CANopen Module
mode
Value: Definition:
00h Master
01h Slave
02h Transparent CAN










