Skip to main content
Version: Next

CAN open


Description

The adapter allows to connect devices supporting CAN open.


Configuration

The following configuration options are available when creating an adapter:

PLC Address

This field requires the PLC address in form of the IP without the prefixed protocol (e.g., 192.168.34.56).

Polling Interval

The polling interval requires a number in milliseconds, which represents the interval in which the adapter will poll the PLC for new data. For instance, a polling interval of 1000 milliseconds will configure the adapter to send a request to the PLC every second.

Supported Transports

The following transports are supported by this adapter:

  • socketcan

Transport Metadata

Required

socketcan

Advanced

socketcan

Protocol Metadata

Required

Optional

  • node-id: CAN node identifier. Depending on used CAN version it might be 11 or 29 bit unsigned int. (INT)
  • heartbeat: Forces PLC4X to send CANopen heartbeat (NMT) messages to the bus. (BOOLEAN)
  • request-timeout: Time after which dispatched BUS operation (ie. SDO request) will be marked as failed. (INT)

Tags

The syntax to define tags is based on the PLC4X syntax, see https://plc4x.apache.org/users/protocols/s7.html. Address Pattern:

propertyName=%{Memory-Area}{start-address}:{Data-Type}[{array-size}]

temperature=%I0.0:INT

Best Practices

Instead of creating a large event containing all nodes that should be available in StreamPipes, consider to group the fields logically into smaller adapters. This will ease the definition of pipelines for users and eases future modifications.