Motion Command Using FBD
Original instructions
At a Glance
The first way to send a motion command is by using the specific Elementary Functions (EFs), in the Control Expert library
For example: the EF MoveAbsolute
EN/ENO Pins
In order to make the EN and ENO pin appear in the FBD representation double click on the FBD representation (or right click and select properties) and check the Show EN/ENO checkbox.
EN and ENO are general pins used by all EFs. The ENO pin is computed only if EN is set to 1, otherwise its value is undefined.
The output pin CMD_NB is computed internally. There are 3 different cases:
In the last two cases, an error notification will be reported through the CMD_ERR system object (%MWr.m.c.1.1).
NOTE: It is necessary to have EN set to 1 to change command parameter values.
WARNING
UNEXPECTED PARAMETER CHANGES
Command parameters will change on each PLC cycle if EN is set to 1.
Add a rising edge detection (R_Trig) as shown on the diagram below:
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Other Pins
The input pins correspond to all command parameters associated with this specific command. (except the command code)
When the command is sent through the PTO EF, the %MWr.m.c.13 object takes the same value as CMD_NB.