Macro Programming Examples; Example 1 - Rice Lake IQ plus 710 Installation Manual

Digital weight indicator
Hide thumbs Also See for IQ plus 710:
Table of Contents

Advertisement

PROGRM Menu
Parameter
Choices
PSEUDO
GROSS
NET
PRIM
SEC
TIME
DATE
CLRCN
CLRTAR
CLRACC
PAUSREL
MAJORKY
Discontinued Product
MOTION
WAITSS
COZ
DIGIN1 – DIGIN8
AZTRACK
TIMER
COMPR1 – COMPR20
9.2

Macro Programming Examples

To prevent injury and equipment damage, always test macros and batching routines thoroughly before
Warning
connecting the indicator to a live system.
9.2.1

Example 1

The following example uses a macro to provide
operator prompts for a simple container filling
procedure. The single setpoint is used to check for a
full container; when tripped, the setpoint releases the
pause in step 5 of the macro.
With the indicator in setup mode, the following EDP
commands are sent to program the setpoint and assign
prompts used by the macro.
SETPOINT=1
KIND=GROSSSP
VALUE=5
TRIP=HIGHER
BATCH=OFF
DIGOUT=NONE
SETPOINT=2
KIND=NETSP
VALUE=200
TRIP=HIGHER
BATCH=OFF
DIGOUT=NONE
PROMPT#1=ADD BOX
PROMPT#2=ADD MATERIAL
62
IQ Plus 710 Installation Manual
The PSEUDO parameter allows simulation of a pseudo key for the macro step.
Pseudo keys are keypad functions not represented by an actual front panel key.
For example, the PRIM pseudo key displays the primary units configured for the
indicator, but there is no actual primary units key on the front panel. The PRIM and
SEC pseudo keys are used to explicitly request primary or secondary units display;
the UNITS front panel key toggles between primary and secondary units,
depending on which is displayed at the time the key is pressed.
The PAUSEREL parameter inserts a pause in the macro sequence that is released
when the specified condition is met. The value specified for this parameter
determines when the pause is released:
MAJORKY: When any of the five major keys is pressed
MOTION: When motion is detected
WAITSS: When scale is stable within the specified motion band
COZ: When scale reaches center of zero
DIGIN1–DIGIN8: When DIGINx goes active
AZTRACK: When scale is within the zero track band
TIMER: When timer expires (timer value is specified on TIMEOUT parameter)
COMPR1 – COMPR20: When the setpoint x (1–20) changes state
Table 9-1. MACRO Submenu Parameters (PROGRM Menu)
Description
PROMPT#3=REMOVE BOX
NOTE: Prompts are assigned using the PROMPT#n EDP
command or the PROMPTS parameter on the PROGRM
menu. Prompts are recalled for display during macro
execution using the NAME.n EDP parameter or the NAME
parameter under the macro submenu.
The macro shown below is started when the operator
presses the F1 macro key:
MACRO 1
MACRO1.K01=PAUSREL.COMPR1
MACRO1.K01=NAME.1
MACRO1.K02=PAUSREL.WAITSS
MACRO1.K02=NAME.1
MACRO1.K03=KTARE
MACRO1.K04=PAUSREL.COMPR2
MACRO1.K04=NAME.2
MACRO1.K05=PAUSREL.WAITSS
MACRO1.K06=KPRINT
MACRO1.K07=KGROSS
MACRO1.K08=PAUSREL.AZTRACK
MACRO1.K08=NAME.3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents