Campbell CR800 Specifikace Strana 274

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 324
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 273
Section 12. Serial Input and Output Functions
12-4
that have used the reverse word order.) Some software packages have a set
setting to work with this original ModBus format. For example, the “Modicon
32-bit floating point order (0123 vs. 3210)” advanced option must be enabled
for the ModBus object in National Instruments’ Lookout.
ModemHangup (ComPort) … EndModemHangup
The ModemHangup and EndModemHangup instructions are used to enclose
code that should be run when a COM port hangs up communication.
Syntax
ModemHangup ( ComPort )
instructions to be run upon hangup
EndModemHangup
Remarks
The ModemHangup instruction indicates the beginning of the code; the
EndModemHangup indicates the ending. The code is entered in the
declarations section of the program, prior to the main program (defined by the
BeginProg/EndProg instructions). When the datalogger detects that a COM
port is hanging up, the ModemHangup code will be run.
This instruction set is most often used with modems that must be sent a
command sequence to disconnect and go into a low power state.
Note that each COM port operates independently; therefore, commands to hang
up modems can be processed concurrently.
ComPort The ComPort parameter specifies the communication port and mode
for this instruction.
This instruction runs sequentially from the processing task sequencer,
regardless of whether the datalogger is in pipeline or sequential mode.
SerialClose (ComPort)
The SerialClose instruction is used to close a communications port that was
previously opened by the SerialOpen instruction.
Syntax
SerialClose (ComPort)
Remarks
If this instruction is set equal to a variable, the result will be True (-1) of the
port was opened or False (0) if it was already closed.
The ComPort parameter specifies the communication port that should be
closed.
This instruction runs sequentially from the processing task sequencer,
regardless of whether the datalogger is in pipeline or sequential mode.
Zobrazit stránku 273
1 2 ... 269 270 271 272 273 274 275 276 277 278 279 ... 323 324

Komentáře k této Příručce

Žádné komentáře