This program example includes a group of subroutines and interrupt routines which create a Modbus RTU slave using the Freeport functions of the S7-200. Modbus RTU is a binary protocol. This program supports the following Modbus functions:
1 Read outputs (coils).
2 Read inputs (contacts).
3 Read holding registers (V memory).
4 Read input registers.
5 Write single output.
6 Write single holding register.
15 Write multiple outputs.
16 Write multiple holding registers.
Project Example:tip041b.rar
|