Macro Basics with EasyBuilder Pro V6 Weintek Basic Automated Sequences Commands

Аватар автора
MySQL Работа с резервными копиями и восстановлением баз данных
Macros are automated sequences of commands that are executed during run-time. Theyallow you to perform tasks such as complex scaling operations, string handling, and user interactions within your project. This tutorial was created for developers that have some text-based programming experience. 0:00 - Introduction 0:40 - Project overview 1:26 - Macro Manager overview 2:26 - Macro Workspace overview 3:22 - Defining Variables: Data Types 4:58 - Macro Logic 7:45 - API: Built In Functions 8:15 - Read data from a device 9:40 - Demonstration 12:25 - Explanation Call for pricing and availability 425-488-1100 #HMI ------------------------------------------------------------------------------------ --------------------------------------------------------------- Scale_to_float CODE: macro_command main() float TEMP, TEMP2, TIMER, HRS, MIN unsigned int TIMER2,temp3,timrem GetData(TIMER, "Local HMI", RW, 0, 1) GetData(TIMER2, "Local HMI", RW, 0, 1) TEMP = TIMER * 100 SetData(TEMP, "Local HMI", LW, 100, 1) DELAY (1000) GetData(TEMP, "Local HMI", LW, 100, 1) temp2 = temp / 10 MIN = TEMP2 / 60 HRS = TEMP2 / 3600.00 SetData(min, "Local HMI", LW, 0, 1) SetData(HRS, "Local HMI", LW, 2, 1) temp3 = timer timrem = 500 - TIMER2 SetData(timrem, "Local HMI", RW, 2, 1) end macro_command --------------------------------------------------------------- reset_all CODE: macro_command main() short time[3],timeSP[3] bool bit GetData(time[0], "Local HMI", LW, 9017, 3) GetData(timeSP[0], "Local HMI"...

0/0


0/0

0/0

0/0