beautypg.com

Pm designer operation manual – B&B Electronics WOP-2121V-N4AE - Manual User Manual

Page 340

background image

4

10

PM Designer Operation Manual

10-5

CHAPTER 10 RECIPES AND RECIPE OBJECTS

10.4.4. Between PM (HMI) and PLC/Controller

By using Command Block and Status Words (

)

You can use command flag setting in Command Block to request the panel to set the current recipe number, read recipe
from PLC or write recipe to PLC. You can also receive current recipe block ID or current recipe number by checking the
related status word and specifying the word variable in Status Words. For details, please see

Section 3.5.1 Command

Block and Status Words

.

To change current recipe number, the PLC first sets the Parameter Two Register to the desired recipe block and the
Parameter One Register to the desired recipe number, then turns on the Set Current Recipe Number (#2) command flag.
Also $RNm (Current Recipe Number Register, m: Recipe Block ID) of the panel can be changed by the PLC.

To update a recipe in the panel, the PLC first sets the Parameter Two Register to the desired recipe block and the
Parameter One Register to the desired recipe number, then turns on the Read Recipe From PLC (#3) command flag. The
panel reads data in Recipe Block to update the specified recipe in the panel.

To receive a recipe, the PLC first sets the Parameter Two Register to the desired recipe block and Parameter One
Register to the desired recipe number, then turns on the Write Recipe To PLC (#4) command flag. The panel sends the
specified recipe data to the Recipe Block in PLC.

Note: You do not need to specify the recipe block if the application has only one recipe block.
Note: To make the above operation work, the specified recipe block must exist, or the panel ignores the request. And
the specified recipe number in the Parameter One Register must be between 0 and the maximum recipe number - 1.If
the Parameter One Register is greater than or equal to the maximum recipe number, the panel ignores the request.

By using Function Button (

)

You can use a function button to write the current recipe to controller, or update current recipe by reading the recipe from
controller. For details, please see

Section 5.4.1 Basic Operations

of function buttons