Demo entry 3548630

Test

   

Submitted by anonymous on Jan 14, 2016 at 08:49
Language: Python. Code size: 869 Bytes.

def StartProgram(d, m):
   m.Break()
   m.DefCommonState(St_Common)
   m.AddState(St_Test1)
   #--- Add more states here ---
   #--- MPU Programm END ---

   m.Jmp("Start")

   # hier lokale Variablen definieren
   comm.MY_DEBUG1	=  [m.PC(),0]	# 0x5101,0   
   comm.MY_COMMAND	=  [m.PC(),1]	# 0x5101,1
   comm.MY_SETTINGS_ID	=  [m.PC(),2]	# 0x5101,2
   m.End()		# !!! Don't delete this line !!!

   comm.MY_DEBUG2	=  [m.PC(),0]	# 0x5102,0   
   comm.MY_STATUS	=  [m.PC(),1]	# 0x5102,1
   comm.MY_DEBUG3	=  [m.PC(),2]	# 0x5102,2    
   m.End()		# !!! Don't delete this line !!!

   comm.Variable1	=  [m.PC(),0]	# 0x5103,0
   comm.Variable2	=  [m.PC(),1]	# 0x5103,1
   comm.Variable3	=  [m.PC(),2]	# 0x5103,2
   m.End()		# !!! Don't delete this line !!!

   m.Label("Start")
   m.Delay(1500)	# Delay for starting controller
   m.BoostReload(10)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).