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 50
Doc.Id. HMSI-216-117
CM CANopen Module for SIMATIC S7-1200
Doc.Rev. 1.00
8.2.3 CAN_CTRL
Input Parameters
Output Parameters
Description
This block is used to control the state of the transparent CAN layer and to set its parameters.
•FCN = 1
Configures the CAN_RCV acceptance filter in the module i.e. what CAN-IDs will be accepted
when receiving data frames. The module will not listen to the CAN bus, if no CAN-ID in the
filter is enabled. The acceptance filter can be changed at any time.
The parameter LEN is set to n, where n is the total number of valid CAN-IDs transmitted in the
message (read from PARAM). One or more CAN-IDs can be transmitted in one message (ex
-
Name Data type Description
REQ Bool Starts the block. Has to be set to TRUE for at least one scan cycle to start the block.
ID Word Hardware address of the CM CANopen module.
FCN Int Function code:
1: Set acceptance filter in the module
2: Set number of frames to store before warning (BUFFER LIMIT REACHED)
3: Clear RX buffer. No data is used
4: (reserved)
5: Reset CAN controller (implies “Clear Bus Off”). No data is used,
LEN Uint Only valid when FCN = 1, otherwise ignored. Defines the size of the acceptance fil-
ter array that is sent in PARAM.
DB Dint Parameter data block location to be sent along with the function. Only valid when
FCN = 1 or 2:
FCN: Contents:
1 Acceptance filter array
2 Buffer limit
Name Data type Description
BUSY Bool If the function block needs more than one scan cycle to complete a command, this
output is set to TRUE. It stays TRUE until the function block is done, when it is
cleared to FALSE.
RET Uint Error code, see “Error Codes (RET)” on page 59. Valid once the BUSY signal turns
FALSE until the next time the function block is started, i.e. when REQ is set to
TRUE.










