Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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 12: goal_cclIeFbCfgDeviceVersionSet parameters


Parameter                 Description uint16_t version                       new device version

 

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 ) ;                                                                                                                   

 1.1            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 13: 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 ) ;                                                                                                             

 

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 14: goal_cclIeFbCfgDeviceModelCodeSet parameters


Parameter                      Description uint32_t productId                       new product Id

 

1   r e s = g oal_ cc l Ie F b Cfg D ev ic e M o del Co de Set ( 0 x 00000001 ) ;                                                                                             

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 15: goal_cclIeFbCfgNumStationsSet parameters


Parameter                         Description


uint8_tnumStations        number of occupiedstations

 

1   r e s = g o a l _ c c l I e F b C f g N u m S t a t i o n s S e t ( 2 ) ;                                                                                                                                       

  • No labels