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)
Doc.Id. HMSI-216-117
CM CANopen Module for SIMATIC S7-1200
Doc.Rev. 1.00
Chapter 8
8. Interface Functions
All interface functions and function blocks are available for download from www.hms-networks.com/
can-for-S7-1200.
8.1 CANopen Interface Functions
8.1.1 Get Process Data In
Input Parameters
Output Parameters
Description
To read the process data from the CANopen network to the S7-1200 CPU, use the RDREC function
block, and issue an request to record number 0090h. You will receive all data configured as process data
on the CANopen network. The position of the data depends on the CANopen network configuration.
Name Data type Description
REQ Bool Starts the function. Has to be set to TRUE for one scan cycle.
ID HW_IO Hardware address of the CANopen module. Can be read in
TIA Portal.
INDEX Byte, Dint, Int, Sint, Uint, Usint, Word Data record number. Should be set to 0090h.
MLEN Byte, Usint, Usint Maximum length in bytes of the data to be read.
RECORD Variant Destination area for the read data.
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.
a
a. For information, see the TIA Information System in TIA Portal.
LEN Uint Length of the data that is read.










