The application appl/goal_mb/01_simple_io demonstrates the usage of the GOAL Modbus Stack. It defines data regions for specific data types, opens up a Modbus instance and creates objects as following:
Data Type | Name | Address |
---|---|---|
Coil | APPL_COIL_1 | 1000 |
Coil | APPL_COIL_2 | 1001 |
Discrete Input | APPL_DISC_INPUT_XX | 2000-2009 |
Holding Register | APPL_HOLD_REG_1 | 3000 |
Holding Register | APPL_HOLD_REG_2 | 3001 |
Input Register | APPL_INPUT_REG_XX | 3050-3059 |