beautypg.com

Set rtc, Swap tag a and tag b, Switch screen from tag – Maple Systems MAPware-7000 User Manual

Page 211: Subtract a constant value from a tag

background image

MAPware-7000 Programming Manual

211

1010-1040, Rev. 02

Set RTC
Description: Change a set value (i.e. year, month, day, etc.) of the internal real-time clock of the
HMC. This is done by configuring the key to increment or decrement the current value by 1
whenever the key is pressed.

Parameters:

Real Time Clock Settings:
Increment: add +1 to the current value
Decrement: subtract -1 from the current value

Options:
Year – range 0 to 99
Month – range 1 to 12
Date {Day of Month} – range 1 to 31
Hour – range 0 to 23
Minute – range 0 to 59
Seconds – range 0 to 59
Day of Week – range 1-7 with 1=Sunday,…, 7=Saturday

Swap Tag A and Tag B
Description: Swaps (exchanges) the values residing in the Tag A register and the Tag B register.

Parameters:

Tag A: target location for Tag B value

Tag B: target location for Tag A value

Switch Screen from Tag
Description: Displays a new screen based upon the value in the Tag register. The requested
screen must be a base screen. If the number in the tag register does not represent a valid
screen, an error message displays on the HMC screen.

Parameters:

Tag: target location that is read to determine screen

Subtract a Constant Value from a Tag
Description: Subtract a constant value from the current value residing in an internal tag or PLC
tag.

Parameters:

Tag: this is the target address

Number: constant value to subtract from the target tag when the task is executed.

Type: format (Unsigned, Signed, Hexadecimal, BCD, Binary, or Float) of data