
Configuring converters / Configuration of MasterCAN CAN2RS for data conversion from SPN into Modbus RTU registers
MasterCAN RS2CAN / CAN2RS data converters. Operation manual. Version 1.0
©
Technoton, 2020
40
•
The field
PGN Sendings Period
) serves to specify the order of the
sending a request to CAN-bus by the converter for the reception of message (
containing the selected SPN for conversion.
•
Depending on the selected SPN, the value of the period from 0…30000 range is defined,
in the following way:
- 0 value is displayed for periodically sent PGN and indicates the waiting period for PGN
from CAN-bus. Now the field
PGN Sendings Period
becomes inactive. In case you
need to change 0 value, click twice by the mouse button on this field;
- other value (e.g. 1000) corresponds to the order of sending a request to CAN-bus
—
1000 ms.
2)
In the right portion of the slot template (after the character
) there are settings of
Modbus RTU register of the converter into which the converted SPN must be saved
(see figure 24):
•
The field
Register Number
) serves to specify the register address for
saving the converted data. The register address may be specified from the range
0…65535 (by default —
0
).
•
The field
Register Amount
) serves to specify the total number of several
serial registers in which the converted data must be saved (by default
—
1
).
Notes
1 The value of the number of registers for data contained in lines is specified from the
range 1…125.
2 The value of the number of registers for registers containing the data “whole number”
or “number with the floating point” is specified from 1…2 range.
3 For the function codes (
) “Reading coils registers (01)” or “Reading
discrete inputs (02)” you can specify maximally 1 register.
The dropdown list
Function Code
) serves to select the required function
of reading from Modbus RTU registers of the converter (if the value is not specified, the
Error
is displayed) (see the admissible values of the function code in table 6).
•
The field
Bit Position
) serves to specify the specific bit position number
in the register of 1 byte size (only for the function
codes “Reading coil registers (01)” or
“Reading discrete inputs (02)”. This field is inaccessible for other
function codes. The bit
position may be specified from
0…7
range (by default
—
0
).
•
If needed, you can save data converted from
Register
Initial Value
) field without any conversion.
By default, it is not ticked; so the SPN is converted, in accordance with specified values
of attributes of factor and offset for the respective Modbus RTU register.
•
The fields
Factor
) and
Offset
) are designed to enter
attributes that are necessary for calculating by the converter values of the register
which is being recorded.
Below there is the formula (2) to recalculate SPN values into Modbus RTU register, with
respect to attributes of the registers conversion and the SPN format, in accordance with
SAE J1939 standard.