FAQ: Is it possible to automatically start an HMI recipe download from an SMC-3010 controller?
Breadcrumb
Contact Us
contactUsAction
Yes, by using the interlock mailbox. In many cases upon a machine power on sequence, it is desireable to automatically load up a series of custom startup parameters (or recipe of values) from an HMI interface into the controller for use in operation. In this case, a LegendMC (SMC-3010). Below we describe what is necessary to configure an EXOR HMI to transfer a recipe of values to the controller, at the controller command, by utilizing an "interlock mailbox" feature.
Step 1: Definition of the mailbox
In the EXOR Designer software (reference Designer User Manual), enable the mailbox to "read in cycles" from Project/Interlock Mailbox.. menu dropdown. Click on the "Reference.." button to access the base controller variable where the mailbox data will be exchanged. Select "0" for 16-bit word format (WORD [bin]) see screen shots below). In this case, we will define the controller variable "V050" as the start of the mailbox. According to EXOR designer manual, each word in the mailbox is defined to be 16 bits wide, since SMC3010 defines integers as 32 bit words, care must be taken when setting up the mailbox structure (see table 8-1 of Designer manual). In this case, the first word of the mailbox (cmd/status word) will be the first 16 bits of "V050", the second word of the mailbox (function/response code) will be the second most significant 16 bits of "V050", the third word of the mailbox (parameter 0) will be the first 16 bits of "V051", and so on. Twenty 16-bit words should be reserved for the mailbox, so the controller should pre-define and set asside 10 variables, such as "V050" thru "V059" or UniOP[0] thru UniOP[9]. NOTE: it is very important to pre-define these words in the controller or this will not work, see the SMC code example attached.
V050 low 16 bits = Cmd/Status Word
V050 high 16 bits = Function/Response Code Word
V051 low 16 bits = Parameter 0
V051 high 16 bits = Parameter 1
...etc...
Step 2: Commanding Recipe Download from Controller
Refer to 8-6 of Designer Manual. In the case of recipe download, the Cmd/Status word and Function/Response code will share the same controller variable (in our example "V050") because it is 32 bits wide.
Step 2A:
First the mailbox parameters should be set. Parameter 0 should be set to the page number that the recipe is located (for example page 7) and Parameter 1 will be set to the recipe set number (for example recipe set 4).
EXAMPLE: In V051, enter 262151 in decimal or 40007 in hex
(4 shifted 16 bits to the left, plus 7. In binary: 100 0000 0000 0000 0111)
Step 2B:
Next, the initiate the command. The Function Code should be set to "2" to "Start Recipe Download" and the CMD word should be set to "1" to indicate that there is a pending request.
EXAMPLE: In V050, enter 131073 in decimal or 20001 in hex
(2 shifted 16 bits to the left, plus 1. In binary: 10 0000 0000 0000 0001)
Step 3: Confirm Recipe Download Completion
After successful execution, the mailbox will return a "4" in the Cmd/Status word to indicate that the command has been completed, and a "0" in the Function/Response code to indicate that the transfer has been completed successfully. If an error occured, it will indicate in the Function/Response code area. A table of error codes can be viewed in Designer manual table 8-5.
EXAMPLE: V050 will display 4 in decimal or 00004 in hex
(4 shifted 16 bits to the left, plus 0. In binary: 100 0000 0000 0000 0000)
Note: To set a hex value in the SMC-3010, you would use the "$" symbol. Example in step 2A: "V050=$40007"
Note: In order to use the mailbox, the HMI must interpret the controller word as two 16 bit words in stead of one 32 bit integer word. To accomodate for this, a new driver has been created and has been attached below.
For a copy of the latest driver, see FAQ # BFAR-5E5JUK
SAFETY PRECAUTIONS AND INSTRUCTIONS FOR USE OF FAQ INFORMATION!
Please read and understand the product instruction manual before installing, servicing or operating Yaskawa products. FAQ content and illustrations are provided as technical advice to augment the information in manual, not supersede it. It is not possible to give detailed instructions for all types of installation or support activities. The information described in the FAQs are subject to change without notice to improve the product or FAQ. Yaskawa assumes no responsibility for errors or omissions or damages resulting from the use of the information contained in any FAQ. All warnings, cautions and product instruction for product use must be followed. Installation, operation and maintenance should be carried out by qualified personnel. Failure to observe these and other precautions highlighted in the product manuals will expose the user to high voltages resulting in, serious injury or death. Qualified personnel are defined as individuals who are familiar with the installation, starting, operation and maintenance of Yaskawa products of the type described and have proper qualifications to perform the work.
Phone
If you have an urgent request, please call: 1-800-YASKAWA (927-5292) or 1-847-887-7000.Electronically
To contact us electronically, please select your type of request and complete the form.Yaskawa America, Inc. - Drives & Motion Division
2121 Norman Drive South
Waukegan, IL 60085