📄 remote.inc
字号:
if [c_state] >=8
sec
else
clc
endif
else
seb f_finish
[w_code] =0ffh
rts
endif
ROR w_code;Custom_code ;kehuma
ROR temp_code ;wendu zhi
[c_state] = 00h
inc remotecount
if [remotecount] >= 16 ;
[remotecount] = 00h
seb f_finish
[c_sep]=++[c_sep]
;[b_Round_Uremote] = 0
else
clb f_finish
endif
endif
rts
Fun_SaveRemote:
[M_RxdBuffer]=[m_ir2else]
;RRF M_RxdBuffer ;2005-11-5 15:38
[m_ir2else] = [M_RxdBuffer]
[M_RxdBuffer]=[m_ir2TimerOff]
RRF M_RxdBuffer
[m_ir2TimerOff] = [M_RxdBuffer]
[M_RxdBuffer]=[m_ir2ClockHigh]
RRF M_RxdBuffer
[m_ir2ClockHigh] = [M_RxdBuffer]
[M_RxdBuffer]=[m_ir2ClockLow]
RRF M_RxdBuffer
[m_ir2ClockLow] = [M_RxdBuffer]
[M_RxdBuffer]=[m_ir2fantem]
RRF M_RxdBuffer
[m_ir2fantem] = [M_RxdBuffer]
[M_RxdBuffer]=[m_ir2mode]
RRF M_RxdBuffer
[m_ir2mode] = [M_RxdBuffer]
if [m_ir2mode] & 00000111B == RUN_HEAT && [b_SigerCool] == 1
if [ir2_onoff] == 0
CLB ir1_onoff
[m_ir1TimerOff] = [m_ir2TimerOff]
[m_ir1TimerOnOff] = [m_ir2TimerOnOff]
[m_ir1TimerOn] = [m_ir2TimerOn]
[m_ir1ClockHigh] = [m_ir2ClockHigh]
[m_ir1ClockLow] = [m_ir2ClockLow]
endif
BRA ExcNotSaveREmote
endif
;ir1StrongMan
;ir1_sleep
;ir2_sleep
;ir2StrongMan
[m_ir1else] = [m_ir2else]
[m_ir1TimerOff] = [m_ir2TimerOff]
[m_ir1TimerOnOff] = [m_ir2TimerOnOff]
[m_ir1TimerOn] = [m_ir2TimerOn]
[m_ir1ClockHigh] = [m_ir2ClockHigh]
[m_ir1ClockLow] = [m_ir2ClockLow]
[m_ir1fantem] = [m_ir2fantem]
[m_ir1mode] = [m_ir2mode]
ExcNotSaveREmote:
[m_ir2else] = 00H
[m_ir2TimerOff] = 00H
[m_ir2TimerOnOff] = 00H
[m_ir2TimerOn] = 00H
[m_ir2ClockHigh] = 00H
[m_ir2ClockLow] = 00H
[m_ir2fantem] = 00H
[m_ir2mode] = 00H
CLB b_LVCDispflag
[bTestForce ]= 0
JSR FunExec_KeyPower
RTS
clrremote:
[c_state]=00H
[c_stage]=00h
[c_data] =00h
[c_bit] =00h
[c_sep] =00h
[w_work0]=00H
[w_code] = 0ffh
[w_pcode] = 0ffh
[w_ecode] = 0ffh
[f_remote]= 03h
rts
t_hcsdl:
.byte > l_start
.byte > l_head
.byte > l_sep1
.byte > l_data
.byte > l_custom
.byte > l_sep2
t_hcsdh:
.byte < l_start
.byte < l_head
.byte < l_sep1
.byte < l_data
.byte < l_custom
.byte < l_sep2
FunExec_KeyPower:
; CLB bTestForce
BBS ir1_onoff,Exec_KeyPowerOn
FunAllPower_Off:
BBC bPowerOnmMCUStatus,AllPower_OffExit
CLB bPowerOnmMCUStatus
JSR Fun_CloseDoor
AllPower_OffExit:
RTS
Exec_KeyPowerOn:
if [mSwingStepConclose] < [mSwingStepCon]
[mSwingStepCon] = [mSwingStepCon] - [mSwingStepConclose]
[mSwingStepConclose] = 00H
else
[mSwingStepCon] = 00H
[mSwingStepConclose] = 00H
ENDIF
FunAllPower_On:
if [bPowerOnmMCUStatus] ==0
SEB bPowerOnmMCUStatus
JSR Fun_OpenDoor
LDM #00h,M_LVCCount
LDM #20H,mRoomActSec
endif
RTS
;赏屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯?;? Key Mode Process ?;? ?;韧屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯?
Fun_OpenDoor:
SEB bOpenDoormSwingStatus
CLB bCloseDoormSwingStatus
SEB bOpenSwingOpen
CLB bOpenSwingClose
LDM #00H,mStepperStatus ; 2001.10.3
RTS
Fun_CloseDoor:
SEB bCloseDoormSwingStatus
CLB bOpenDoormSwingStatus
LDM #2,mStepperStatus
RTS
buzzerselc:
SEB b_Bezzon ; 2002,8,9 for eeprom 20050220
seb bstart_timerx ;x gaiwei maichong shuchu fangshi
ldm #00h,soundtime ;20050220
clB Start_timerX
;*****************************************************************************************
;light
;********************************************************************
lif [b_hrp] == 0 ;20050805
if [light2s] == 1
if [lightok] == 0
if [lighttime] <= 10
if [ir1_swing] == 1
if [ir_swingtemp] == 0
if [ir1_light] == 1
[ir1_light] = 0
else
[ir1_light] = 1
endif
[lighttime] = 10
[lightok] = 1
endif
endif
if [ir1_swing] == 0
if [ir_swingtemp] == 1
if [ir1_light] == 1
[ir1_light] = 0
else
[ir1_light] = 1
endif
[lighttime] = 10
[lightok] = 1
endif
endif
endif
endif
endif
if [light2s] == 0
if [ir1_swing] == 1
if [ir_swingtemp] == 0
[lighttime] = 00h
[light2s] = 1
endif
endif
if [ir1_swing] == 0
if [ir_swingtemp] == 1
[lighttime] = 00h
[light2s] = 1
endif
endif
;[light2s] = 1
endif
;[ir_swingtemp] = [ir1_swing]
if [ir1_swing] == 1
[ir_swingtemp] = 1
else
[ir_swingtemp] = 0
endif
else
if [ir1light_hrp] == 1
[ir1_light] = 1
else
[ir1_light] = 0
endif
endif
rts
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -