writing_gem_state_variables_to_device_servers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
writing_gem_state_variables_to_device_servers [2024/02/06 16:48]
wikiadmin created
writing_gem_state_variables_to_device_servers [2024/02/06 18:41] (current)
wikiadmin
Line 1: Line 1:
-=====Writing GEM State Variables to Device Servers (PLC Registers)=====+=====Monitoring GEM State Variables in TransSECS Devices=====
  
-GEM state variables are calculated and maintained automatically by the internal GEM state model so you should never manually change these. However these values are accessible and can be written (to be read only) to a holding register or tag in your device.+GEM state variables are calculated and maintained automatically by the internal GEM state model so you should never manually change these. However these values are accessible for monitoring and can be written (to be read only) to a holding register or tag in your device. See also Configuring [[modbusdevicesexample_onlineoffline_localremote| OnlineOfflineState and LocalRemoteState VIDs]] to use Modbus 0x registers.
  
 ====GEM Control State (Modbus Example)==== ====GEM Control State (Modbus Example)====
Line 9: Line 9:
 {{:pasted:20240206-164223.png}} {{:pasted:20240206-164223.png}}
  
-In the configuration, be sure to set the timebase to 0.0 (it will default to 1.0). It is important to make this register write-only, so that the current Control State value is only written to the register and never read.+In the configuration, be sure to set the Timebase to 0.0 (change this from the default 1.0). It is important to make this register write-only by setting the Timebase to 0.0, so that the current Control State value is only written to the register (and never read from this register).
  
 {{:pasted:20240206-164757.png}} {{:pasted:20240206-164757.png}}
 +
 +In the TransSECS Devices project, configure the ControlState VID to use this newly defined register to store its value.
 +
 +Click on ControlState (under VIDs) and select ModbusTCP for the Device, and the TagName "ControlState".
 +
 +{{:pasted:20240206-165058.png}}
 +
 +Now when you build and run the deployment you will see the value of the tool's ControlState in the 4x1 register.
  
  
  • writing_gem_state_variables_to_device_servers.1707259694.txt.gz
  • Last modified: 2024/02/06 16:48
  • by wikiadmin