Skip to main content
Skip table of contents

ConfigCreateModbus.srv

Features

This service registers the Modbus signal. The Modbus I/O must be set in the Teach Pendant I/O set-up menu. Use this command only for testing if it is difficult to use the Teach Pendant. The Modbus menu is disabled in the Teach Pendant if it is set using this command.

Parameters

Parameter Name

Data Type

Default Value

Description

name

string

-

Modbus signal name

ip

string

-

IP address of the Modbus module

port

int32

-

Port number of the Modbus module

reg_type

int8

-

Modbus signal type

MODBUS_REGISTER_TYPE_DISCRETE_INPUTS

MODBUS_REGISTER_TYPE_COILS

MODBUS_REGISTER_TYPE_INPUT_REGISTER

MODBUS_REGISTER_TYPE_HOLDING_REGISTER

index

int8

-

Modbus signal index

value

int8

-

Output when the type is MODBUS_REGISTER_TYPE_COILS or MODBUS_REGISTER_TYPE_HOLDING_REGISTER (ignored otherwise)

slaveid

int

255

Slave ID of the ModbusTCP module

(0 or 1-247 or 255)

0 : Broadcase address

255 : Default value for ModbusTCP

Note

The slaveid argument is only available for versions M2.40 and higher.

Return

Return Name

Data Type

Default Value

Description

success

bool

-

True or False

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.