⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 process.a30

📁 电表解决方案概要power_meter_r8c2g_source_code
💻 A30
📖 第 1 页 / 共 5 页
字号:
	._inspect	'V', 'r', "output_buff", 'G', 190, 1, 0, 0, 00h
	._inspect	'V', 'r', "output_buff", 'G', 190, 1, 0, 0, 00h
	._inspect	'V', 'r', "inlet_20m_buff", 'G', 193, 2, 0, 0, 00h
	._inspect	'V', 'r', "inlet_20m_buff", 'G', 194, 2, 0, 0, 00h
	._inspect	'V', 'r', "inlet_2m_buff", 'G', 195, 1, 0, 0, 00h
	._inspect	'V', 'r', "inlet_2m_buff", 'G', 197, 1, 0, 0, 00h
	._inspect	'V', 'r', "process_left_time", 'G', 198, 2, 0, 0, 00h
	._inspect	'V', 'r', "water_buff", 'G', 201, 1, 0, 0, 00h
	._inspect	'V', 'r', "water_level_buff", 'G', 201, 1, 0, 0, 00h
	._inspect	'V', 'r', "inlet_20m_buff", 'G', 203, 2, 0, 0, 00h
	._inspect	'V', 'r', "inlet_2m_buff", 'G', 204, 1, 0, 0, 00h
	._inspect	'V', 'r', "output_buff", 'G', 208, 1, 0, 0, 00h
	._inspect	'V', 'r', "output_buff", 'G', 208, 1, 0, 0, 00h
	._inspect	'V', 'r', "operation_flag_5", 'G', 210, 2, 0, 0, 01h
	._inspect	'V', 'r', "inlet_20m_buff", 'G', 213, 2, 0, 0, 00h
	._inspect	'V', 'r', "err_buff", 'G', 215, 1, 0, 0, 00h
	._inspect	'V', 'r', "inlet_20m_buff", 'G', 216, 2, 0, 0, 00h
	._inspect	'V', 'r', "operation_flag_1", 'G', 222, 2, 0, 0, 04h
	._inspect	'V', 'r', "operation_flag_1", 'G', 225, 2, 0, 0, 04h
	._inspect	'V', 'r', "output_buff", 'G', 236, 1, 0, 0, 00h
	._inspect	'V', 'r', "output_buff", 'G', 236, 1, 0, 0, 00h
	._inspect	'V', 'r', "inlet_2m_buff", 'G', 238, 1, 0, 0, 00h
	._inspect	'V', 'r', "inlet_2m_buff", 'G', 239, 1, 0, 0, 00h
	._inspect	'V', 'r', "inlet_2m_buff", 'G', 241, 1, 0, 0, 00h
	._inspect	'V', 'r', "output_buff", 'G', 245, 1, 0, 0, 00h
	._inspect	'V', 'r', "output_buff", 'G', 245, 1, 0, 0, 00h
	._inspect	'V', 'r', "inlet_2m_buff", 'G', 247, 1, 0, 0, 00h
	._inspect	'V', 'r', "mot_cycle_buff", 'G', 252, 1, 0, 0, 00h
	._inspect	'V', 'r', "output_buff", 'G', 253, 1, 0, 0, 00h
	._inspect	'V', 'r', "output_buff", 'G', 253, 1, 0, 0, 00h
	._inspect	'V', 'r', "output_buff", 'G', 254, 1, 0, 0, 00h
	._inspect	'V', 'r', "output_buff", 'G', 254, 1, 0, 0, 00h
	._inspect	'V', 'r', "pass_time_counter", 'G', 258, 1, 0, 0, 00h
	._inspect	'V', 'r', "inlet_2m_buff", 'G', 264, 1, 0, 0, 00h
	._inspect	'V', 'r', "inlet_2m_buff", 'G', 265, 1, 0, 0, 00h
	._inspect	'V', 'r', "inlet_2m_buff", 'G', 266, 1, 0, 0, 00h
	._inspect	'V', 'r', "inlet_2m_buff", 'G', 268, 1, 0, 0, 00h
	._inspect	'V', 'r', "pass_time_counter", 'G', 272, 1, 0, 0, 00h
	._inspect	'V', 'r', "mot_cycle_buff", 'G', 290, 1, 0, 0, 00h
	._inspect	'V', 'r', "output_buff", 'G', 291, 1, 0, 0, 00h
	._inspect	'V', 'r', "output_buff", 'G', 291, 1, 0, 0, 00h
	._inspect	'V', 'r', "output_buff", 'G', 292, 1, 0, 0, 00h
	._inspect	'V', 'r', "output_buff", 'G', 292, 1, 0, 0, 00h
	._inspect	'V', 'r', "process_left_time", 'G', 294, 2, 0, 0, 00h
	._inspect	'V', 'r', "operation_flag_1", 'G', 295, 2, 0, 0, 04h
	._inspect	'V', 'r', "operation_counter", 'G', 296, 1, 0, 0, 00h
	._inspect	'V', 'r', "operation_counter", 'G', 296, 1, 0, 0, 00h
	._inspect	'V', 'r', "pass_time_counter", 'G', 297, 1, 0, 0, 00h
	._inspect	'F', 'e', "inlet", "$inlet", 'G', 0, 0


