EasyManua.ls Logo

Alcorn Mcbride V16Pro - External Communication Events; Message Out; Log Message

Alcorn Mcbride V16Pro
179 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
WinScript Live Command Reference Page 84
External Communication Events
Built-In Events send a custom message to a specific Ethernet or serial device.
To Do This…
Use This Event…
Control a custom device
Message Out
Create a custom string to send
Format
Send a message to the “Live Log”
Log Message
Message Out
Sends a custom serial message out one of the serial ports. The message is sent in the protocol
defined for that port, but the Show Controller will not wait for an ACK or other response unless a
TCP connection is required.
Event Syntax
Event
Data1
Data2
Message Out
Name of Port
Name of String Variable or Literal Message
Example #1
Event
Data1
Data2
Message Out
Port3
DataMsg
Sends (where h represents hex character):
Hello h0D
If DataMsg is:
"Hello\r"
Log Message
Send a message to appear in the “Live Log” in WinScriptLive.
A log message has a priority of “Information”, “Warning” or “Error”.
Optionally, variables may be used as part of the string the string. This is similar to the sprintf
function found in C.
Event Syntax
Event
Data1
Data2
Data3…. DataN
Log
Message
Priority of the
message
Format String: "hello
%s %d"
Variable Name

Table of Contents