Classes |
Public Member Functions |
Protected Member Functions |
Protected Attributes |
List of all members
faudes::mbDevice Class Reference Processimage synchronisation via Modbus/TCP. More...
Detailed DescriptionProcessimage synchronisation via Modbus/TCP. This device is derived from the signal based sDevice to read and write line levels via ethernet using the Modbus/TCP protocol; see also the Modbus Organization. When configured as master, the mbDevice initiates commucation with a specified list of slaves in order to retrieve input line levels and to set output line levels. The latter are locally buffered and are propagated to the event-based interface inherited via the base class sDevice. When configured as slave, the mbDevice accepts connections from any Modbus master, will response to their request sand update the local line-level buffer accordingly. Further dedatils on the configuration, incl. an example, are provided by the ModbusDevice user-reference Technical details.
Note: This device must be explicitely enabled in Makefile.plugin. Definition at line 72 of file iop_modbus.h. Constructor & Destructor Documentation
Default constructor. Definition at line 43 of file iop_modbus.cpp.
Copy constructor (not implemented!) Definition at line 86 of file iop_modbus.h.
Explicit destructor. Definition at line 61 of file iop_modbus.cpp. Member Function Documentation
Append remotely implemented inputs. You must (re-)compile the mbDevice after adding remote inputs.
Definition at line 135 of file iop_modbus.cpp.
Append remotely implemented outputs. You must (re-)compile the mbDevice after adding remote outputs.
Definition at line 146 of file iop_modbus.cpp.
Clear all configuration (implies Stop) Reimplemented from faudes::sDevice. Definition at line 73 of file iop_modbus.cpp.
Compile to internal data-structures. Exception in misconfiguration/inconsistencies Reimplemented from faudes::sDevice. Definition at line 84 of file iop_modbus.cpp.
Loop hook. This function is called once during each cycle of the backgroud thread. It implements the actual communication via Modbus/TCP. Reimplemented from faudes::sDevice. Definition at line 480 of file iop_modbus.cpp.
Read non-event-related configuration data from tokenreader.
Reimplemented from faudes::sDevice. Definition at line 202 of file iop_modbus.cpp.
Get input signal. Extract bit value from image.
Implements faudes::sDevice. Definition at line 926 of file iop_modbus.cpp.
IO Hook, inputs.
Reimplemented from faudes::sDevice. Definition at line 915 of file iop_modbus.cpp.
Write non-event-related configuration data to tokenreader.
Reimplemented from faudes::sDevice. Definition at line 163 of file iop_modbus.cpp.
Set output signal. Set value of bit in process image.
Implements faudes::sDevice. Definition at line 942 of file iop_modbus.cpp.
IO Hook, outputs. Reimplemented from faudes::sDevice. Definition at line 937 of file iop_modbus.cpp.
IO Hook, outputs.
Reimplemented from faudes::sDevice. Definition at line 932 of file iop_modbus.cpp.
I/O helper. Definition at line 372 of file iop_modbus.cpp.
Definition at line 448 of file iop_modbus.cpp.
Definition at line 419 of file iop_modbus.cpp.
Definition at line 396 of file iop_modbus.cpp.
Definition at line 464 of file iop_modbus.cpp.
Set server address of this node. Note: you can only set th server address while the device is down.
Definition at line 157 of file iop_modbus.cpp.
Activate the device. This function opens/initializes a network connection and starts the -background thread for communication and edge detection.
Reimplemented from faudes::sDevice. Definition at line 292 of file iop_modbus.cpp.
Deactivate the device. This function shuts down the network, stops the background thread and sets all output signals to 0. Reimplemented from faudes::sDevice. Definition at line 337 of file iop_modbus.cpp. Member Data Documentation
Remote process image buffer. Definition at line 286 of file iop_modbus.h.
Role: master/slave. Definition at line 270 of file iop_modbus.h.
Background thread: tcp connection to remote masters. Definition at line 300 of file iop_modbus.h.
Definition at line 295 of file iop_modbus.h.
Definition at line 296 of file iop_modbus.h.
Definition at line 287 of file iop_modbus.h.
Definition at line 290 of file iop_modbus.h.
Definition at line 294 of file iop_modbus.h.
Definition at line 297 of file iop_modbus.h.
IP addresses. Definition at line 273 of file iop_modbus.h.
Definition at line 283 of file iop_modbus.h.
Background thread: tcp connection to remote slave. Definition at line 293 of file iop_modbus.h.
Definition at line 288 of file iop_modbus.h.
Definition at line 289 of file iop_modbus.h. The documentation for this class was generated from the following files: libFAUDES 2.28a --- 2016.09.13 --- c++ api documentaion by doxygen |