mb2hal

NAME
SYNOPSIS
DESCRIPTION
PINS
AUTHOR
LICENSE

NAME

mb2hal - HAL userspace component for Modbus

SYNOPSIS

Default component name:

loadusr -W mb2hal config=config_file.ini

Custom component name:

loadusr -Wn mymodule mb2hal config=config_file.ini

DESCRIPTION

MB2HAL is a generic userspace HAL component to communicate with one or more Modbus devices. It supoorts Modbus RTU and Modbus TCP.

See http://linuxcnc.org/docs/html/drivers/mb2hal.html for more information.

PINS

fnct_02_read_discrete_inputs:
mb2hal.m.n
bit out

fnct_03_read_holding_registers:
fnct_04_read_input_registers:
mb2hal.m.n.float
float out
mb2hal.m.n.int
s32 out

fnct_06_write_single_register:
mb2hal.m.n
float in

NELEMENTS needs to be 1 or PIN_NAMES must contain just one name.

fnct_15_write_multiple_coils:
mb2hal.m.n
bit in

fnct_16_write_multiple_registers:
mb2hal.m.n
float in

Each transaction
mb2hal.m.num_errors
u32 in

Error counter

m = HAL_TX_NAME or transaction number if not set, n = element number (NELEMENTS)
Example:
mb2hal.00.01.<type> (transaction=00, second register=01 (00 is the first one))
mb2hal.TxName.01.<type> (HAL_TX_NAME=TxName, second register=01 (00 is the first one))

AUTHOR

Victor Rocco

LICENSE

GPL