WWW.NNC.IR
Macro Reference
643
8
Appendices
Vision System FH/FZ5 Series
User’s Manual (Z340)
PutAll
Sets the output state of all output terminals.
Format
PutAll <ioIdent>, <state>
Parameter
Return value
None.
Description
Sets the output state of all output terminals of the communication module specified in the <ioIdent>
parameter to the state specified in the <state> parameter.
Normally "ParallelIo" should be specified in the <ioIdent> parameter.
The output state of each output terminal is expressed as an integer value (OFF (0) or ON (1)) in each digit of
a character string in binary notation.
In parallel I/O, integer values are returned expressing DO0 to DO15 in the 1st digit to the 16th digit.
Example: When DO0 to DO5 are ON and DO6 to DO15 are OFF
• Binary notation: 0000 0000 0011 1111
• Value of output states that are set: 63
If an incorrect data type is specified for a parameter, a "Type mismatch" error will occur.
If a non-existent number, numerical value, or combination of data types or values is specified for a parameter,
an "Illegal function call" error will occur.
If a value outside the range -2147483648 to 2147483647 is specified as an integer parameter, an "Overflow"
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
• When the operation mode is multi-line random trigger and there are three or more lines, the output states of
the DO signal cannot be set. Even if this macro function is used when there are three or more lines, an
"Illegal function call" error will not occur.
Example
In the communication command macro, sets all DO output states of parallel I/O to ON.
Parameter
name
Data type Description
<ioIdent>
Character
string type
Identification name of the communication module to be used (always "ParallelIo")
(Reference: XList of I/O Modules (p.341))
<state> Integer type Output state of terminal
IOMODULE$ = "ParallelIo"
Rem Set the output state.
PutAll IOMODULE$, 65535