Brainboxes PX-246 Spezifikationen Seite 49

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 74
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 48
Controls and Indications
Part No. 057-120 8660 OPERATING MANUAL ISSUE 1 07/05/2010 ADM
49
Example 4 - Module RS485 port configured for connection to a
modbus master.
DSE86xx series modules operate as a modbus RTU slave device.
In a modbus system, there can be only one Master, typically a PLC, HMI system or PC SCADA system.
This master requests for information from the modbus slave (DSE86xx series module) and may (in control systems)
also send request to change operating modes etc. Unless the Master makes a request, the slave is ‘quiet’ on the
data link.
The factory settings are for the module to communicate at 19200 baud, modbus slave address 10.
To use the RS485 port, ensure that ‘port usage’ is correctly set using the DSE Configuration Suite Software.
Required settings are shown below.
‘Master inactivity timeout’ should be set to at least twice the value of the system scan time. For example if a modbus
master PLC requests data from the DSE86xx modbus slave once per second, the timeout should be set to at least 2
seconds.
The DSE Modbus Gencomm document containing register mappings inside the DSE module is available upon
request from support@deepseaplc.com. Email your request along with the serial number of your DSE module to
ensure the correct information is sent to you.
Typical requests (using Pseudo code)
BatteryVoltage=ReadRegister(10,0405,1)
: reads register (hex) 0405 as a single register (battery volts) from slave
address 10.
WriteRegister(10,1008,2,35701, 65535-35701):
Puts the module into AUTO mode by writing to (hex) register 1008, the
values 35701 (auto mode) and register 1009 the value 65535-35701 (the bitwise opposite of auto mode)
Warning=(ReadRegister(10,0306,1) >> 11) & 1)
: reads (hex) 0306 and looks at bit 12 (Warning alarm present)
ElectricalTrip=(ReadRegister(10,0306,1) >> 10) & 1)
: reads (hex) 0306 and looks at bit 11 (Electrical Trip alarm
present)
ControlMode=ReadRegister(10,0304,2);
reads (hex) register 0304 (control mode).
Seitenansicht 48
1 2 ... 44 45 46 47 48 49 50 51 52 53 54 ... 73 74

Kommentare zu diesen Handbüchern

Keine Kommentare