Campbell CR800 Especificaciones Pagina 273

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 324
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 272
Section 12. Serial Input and Output Functions
12-3
ModBusMaster (ResultCode, ComPort, BaudRate, ModBusAddr, Function,
Variable, Start, Length, Tries, TimeOut)
The ModBusMaster instruction sets up a datalogger as a ModBus master
device to send or retrieve data to/from a ModBus slave.
Syntax
ModBusMaster ( ResultCode, ComPort, BaudRate, ModBusAddr, Function,
Variable, Start, Length, Tries, TimeOut )
Remarks
The datalogger supports ModBus functions 01-05, 15, and 16 (see Function
parameter below). The ModBusMaster instruction can be placed outside of the
main program (defined by BeginProg/EndProg).
See the CRBasic Editor help for parameter details.
ModBusSlave (ComPort, BaudRate, ModBusAddr, DataVariable,
BooleanVariable)
The ModBusSlave instruction sets up a datalogger as a ModBus slave device.
Syntax
ModBusSlave ( ComPort, BaudRate, ModBusAddr, DataVariable,
BooleanVariable)
Remarks
This instruction sets up a ModBus slave device to respond to the data request
of a ModBus master. Supported ModBus functions are 01, 02, 03, 04, 05, 15,
and 16. See the CRBasic Editor help for parameter details.
Notes:
The datalogger communicates in RTU mode (not ASCII mode) to other
ModBus devices. The communications port, baud rate, data bits, stop bits, and
parity are set in the ModBus driver for PC-based software or on the PLC.
The datalogger usually goes into sleep mode after 40 seconds of inactivity on
the communications port. After going to sleep with some interface methods it
sometimes takes a packet of incoming data to wake it up and then a retry
packet to get the message through. For example, the first byte of the packet is
spent waking up the SC32A/B or SC929, so a packet retry within 40 seconds is
required to get a complete ModBus packet into the datalogger for processing.
If packets continue arriving before the 40 second timeout, the datalogger
should respond very quickly to the new packets. If necessary, you can tie pin 3
of the datalogger's CS I/O port to 5V to keep the datalogger awake. The
drawback to this approach is that the average current draw will be higher than
if the datalogger is allowed to go into its low power sleep mode between
infrequent ModBus queries.
Some ModBus devices (e.g., some RTUs made by Bailey Controls that use less
common CPUs) require reverse word order (MSW/LSW) in the floating point
format. The datalogger currently does not support this less common word
order. (There are experimental versions of some datalogger operating systems
Vista de pagina 272
1 2 ... 268 269 270 271 272 273 274 275 276 277 278 ... 323 324

Comentarios a estos manuales

Sin comentarios