pfbSaveCfg

pfbSaveCfg — saves the Profibus card configuration.

Synopsis

(pfbSaveCfg card_id NET filename)
(pfbSaveCfg card_id DPMAS filename)
(pfbSaveCfg card_id DPSLV filename)
(pfbSaveCfg card_id FLASH)
  

Parameters

card_id
The ID associated with the card initialized by this command. Up to 4 cards can be simultaneously accessed by the same driver, numbered 0 to 3. If not specified, then the next available ID (sequentially from 0) is assigned (see Description below).
filename
The filename, including path if needed, of the configuration file to save. Different configuration file types have corresponding extensions (see Description below) which will be automatically appended if not supplied.

Returns

OK if successful, otherwise one of the following:

(error "pfbSaveCfg DR_ERR_CARD_INVALID (time) invalid card: card_id")
(error "pfbLoadCfg DR_ERR_FILE_NO_ACCESS (time) File not found or access denied.")
(error "pfbSaveCfg PFB_ERR_UNDEFINED_OBJ (time) Unknown configuration target")
(error "pfbSaveCfg PFB_ERR_NO_CARD (time) Card not available")
(error "pfbSaveCfg PFB_ERR_CMD_TIMEOUT (time) Cmd failed (timeout)")
(error "pfbSaveCfg PFB_ERR_NET_NOT_CFG (time) Network parms not configured")
(error "pfbSaveCfg PFB_ERR_MASTER_NOT_CFG (time) DP Master not configured")
(error "pfbSaveCfg PFB_ERR_SLAVE_NOT_CFG (time) DP Slave not configured")

Description

This command saves different aspects of the SST-PFB configuration, depending on the third argument, as follows:

  • NET: saves the Profibus network parameters to a text file (*.ncf).
  • DPMAS: saves the DP master operation to a text file (*.mcf).
  • DPSLV: saves the DP slave operation to a text file (*.scf).
  • FLASH: saves card configuration to the flash memory.

This is equivalent to issuing pfbCmd with the CMD_PGM_TO_FLASH command.