Please enable JavaScript to view this site.

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:

Value

Alarm disabled

0x01

9240

0x02

9241

0x04

9242

0x08

9243

0x0F

All alarms disabled

CFG_FLAG value

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:

Bit

Hex value

Meaning

0

0x00000001

Error in configuration data ignored when setting watch-dog timeout action

1

0x00000002

Error in configuration data ignored when setting PACKET_RATIO

2

0x00000004

Error in configuration data ignored when checking input data size

3

0x00000008

Error in configuration data ignored while checking output data size

4

0x00000010

Error in configuration data ignored while checking VENDOR_ID (equals setting VENDOR_ID = 0)

5

0x00000020

Error in configuration data ignored while checking PROD_CODE (equals to set PROD_CODE = 0)

6

0x00000040

Error in configuration data ignored when checking REVISION (equivalent to setting REVISION = 0)

12

0x00001000

The code of VENDOR_ID is not requested

13

0x00002000

The code of PROD_CODE is not requested

14

0x00004000

The code of REVISION is not requested

16

0x00010000

Disable alarm for node not present

19

0x00080000

Enables connection management with nodes having protocol type "Group 3"

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.

View diagnostic

NODE_STATUS_REG idx

Enables writing node state to R registers starting from idx up to the configured number of nodes.

The value of node states is:

Value

Meaning

0x00

Not configured

0x01

Device configured and connection active

0x02

Device requested but not present on the network

0x21

Device configured and waiting for communication (can line not present) (from RTE 34.27.7)

0x22

Device lost, communication with device lost, not receiving messages from device

0x41

Connection error: timeout on configuration command, no response

0x42

Connection error: incorrect VENDOR_ID, does not match value in configuration file

0x43

Connection error: PROD_CODE incorrect, does not match value in configuration file

0x44

Connection error: REVISION incorrect, does not match the value in the configuration file

0x46

Connection error: Data on output size (FROM_RBX) incorrect, size too small

0x47

Connection error: Data on input size (TO_RBX) incorrect, size too small

0x4a

Connection error: Error on write data PACHET_RATIO

0x80

Device configured correctly - Start Polling

0x81

Communication with device OK - Receiving data from device

0x181

Data received from device

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.

Parameter

Description

n

MAC ID of the device

size

Number of bytes received from the device

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.

Parameter

Description

n

MAC ID of the device

size

Number of bytes transmitted to the 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).

Parameter

Description

offs

Offset of insertion of the size within the block

itemDefinition

Definition of the data exchange, RTE entity, and data size within the buffer

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.

Value written to buffer 8 bits

Contents of 32-bit register

0x12 (18)

0x00000012 (18)

0xE0 (224) considered U8

0x000000E0 (224)

 

Parameter

Description

offs

Offset of insertion of the size within the block

idx

Register index

nRip

Number of repetitions (default 1)

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.

Value written to buffer 8 bits

Contents of 32-bit register

0x12 (18)

0x00000012 (18)

0xE0 (-32) considered I8

0x000000E0 (-32)

 

Parameter

Description

offs

Offset of insertion of the size within the block

idx

Register index

nRip

Number of repetitions (default 1)

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.

Value written to buffer 16 bits

Contents of 32-bit register

0x1234 (4660)

0x00001234 (4660)

0xE000 (57344) considered U16

0x0000E000 (57344)

 

Parameter

Description

offs

Offset of insertion of the size within the block

idx

Register index

nRip

Number of repetitions (default 1)

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.

Value written to buffer 16 bits

Contents of 32-bit register

0x1234 (4660)

0x00001234 (4660)

0xE000 (-8192) considered I16

0xFFFFE000 (-8192)

 

Parameter

Description

offs

Offset of insertion of the size within the block

idx

Register index

nRip

Number of repetitions (default 1)

O-offs R_32 idx [-RnRip]

Defines the use of the indicated integer register r (4 bytes).

Parameter

Description

offs

Size entry offset within the block

idx

Register index

nRip

Number of repetitions (default 1)

O-offs R_32_I idx [-RnRip]

Defines the use of the indicated integer register r (4 bytes).

Parameter

Description

offs

Size entry offset within the block

idx

Register index

nRip

Number of repetitions (default 1)

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.

Value written to buffer 8 bits

Contents of 32-bit register

0x12 (18)

0x00000012 (18)

0xE0 (224) considered U8

0x000000E0 (224)

 

Parameter

Description

offs

Offset of size entry within the block

idx

Register index

nRip

Number of repetitions (default 1)

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.

Value written to buffer 8 bits

Contents of 32-bit register

0x12 (18)

0x00000012 (18)

0xE0 (-32) considered I8

0x000000E0 (-32)

 

Parameter

Description

offs

Offset of insertion of the size within the block

idx

Register index

nRip

Number of repetitions (default 1)

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.

Value written to buffer 16 bits

Contents of 32-bit register

0x1234 (4660)

0x00001234 (4660)

0xE000 (57344) considered U16

0x0000E000 (57344)

 

Parameter

Description

offs

Offset of insertion of the size within the block

idx

Register index

nRip

Number of repetitions (default 1)

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.

Value written to buffer 16 bits

Contents of 32-bit register

0x1234 (4660)

0x00001234 (4660)

0xE000 (-8192) considered I16

0xFFFFE000 (-8192)

 

Parameter

Description

offs

Offset of insertion of the size within the block

idx

Register index

nRip

Number of repetitions (default 1)

O-offs NVR_32 idx [-RnRip]

Defines the use of the indicated integer retentive register nvr (4 bytes).

Parameter

Description

offs

Size insertion offset within the block

idx

Register index

nRip

Number of repetitions (default 1)

O-offs NVR_32_I idx [-RnRip]

Defines the use of the indicated integer retentive register nvr (4 bytes).

Parameter

Description

offs

Size insertion offset within the block

idx

Register index

nRip

Number of repetitions (default 1)

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

Parameter

Description

offs

Offset of insertion of the magnitude within the block

idx

Register index

nRip

Number of repetitions (default 1)

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.

Parameter

Description

offs

Size insertion offset within the block

idx

Register index

nRip

Number of repetitions (default 1)

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

Parameter

Description

offs

Offset of insertion of the magnitude within the block

idx

Register index

nRip

Number of repetitions (default 1)

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.

Parameter

Description

offs

Offset of insertion of the magnitude within the block

idx

Register index

nRip

Number of repetitions (default 1)

O-offs INP_W idx [-RnRip]

Associates the 16 bits received with the indicated input word.

Parameter

Description

offs

Offsets at which the bits were received

idx

Index of the input word

nRip

Number of repetitions (default 1)

O-offs INP_W_8 idx [-RnRip]

Associates the 8 low bits received with the indicated input word.

Parameter

Description

offs

Offset at which bits were received

idx

Index of the input word

nRip

Number of repetitions (default 1)

O-offs OUT_W idx [-RnRip]

Associates the indicated output word with the 16 transmitted bits.

Parameter

Description

offs

Offset at which bits were transmitted

idx

Index of the output word

nRip

Number of repetitions (default 1)

O-offs OUT_W_8 idx [-RnRip]

Associates the indicated output word with the 8 transmitted bits.

Parameter

Description

offs

Offset at which bits were transmitted

idx

Index of the output word

nRip

Number of repetitions (default 1)

O-offs RES dim

Reserve an area in the block equal to the indicated number of bytes.

Parameter

Description

offs

Size insertion offset within the block

dim

Number of bytes to be reserved

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC