# Applicable hardware: PG-R101 and PG-R102 with the required driver license and fitted interfaces. Examples use E0/P0; P1 is PG-R101 only where fitted. # Configuration insert; append to a valid project configuration containing # Connections, Nodes and Points_List. Not a standalone upload. math_and_logic_section sequence_name,pt_id_a,pt_id_b,pt_id_c,pt_id_d,pt_id_r,run_freq_sec,step,length,function_sequence # Startup value written once when the driver starts. StartupReady,1000,-,-,-,-,3,1,1,[preload_str a "Ready"] # Scale point 1010 from 0-10 engineering units into point 1011 as 0-100 percent. ScalePercent,1010,1011,-,-,-,3,1,1,[linscale_by_len a b 0 100 0 10] # Set point 1021 to 1 when point 1020 is greater than 80. HighLimit,1020,1021,-,-,-,3,1,1,[updatevalue_if_gt a 80 b 1] # Add point 1030 and point 1031, then write the result to point 1032. AddTwoValues,1030,1031,-,-,1032,3,1,1,[add_2_by_len a b r] # Toggle point 1040 every 5 seconds. ToggleHeartbeat,1040,-,-,-,-,5,1,1,[toggle_by_runfreq a] # Controlled chain: multiply point 1050 by 2 into point 1051, then compare # point 1051 against point 1052 and write the result to point 1053. ControlledChain,1050,1051,1052,-,1053,3,1,1,[mul_by_val a 2 b; if_gt b c r]