WWW.NNC.IR
Macro Reference
698
Vision System FH/FZ5 Series
User’s Manual (Z340)
SendString
Sends the character string data.
Format
SendString <ioIdent>, <outputString>
Parameter
Return value
None.
Description
Sends the character string specified in the <outputString()> parameter by using the communication module
specified in the <ioIdent> parameter.
Some communication modules do not support this macro function. (Reference: XList of I/O Modules (p.341))
If an incorrect data type is specified for a parameter, a "Type mismatch" error will occur.
Even if a non-existent number, numerical value, or combination of data types or values is specified for the
parameter, an error will not occur.
If a character string longer than 255 characters is specified for a character string parameter, a "String too
long" error will occur.
If the format is written incorrectly, such as writing the macro function name incorrectly, omitting a comma, or
omitting a half-width space, a "Syntax error" error will occur.
Usage Cautions
• None.
Example
Sends the character string in TCP normal communication
Useable Modules
Scene Control Macro / Communication Command Macro / Unit Macro
Supported Versions
Version 3.50 or later
Related Items
Parameter
name
Data type Description
<ioIdent>
Character
string type
Identification name of the communication module to be used (Reference: XList of I/O
Modules (p.341))
<outputString>
Character
string type
Character string to send
Rem Make the transmit characters.
DATA$ = "Test string"
Rem Send a character string.
SendString "TcpNormal", DATA$
ReceiveData (Reference: X Details (p.651)) SendData (Reference: X Details (p.696))