;## #	FUNCTION drain
;## #	ARG Size(0)	Auto Size(0)	Context Size(3)

	._type	258,'v'
	._type	259,'v'
	._type	260,'x',258,1
	._type	260,'m','',0,259
	._func	'drain','G',0,260,_drain,0
	._inspect	'F', 's', "drain", "_drain", 'G', 3
	.align
	._line	315
	.glb	_drain
_drain:
	._block
	._line	319
	mov.b	_output_buff,A0
	or.b	#02H,A0
	mov.b	A0,_output_buff
	._line	321
	cmp.w	#0000H,_drain_8m_buff
	jle	L573
	._line	322
	add.w	#-1,_drain_8m_buff
L573:
	._line	324
	cmp.w	#0000H,_process_left_time
	jne	L583
	._line	325
	mov.b	_drain_2m_buff,R0L
	exts.b	R0L
	mov.w	R0,_process_left_time
L583:
	._line	327
	cmp.b	#00H,_drain_2m_buff
	jle	L593
	tst.b	#04H,_operation_flag_5
	jnz	L779
	._line	328
	._block
	._line	329
	dec.b	_drain_2m_buff
	._line	330
	add.w	#-1,_process_left_time
	._eblock
L779:
L593:
	._line	337
	mov.b	_water_buff,R0L
	jne	L721
	._line	338
	._block
	._line	339
	cmp.b	#77H,_drain_2m_buff
	jge	L651
	._line	340
	._block
	._line	341
	cmp.b	#00H,_drain_60s_buff
	jle	L631
	._line	342
	._block
	._line	343
	dec.b	_drain_60s_buff
	._line	344
	mov.b	_drain_60s_buff,R0L
	exts.b	R0L
	mov.w	R0,_process_left_time
	._eblock
L631:
	._line	346
	mov.b	_drain_60s_buff,R0L
	jne	L733
	._line	347
	._block
	._line	348
	mov.b	#3cH,_drain_60s_buff
	._line	349
	mov.w	#01e0H,_drain_8m_buff
	._line	350
	mov.b	#78H,_drain_2m_buff
	._line	352
	mov.w	#0000H,_process_left_time
	._line	353
	inc.b	_operation_counter
	._line	354
	inc.b	_pass_time_counter
	._line	355
	and.b	#0fbH,_save_water_flag_1
	._line	357
	rts	
	._eblock
	._eblock
	._line	360
L651:
	cmp.b	#77H,_drain_2m_buff
	jne	L781
	._line	361
	._block
	._line	362
	or.b	#04H,_operation_flag_5
	._line	363
	cmp.b	#00H,_drain_10s_buff
	jle	L661
	._line	364
	._block
	._line	365
	dec.b	_drain_10s_buff
	._eblock
L661:
	._line	368
	cmp.b	#00H,_drain_20s_buff
	jle	L671
	._line	369
	._block
	._line	370
	dec.b	_drain_20s_buff
	._line	371
	mov.b	_drain_20s_buff,R0L
	exts.b	R0L
	mov.w	R0,_process_left_time
	._eblock
