WWW.NNC.IR
Using Communication Command Macro
164
Vision System FH/FZ5 Series
User’s Manual (Z340)
Using Communication Command Macro
You can define your own communications commands for the Sensor Controller.
You use this to create functionality that is not available in the standard communications commands, or to perform
more than one process with a single communications command.
Example: To tell the Controller to change scenes and then execute a measurement from an external device.
User-defined communications commands are registered as a character string of the command name for the
non-procedure communications protocol, or as a command number from 0 to 255. These commands are stored
in the main memory of the Sensor Controller.
If you send a registered communications command from the external device to the Sensor Controller, the Sensor
Controller recognizes it and performs the specified processing.
Without using communication command macro Using communication command macro
You must send two standard communications commands:
the Switch Scene command (scene) and the Measurement
command (measure).
Create a measurement command (mymeasure) that is set to
execute scene switching followed by measurement
processing.
One execution of the mymeasure command actually
executes two commands, the scene command and measure
command, which simplifies the control logic from the PLC or
other external device.