The following is the list of commands to be used in the DNMSTn.cfg configuration file.
NOTE: Remember that n can take as values 0 or 1 depending on the use of CAN port 1 or 2.
The commands can be of two types: generic for the entire network or specific for each node.
Generics
Command |
Description |
|||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
; text |
To insert a comment line, the first significant character must be a ; |
|||||||||||||||||||||||||||||||||||||||
WS_ID value |
MAC ID of the master (from 1 to 63) |
|||||||||||||||||||||||||||||||||||||||
BAUDRATE value |
Baud rate (in KHz) of working Devicenet network. This number can take the following values: 125, 250 or 500 (default 500) |
|||||||||||||||||||||||||||||||||||||||
DISABLE_COM_ALARM value |
Disables runtime alarms from the Devicenet Master. value is the mask of the alarm to be disabled:
|
|||||||||||||||||||||||||||||||||||||||
Disables errors or other commands during configuration (from RTE 34.27.7). If this keyword is put before the definition of a node, then the declared configuration will be applied to all nodes. value is the mask value of the error or command to be disabled:
|
||||||||||||||||||||||||||||||||||||||||
PRO_CB value |
Reserved, value 0. Used for diagnostic information in the report |
|||||||||||||||||||||||||||||||||||||||
REAL_AS_DOUBLE/ REAL_AS_FLOAT |
Indicates how data of type REAL should be treated (where not explicitly declared). The default is REAL_AS_FLOAT |
|||||||||||||||||||||||||||||||||||||||
LITTLE_ENDIAN/ BIG_ENDIAN/ MIDDLE_LITTLE_ENDIAN/ MIDDLE_BIG_ENDIAN |
Selects how data in communication packets should be handled. Default BIG_ENDIAN |
|||||||||||||||||||||||||||||||||||||||
RUN_ALWAYS |
Enables transmission in any mode. By default, transmission occurs only in execution mode |
|||||||||||||||||||||||||||||||||||||||
DIAGNO_R idx [-Rn] |
Enables writing communication diagnostics to R registers. You can specify the number of registers to be used. The default is 3 registers. Only values between 1 and 3 will be taken into account |
|||||||||||||||||||||||||||||||||||||||
FULL_DIAGNO_R idx |
Enables writing of full communication diagnostics to 16 R registers. |
|||||||||||||||||||||||||||||||||||||||
Enables writing node state to R registers starting from idx up to the configured number of nodes. The value of node states is:
|
||||||||||||||||||||||||||||||||||||||||
PACHET_RATIO value |
Sets the frequency of data exchange from the master to the device. Value in milliseconds, minimum value 10 (default 250) |
|||||||||||||||||||||||||||||||||||||||
BLOCK_TO_RBX n size |
Command to start defining a data block received from a device to Robox.
After this command, subsequent commands will be relative to the specified device until a new device is reached |
|||||||||||||||||||||||||||||||||||||||
BLOCK_FROM_RBX n size |
Command to start the definition of a data block transmitted from Robox to a device.
After this command, subsequent commands will be relative to the specified device until a new device is reached |
Specifics
Node identification
Command |
Description |
---|---|
VENDOR_ID value |
Identifies the code assigned to the device vendor ("VendCode" of EDS). The value is used during connection to check the identity of the device. If this value is 0, it is not checked |
PROD_CODE value |
Numeric identifier of the vendor-assigned product code ("ProdCode" of EDS). This value is used during connection to check the identity of the device. If this value is 0 it is not checked |
REVISION value |
Main revision number assigned by the vendor ("MajRev" of EDS). Value is used during connection to check the identity of the device. If this value is 0 it is not checked |
Diagnostic register setting on node status
Command |
Description |
---|---|
STATUS_REG idx |
Sets the node state diagnostic register idx. Refer to NODE_STATUS_REG in the Generics section above for the possible values the status can take. (from RTE 34.29.1) |
Disabling errors in node configuration
Command |
Description |
---|---|
CFG_FLAG value |
Disables errors during configuration. If present, the configuration is active only for the current node, overriding the global configuration. Refer to CFG_FLAG in the Generics section above for the possible values that value can take. (from RTE 34.27.7) |
Defining the data structure within a block
Command |
Description |
||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
O-offs itemDefinition ... |
It indicates with what offset (in bytes) to enter the size in the data block. The value must be in the range 0-:-31. NOTE: The value must not point to a data area that is already, fully or partially, defined and must be put immediately after the last element entered without register holes, otherwise it would generate alarm 9240 DNMST (ch) Configuration fault (err_code).
|
||||||||||||||
O-offs R_8 idx [-RnRip] |
Defines the use of the low 8 bits (1 byte) of the indicated integer register. In case of r register assignment, bit 7 (0x80) will not be extended in the high word of the register. Ex.
|
||||||||||||||
O-offs R_8_I idx [-RnRip] |
Defines the use of the low 8 bits (1 byte) of the indicated integer register. In case of r register assignment, bit 7 (0x80) will be extended in the high word of the register. Ex.
|
||||||||||||||
O-offs R_16 idx [-RnRip] |
Defines the use of the low 16 bits (2 bytes) of the indicated integer register. If register r is assigned, bit 15 (0x8000) will not be extended in the high word of the register. Ex.
|
||||||||||||||
O-offs R_16_I idx [-RnRip] |
Defines the use of the low 16 bits (2 bytes) of the indicated integer register. If register r is assigned, bit 15 (0x8000) will be extended in the high word of the register. Ex.
|
||||||||||||||
O-offs R_32 idx [-RnRip] |
Defines the use of the indicated integer register r (4 bytes).
|
||||||||||||||
O-offs R_32_I idx [-RnRip] |
Defines the use of the indicated integer register r (4 bytes).
|
||||||||||||||
O-offs NVR_8 idx [-RnRip] |
Defines the use of the low 8 bits (1 byte) of the indicated retentive integer register nvr. In case of nvr register assignment bit 7 (0x80) will not be extended in the high word of the register. Ex.
|
||||||||||||||
O-offs NVR_8_I idx [-RnRip] |
Defines the use of the low 8 bits (1 byte) of the indicated retentive integer register nvr. In case of nvr register assignment bit 7 (0x80) will be extended in the high word of the register. Ex.
|
||||||||||||||
O-offs NVR_16 idx [-RnRip] |
Defines the use of the low 16 bits (2 bytes) of the indicated retentive integer register nvr. In case of nvr register assignment bit 15 (0x8000) will not be extended in the high word of the register. Ex.
|
||||||||||||||
O-offs NVR_16_I idx [-RnRip] |
Defines the use of the low 16 bits (2 bytes) of the indicated retentive integer register nvr. In case of nvr register assignment bit 15 (0x8000) will be extended in the high word of the register. Ex.
|
||||||||||||||
O-offs NVR_32 idx [-RnRip] |
Defines the use of the indicated integer retentive register nvr (4 bytes).
|
||||||||||||||
O-offs NVR_32_I idx [-RnRip] |
Defines the use of the indicated integer retentive register nvr (4 bytes).
|
||||||||||||||
O-offs RR idx [-RnRip] |
Defines the use of the indicated real register rr. If REAL_AS_FLOAT the value is received/sent as float (4 bytes), with limitation to maximum float if the value of REAL is greater; if REAL_AS_DOUBLE the value is received/sent as double (8 bytes).
|
||||||||||||||
O-offs RR_F idx [-RnRip] |
Defines the use of the indicated real register rr. The value is received/sent as float (4 bytes), with limitation to maximum FLOAT if the value of the REAL is greater.
|
||||||||||||||
O-offs NVRR idx [-RnRip] |
Defines the use of the indicated real retentive register nvrr. If REAL_AS_FLOAT the value is received/sent as float (4 bytes), with limitation to maximum float if the value of REAL is greater; if REAL_AS_DOUBLE the value is received/sent as double (8 bytes).
|
||||||||||||||
O-offs NVRR_F idx [-RnRip] |
Defines the use of the indicated real retentive register nvrr. The value is received/sent as float (4 bytes), with limitation to maximum float if the value of the REAL is greater.
|
||||||||||||||
O-offs INP_W idx [-RnRip] |
Associates the 16 bits received with the indicated input word.
|
||||||||||||||
O-offs INP_W_8 idx [-RnRip] |
Associates the 8 low bits received with the indicated input word.
|
||||||||||||||
O-offs OUT_W idx [-RnRip] |
Associates the indicated output word with the 16 transmitted bits.
|
||||||||||||||
O-offs OUT_W_8 idx [-RnRip] |
Associates the indicated output word with the 8 transmitted bits.
|
||||||||||||||
O-offs RES dim |
Reserve an area in the block equal to the indicated number of bytes.
|