L671:
	._line	374
	mov.b	_drain_20s_buff,R0L
	jne	L681
	._line	375
	._block
	._line	376
	mov.b	#0aH,_drain_10s_buff
	._line	377
	mov.b	#14H,_drain_20s_buff
	._line	378
	mov.w	#01e0H,_drain_8m_buff
	._line	379
	mov.b	#78H,_drain_2m_buff
	._line	380
	and.b	#0fbH,_operation_flag_5
	._line	382
	mov.w	#0000H,_process_left_time
	._line	383
	inc.b	_operation_counter
	._line	384
	inc.b	_pass_time_counter
	._line	385
	and.b	#0fbH,_save_water_flag_1
	._line	386
	rts	
	._eblock
	._line	388
L681:
	mov.b	_drain_10s_buff,R0L
	jne	L783
	._line	389
	._block
	._line	390
	mov.b	_machine_type,R0L
	jne	L785
	._line	391
	._block
	._line	392
	mov.b	#0aH,_drain_10s_buff
	._line	393
	mov.b	#14H,_drain_20s_buff
	._line	394
	mov.w	#01e0H,_drain_8m_buff
	._line	395
	mov.b	#78H,_drain_2m_buff
	._line	396
	and.b	#0fbH,_operation_flag_5
	._line	398
	mov.w	#0000H,_process_left_time
	._line	399
	inc.b	_operation_counter
	._line	400
	inc.b	_pass_time_counter
	._line	401
	and.b	#0fbH,_save_water_flag_1
	._line	402
	rts	
	._eblock
	._eblock
	._eblock
	._eblock
	._line	409
L721:
	cmp.w	#0000H,_drain_8m_buff
	jne	L731
	._line	411
	._block
	._line	412
	mov.w	#01e0H,_drain_8m_buff
	._line	413
	mov.b	#78H,_drain_2m_buff
	._line	414
	mov.b	#0aH,_drain_10s_buff
	._line	415
	mov.b	#14H,_drain_20s_buff
	._line	416
	mov.b	#3cH,_drain_60s_buff
	._line	418
	mov.b	_drain_2m_buff,R0L
	exts.b	R0L
	mov.w	R0,_process_left_time
	._line	419
	mov.b	#02H,_err_buff
	._line	420
	rts	
	._eblock
	._line	423
L731:
	._line	424
	rts	
L785:
L783:
L781:
L733:
	._eblock
	._line	426
	rts	
E2:
M2:
	._efunc	M2
	._inspect	'F', 'd', "drain", "_drain", 'G', 315, 0, 00h, 0
	._inspect	'F', 't', "drain", 'G', 260
	._inspect	'V', 'r', "output_buff", 'G', 319, 1, 0, 0, 00h
	._inspect	'V', 'r', "output_buff", 'G', 319, 1, 0, 0, 00h
	._inspect	'V', 'r', "drain_8m_buff", 'G', 321, 2, 0, 0, 00h
	._inspect	'V', 'r', "drain_8m_buff", 'G', 322, 2, 0, 0, 00h
	._inspect	'V', 'r', "process_left_time", 'G', 324, 2, 0, 0, 00h
	._inspect	'V', 'r', "drain_2m_buff", 'G', 325, 1, 0, 0, 00h
	._inspect	'V', 'r', "process_left_time", 'G', 325, 2, 0, 0, 00h
	._inspect	'V', 'r', "drain_2m_buff", 'G', 327, 1, 0, 0, 00h
	._inspect	'V', 'r', "operation_flag_5", 'G', 327, 2, 0, 0, 04h
	._inspect	'V', 'r', "drain_2m_buff", 'G', 329, 1, 0, 0, 00h
	._inspect	'V', 'r', "process_left_time", 'G', 330, 2, 0, 0, 00h
	._inspect	'V', 'r', "water_buff", 'G', 337, 1, 0, 0, 00h
	._inspect	'V', 'r', "drain_2m_buff", 'G', 339, 1, 0, 0, 00h
	._inspect	'V', 'r', "drain_60s_buff", 'G', 341, 1, 0, 0, 00h
	._inspect	'V', 'r', "drain_60s_buff", 'G', 343, 1, 0, 0, 00h
	._inspect	'V', 'r', "drain_60s_buff", 'G', 344, 1, 0, 0, 00h
	._inspect	'V', 'r', "process_left_time", 'G', 344, 2, 0, 0, 00h
	._inspect	'V', 'r', "drain_60s_buff", 'G', 346, 1, 0, 0, 00h
	._inspect	'V', 'r', "drain_60s_buff", 'G', 348, 1, 0, 0, 00h
	._inspect	'V', 'r', "drain_8m_buff", 'G', 349, 2, 0, 0, 00h
	._inspect	'V', 'r', "drain_2m_buff", 'G', 350, 1, 0, 0, 00h
	._inspect	'V', 'r', "process_left_time", 'G', 352, 2, 0, 0, 00h
	._inspect	'V', 'r', "operation_counter", 'G', 353, 1, 0, 0, 00h
	._inspect	'V', 'r', "pass_time_counter", 'G', 354, 1, 0, 0, 00h
	._inspect	'V', 'r', "save_water_flag_1", 'G', 355, 2, 0, 0, 04h
	._inspect	'V', 'r', "drain_2m_buff", 'G', 360, 1, 0, 0, 00h
	._inspect	'V', 'r', "operation_flag_5", 'G', 362, 2, 0, 0, 04h
	._inspect	'V', 'r', "drain_10s_buff", 'G', 363, 1, 0, 0, 00h
	._inspect	'V', 'r', "drain_10s_buff", 'G', 365, 1, 0, 0, 00h
	._inspect	'V', 'r', "drain_20s_buff", 'G', 368, 1, 0, 0, 00h
	._inspect	'V', 'r', "drain_20s_buff", 'G', 370, 1, 0, 0, 00h
	._inspect	'V', 'r', "drain_20s_buff", 'G', 371, 1, 0, 0, 00h
	._inspect	'V', 'r', "process_left_time", 'G', 371, 2, 0, 0, 00h
	._inspect	'V', 'r', "drain_20s_buff", 'G', 374, 1, 0, 0, 00h
	._inspect	'V', 'r', "drain_10s_buff", 'G', 376, 1, 0, 0, 00h
	._inspect	'V', 'r', "drain_20s_buff", 'G', 377, 1, 0, 0, 00h
	._inspect	'V', 'r', "drain_8m_buff", 'G', 378, 2, 0, 0, 00h
	._inspect	'V', 'r', "drain_2m_buff", 'G', 379, 1, 0, 0, 00h
	._inspect	'V', 'r', "operation_flag_5", 'G', 380, 2, 0, 0, 04h
	._inspect	'V', 'r', "process_left_time", 'G', 382, 2, 0, 0, 00h
	._inspect	'V', 'r', "operation_counter", 'G', 383, 1, 0, 0, 00h
	._inspect	'V', 'r', "pass_time_counter", 'G', 384, 1, 0, 0, 00h
	._inspect	'V', 'r', "save_water_flag_1", 'G', 385, 2, 0, 0, 04h
	._inspect	'V', 'r', "drain_10s_buff", 'G', 388, 1, 0, 0, 00h
	._inspect	'V', 'r', "machine_type", 'G', 390, 1, 0, 0, 00h
	._inspect	'V', 'r', "drain_10s_buff", 'G', 392, 1, 0, 0, 00h
	._inspect	'V', 'r', "drain_20s_buff", 'G', 393, 1, 0, 0, 00h
	._inspect	'V', 'r', "drain_8m_buff", 'G', 394, 2, 0, 0, 00h
	._inspect	'V', 'r', "drain_2m_buff", 'G', 395, 1, 0, 0, 00h
	._inspect	'V', 'r', "operation_flag_5", 'G', 396, 2, 0, 0, 04h
	._inspect	'V', 'r', "process_left_time", 'G', 398, 2, 0, 0, 00h
	._inspect	'V', 'r', "operation_counter", 'G', 399, 1, 0, 0, 00h
	._inspect	'V', 'r', "pass_time_counter", 'G', 400, 1, 0, 0, 00h
	._inspect	'V', 'r', "save_water_flag_1", 'G', 401, 2, 0, 0, 04h
	._inspect	'V', 'r

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -