(pfbNetParms card_id [stnAddr [active [baud [hiStnAddr [options]]]]])
![]() | In DP networks, address 126 is reserved for slaves whose address must be set while the slave is online. |
| Baud Rate | Name | Code |
|---|---|---|
| 9600 | BAUD_9k6 | 0 |
| 19200 | BAUD_19k2 | 1 |
| 93.75K | BAUD_93k75 | 2 |
| 187.5K | BAUD_187k5 | 3 |
| 500K | BAUD_500k | 4 |
| 750K | BAUD_750k | 5 |
| 1.5M | BAUD_1m5 | 6 |
| 3M | BAUD_3m | 7 |
| 6M | BAUD_6m | 8 |
| 12M | BAUD_12m | 9 |
| Value | Name | Description |
|---|---|---|
| 0x01 | OPTION_REPEATER | If set, indicates to the card that there is at least one repeater on the network. This fact is used in calculating default bus parameters. The default is 0 (no repeaters). |
| 0x02 | OPTION_FMS | If set, indicates to the card that there is at least one FMS device on the network. This fact is used in calculating default bus parameters. The default is 0 (DP only). |
| 0x04 | OPTION_STAY_OFF_ERR | This bit determines the action taken by the card if the token error limit or message error limit are exceeded within 256 token cycles. If the bit is set, then the card will go offline with a fatal error and must be reloaded before being put back online. If 0 (the default), then the corresponding error counter is incremented, and the card transitions to offline and immediately back to online. |
If succesful:
(pfbNetParms card_id stnAddr ACTIVE|PASSIVE baud hiStnAddr options optionsStr)
where:
| Decimal values in range 0 to 126 or 255 if the value has not been specified (card default in effect). | ||
| baud | The current baud name. | ||
| options | A hex value. | ||
| optionsStr | A string representation of the value as an expression using option names. |
Otherwise, one of the following error messages:
(error "pfbNetParms DR_ERR_CARD_INVALID (time) invalid card: card_id") (error "pfbNetParms PFB_ERR_NO_CARD (time) Card not available") (error "pfbNetParms PFB_ERR_CMD_TIMEOUT (time) Cmd failed (timeout)") (error "pfbNetParms PFB_ERR_CMD_INVALID (time) Cmd not valid in current card state") (error "pfbNetParms PFB_ERR_CMD_BAD_BAUD (time) PFB: Bad Baud") (error "pfbNetParms PFB_ERR_CMD_BAD_STN_ADR (time) PFB: Bad Station Address") (error "pfbNetParms PFB_ERR_CMD_BAD_HI_STN_ADR (time) PFB: Bad HI Station Address") (error "pfbNetParms PFB_ERR_CMD_BAUD_DET_ERROR (time) PFB: Unable to detect baud rate")
This command is used to set the essential network parameters needed for the card to go on line. The card must be off line to use this command.
All network parameters are optional, or will be ignored if specified as '*', permitting only the desired parameters to be modified. If no network parameters are specified, then the command reduces to a query. In all cases, the current values of the parameters are returned.
This command is typically used in the configuration file. However, the card resets all network parameters to their defaults every time the card is taken off line, making it necessary to re-issue the command before returning on line.
The bus timing parameters (see pfbBusParms) that are not specified are automatically calculated by the card, based on the baud rate. If the baud rate is changed after its initial setting by the first call to pfbNetParms, then the card can no longer detect which bus parameters were unspecified and therefore will not re-calculate them. Putting the card on line, then back off line resets the defaults and permits the bus parameters to be re-calculated correctly.
Copyright © 1995-2006 by Cogent Real-Time Systems, Inc. All rights reserved.