Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

Code Block

 

1   r e s = g o a l _ c c l I e F b C f g D e v i c e V e r s i o n S e t ( 0 x0001 ) ;                                                                                                                   

languagec
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

 

1   r e s = g o a l _ c c l I e F b C f g D e v i c e V e n d o r C o d e S e t ( 0 x0E13 ) ;                                                                                                             

 

Code Block
languagec
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

Code Block
language

 

...

c
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

Code Block
languagec
res = goal_cclIeFbCfgNumStationsSet(2);

...

Table of Contents