MDrive Example Program
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | 'MDRIVE DEMO PROGRAM 'Last modified 08/25/2016 'Sample test program for demonstration purposes only 'Not tested or verified for safety or any function CP 'preclear program memory S1=0,0 'configure inputs 1 - 4 gen purpose S2=0,0 'active low, sinking S3=0,0 S4=0,0 VA zk VA zl VA zm VA zn PG 1 LB su ' 1 1 1 0 (!=NOT) CL x1, I1 & I2 & I3 & !I4 = 1 H 200 'or any input CL x2, I1 | I2 | I3 | I4 = 1 H 200 'exclusive or CL x3, I1 ^ I2 = 1 BR su E LB x1 PR "x1 true" H 500 RT LB x2 PR "x2 true" H 500 RT LB x3 PR "x3 true" H 500 RT PG 200 LB xy zk = I1 = 0 'makes variable zk not I1 PR "Input I1= "I1 PR "Variable zk= "zk zl = I2 = 1 'makes variable zl = I2 PR "Input I2= "I2 PR "Variable zl= "zl E PG S 'keep this line |