Static variables in ModbusSlave - Manual - SIMATIC AX - Instructions that can be used for Modbus-RTU communication. - Siemens.Simatic.S71500.CommunicationsProcessor.ModbusRtu,library

Siemens.Simatic.S71500.CommunicationsProcessor.ModbusRtu library

Portfolio
SIMATIC AX
Product
SIMATIC AX
Software version
1.0.2
Edition
11/2024
Language
English (original)
Package Name
@ax/simatic-1500-modbusrtu

This table below shows the public static variables in the instance of ModbusSlave that you can use in your program.

Variable Data type Default Description
HR_Start_Offset Word Word#0 Specifies the start address of the Modbus hold register (default = 0)
QB_Start UINT UINT#0 Start address of the valid writable addressing range of the outputs (byte 0 to 65535)
QB_Count UINT UINT#65535 Number of output bytes that can be written by the Modbus master.
Extended_Addressing Bool FALSE Extended addressing, configures slave addressing as single or double byte
(FALSE = single byte address, TRUE = double byte address)
Request_Count UINT UINT#0 The number of all requests received by this slave
Slave_Message_Count UINT UINT#0 The number of requests received for this specific slave
Bad_CRC_Count UINT UINT#0 The number of received requests that have a CRC error
Broadcast_Count UINT UINT#0 The number of received broadcast requests
Exception_Count UINT UINT#0 Modbus-specific errors that are acknowledged with an exception to the master
Success_Count UINT UINT#0 The number of received requests without protocol errors for this specific slave
MB_DB P2P_MB_BASE - The MB_DB parameter of the ModbusCommonLoad instruction must be connected to this MB_DB parameter of the Modbus_Master instruction.