Skip to the content.

SHM Modbus - Getting Started

SHM Modbus > Getting Started

“This getting started section demonstrates setting up a Shared Memory Modbus client and simulating register data.”

1. Start Modbus client

modbus-tcp-client-shm --semaphore modbus -p 5020

This command starts a shared memory Modbus TCP client listening on port 5020. It creates the shared memories modbus_DO, modbus_DI, modbus_AO and modbus_AI, and creates the semaphore modbus to protect the shared memory from simultaneous access.

For more details about using the Modbus clients see modbus-tcp-client-shm and modbus-rtu-client-shm.

2. Interact with the shared memory

SHM Modbus provides tools to inspect and manipulate the Modbus client data.

Write data

Inspect data