Stack Configuration

This chapter list all functions that can be used to configure the GOAL CCLIEFB stack. These functions must be called within appl_setup() before goal_cclIeFbNew() is called. Te configuration function alter global configuration variables which are copied during goal_cclIeFbNew to the stack instance data. The configuration influences the behavior of the GOAL CCLIEFB stack and the resource allocation during initialization.

goal_cclIeFbCfgDeviceVersionSet

This function the device version of the station. The device version must correspond to the device version in the CSP plus file needed by a PLC to identify the device.

Default Value: 0x0101

Returns a GOAL_STATUS_T value as result.

Table: goal_cclIeFbCfgDeviceVersionSet parameters

Parameter

Description

uint16_t version

new device version

res = goal_cclIeFbCfgDeviceVersionSet(0x0001);

goal_cclIeFbCfgDeviceVendorCodeSet

This function the vendor code of the station. The vendor code must correspond to the vendor ID in the CSP plus file needed by a PLC to identify the device.

Default Value: 0x0E13

Returns a GOAL_STATUS_T value as result.

Table: goal_cclIeFbCfgDeviceVendorCodeSet parameters

Parameter

Description

uint16_t vendorCode

new vendor code

res = goal_cclIeFbCfgDeviceVendorCodeSet(0x0E13);

goal_cclIeFbCfgDeviceModelCodeSet

This function sets the model code of the station. The model code must correspond to the model code in the CSP plus file needed by a PLC to identify the device.

Default Value: 0x00000001

Returns a GOAL_STATUS_T value as result.

Table: goal_cclIeFbCfgDeviceModelCodeSet parameters

Parameter

Description

uint32_t productId

new product Id

res = goal_cclIeFbCfgDeviceModelCodeSet(0x00000001);

goal_cclIeFbCfgNumStationsSet

This function sets number of occupied Stations of the station. This number of station is the maximum number of stations which may requested by the PLC. This number also determines the total sizes of all four link devices and therefore the size of the process data.

Default Value: 4

Returns a GOAL_STATUS_T value as result.

Table: goal_cclIeFbCfgNumStationsSet parameters

Parameter

Description

uint8_t numStations

number of occupied stations