Up | IMCmd | RS232Cmd | ResponseCmd | TdvCmd format

  

IMCmd
Sends TdvCmdProtocol commands to external systems.

Parameters to RS232Cmd and IMCmd are free text, but by the use of special formatting strings, you can replace a tag name with a value in the tag database.

Syntax :

IMCmd;<command>

Example 1: Send data to specified ip and port with parameter substibution

IMCmd 
  destination=localhost:8704:Setup;Lowtolerance=%0.0fLowtolerance;

Example 2: SetValue on preconfigured server

IMCmd
  SetValue;Alias=12

Note:

With IMCmd, data is sent via the IMTDVCmdProtocol. The command is routed to a configured address : <ip>:<port>. The addressing can be overruled by prefixing the command with <destination=193.69.239.12:7002:>

Parameters to IMCmd are free text, but by the use of special formatting strings, you can send commands with tagdatabase values over tcp/ip to another Scorpion application.

This command is used when you know the destination.

Speed considerations sending large command-strings

To avoid parsing for parameter substitution, the command may be prefixed with 'NoParse:'.

This will send the data 'as is' and will reduce the overhead of parsing for formatting strings. For large commands the parsing overhead may be an important issue.

Example 3: Faster with NoParse option  

NoParse:IMCmd
  SetValue;Alias=12;Mode=1

 

 

Scorpion Vision Software Version: 9.2.0.515 - Date: 20120502
Scorpion Vision Software® is a registered trademark of Tordivel AS.
Copyright © 2000 - 2012 Tordivel AS.