Supported platforms: CODESYS 2.3, CODESYS 3.5, CODESYS 3.5 SAFETY

 

Using Address Claiming

This guide describes how to use Address Claiming with J1939 PGN messages.

 

SDK 3.8 & MultiTool 6.6 or newer or MultiTool Creator is required.

 

CODESYS 2.3:

  • Address claiming library 1.1.1 or newer is required

  • J1939 library 1.3.2 or newer is recommended

CODESYS 3.5:

  • Address claiming library 1.0.0.1 or newer is required

  • Device description using Address Claiming library is required

  • J1939 library 3.1.0.2 or newer is recommended

 

 

Address claiming is a network management protocol to dynamically reserve source addresses in J1939 based systems.

Epec address claiming library is implemented according to ISOBUS standard ISO 11783-5. The functionality in SAE J1939-81 is the same.

 

Defining address claiming

Define Address Claiming for control unit using MultiTool Creator's Address Claiming tab.

Define J1939 device in MultiTool Creator's network editor

Define J1939 PGN messages

 

Using PGNs with address claiming

When PGN is defined in MultiTool Creator to use address claiming, the code template is generated automatically and the application uses SPN data in the same way than without address claiming.

 

Code template uses DeviceToPGN function block instances to implement address monitoring to a PGN message.

 

When PGN message uses address claiming there are few things which differ from using manual addresses:

 

1   PGN is not added to J1939's PGN list before the address claiming procedure is OK.

2   DeviceToPGN function block automatically sets PGN cycle time to 0 when own address is not valid or address matching sequence is in progress

3   PGN's addresses will change automatically on-fly if claimed addresses change

4   Application should not use PGN's manual transmit triggers when addresses are not valid

 

 

Code template

This section describes the variables which are generated related to the PGN message's address claiming support.

Additionally, other variables are generated related to e.g. address claim server.

 

When address claiming is used for PGN's source and/or destination address code template includes:

 

 

When J1939 device is defined to use address claiming and it is used in a PGN message:

 

The enable variable can be used by the application in a use case where search condition would be changed on-fly.

In this use case the sequence needs to be reset by setting PGN's ACL enable to FALSE.

New J1939 device is searched after search conditions are changed and enable is set TRUE.

 

CODESYS 2.3

 

Function block instances are defined in J1939 structures.

 

Code template variables:

 

J1939_CAN1.In.Engine.ACL_EEC1

J1939_CAN1.Out.Engine.ACL_TSC1

 

 

Enable variables are defined in J1939 structures.

 

Code template variables:

 

J1939_CAN1.In.Engine.ACL_EEC1Enable

J1939_CAN1.Out.Engine.ACL_TSC1Enable

 

 

Search condition is defined in global variable (one per J1939 device)

 

Code template variables:

 

G_ACL_CAN1_Engine_SearchConditions

 

 

CODESYS 3.5 6000 series or 5050

 

Function block instances are defined in J1939 structures.

 

Code template variables:

 

J1939_CAN1.In.Engine.ACL_EEC1

J1939_CAN1.Out.Engine.ACL_TSC1

 

 

Enable variables are defined in J1939 structures.

 

Code template variables:

 

J1939_CAN1.In.Engine.ACL_EEC1Enable

J1939_CAN1.Out.Engine.ACL_TSC1Enable

 

 

Search condition is defined in global variable (one per J1939 device)

 

Code template variables:

 

G_ACL_CAN1_Engine_SearchConditions

 

 

CODESYS 3.5 S/E series

 

Function block instances are defined in G_J1939_CAN<X>_RPGN and G_J1939_CAN<X>_TPGN global variable lists.

 

Code template variables:

 

G_J1939_CAN1_RPGN.Engine_EEC1_ACL

G_J1939_CAN1_TPGN.Engine_TSC1_ACL

 

 

Enable variables are defined in J1939 structures.

 

Code template variables:

 

G_J1939.CAN1.In.Engine.ACL_EEC1Enable

G_J1939.CAN1.Out.Engine.ACL_TSC1Enable

 

 

Search condition is defined in global variable (one per J1939 device)

 

Code template variables:

 

G_J1939.ACL_CAN1_Engine_SearchConditions

 

 

See also

Using J1939

Address claiming library

J1939 library

Epec MultiTool Creator manual (available in Epec extranet)

 

 

Source file topic100630.htm

Last updated 19-Dec-2024