资源描述:
《AMX中控编程程序》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、AMX中控编程程序-BOSCH-G4摄像头 2010-03-2010:29:51
2、 分类:AMX中控编程
3、字号 订阅DATA_EVENT[CAMERA]{ ONLINE: { SEND_COMMANDCAMERA,'SETBAUD2400,N,8,1485ENABLE' }}//CAMERA01BUTTON_EVENT[TP,CAMERA_ZOOM_WIDE] { PUSH: { SEND_STRINGCAMERA,"$FF,$01,$00,$40,$00,$00,$41
4、" } RELEASE: { SEND_STRINGCAMERA,"$FF,$01,$00,$00,$00,$00,$01" }}BUTTON_EVENT[TP,CAMERA_ZOOM_TELE] { PUSH: { SEND_STRINGCAMERA,"$FF,$01,$00,$20,$00,$00,$21" } RELEASE: { SEND_STRINGCAMERA,"$FF,$01,$00,$00,$00,$00,$01" }}BU
5、TTON_EVENT[TP,CAMERA_UP] { PUSH: { SEND_STRINGCAMERA,"$FF,$01,$00,$08,$00,$10,$19" } RELEASE: { SEND_STRINGCAMERA,"$FF,$01,$00,$00,$00,$00,$01" }}BUTTON_EVENT[TP,CAMERA_DOWN] { PUSH: { SEND_STRINGCAMERA,"$FF,$01,$00,$10,$00,$1
6、0,$21" } RELEASE: { SEND_STRINGCAMERA,"$FF,$01,$00,$00,$00,$00,$01" }}BUTTON_EVENT[TP,CAMERA_LEFT] { PUSH: { SEND_STRINGCAMERA,"$FF,$01,$00,$04,$10,$00,$15" } RELEASE: { SEND_STRINGCAMERA,"$FF,$01,$00,$00,$00,$00,$01" }}BU
7、TTON_EVENT[TP,CAMERA_RIGHT] { PUSH: { SEND_STRINGCAMERA,"$FF,$01,$00,$02,$10,$00,$13" } RELEASE: { SEND_STRINGCAMERA,"$FF,$01,$00,$00,$00,$00,$01" }}BUTTON_EVENT[TP,CAMERA_FOCUS_NEAR] { PUSH: { SEND_STRINGCAMERA,"$FF,$01,$01,$00
8、,$00,$00,$02" } RELEASE: { SEND_STRINGCAMERA,"$FF,$01,$00,$00,$00,$00,$01" }}BUTTON_EVENT[TP,CAMERA_FOCUS_FAR] { PUSH: { SEND_STRINGCAMERA,"$FF,$01,$00,$80,$00,$00,$81" } RELEASE: { SEND_STRINGCAMERA,"$FF,$01,$00,$00,$00,$00,$
9、01" }}BUTTON_EVENT[TP,0]{ PUSH: { SELECT { ACTIVE(BUTTON.INPUT.CHANNEL>=410ANDBUTTON.INPUT.CHANNEL<=419): { CAMERA_TEMP=BUTTON.INPUT.CHANNEL-410 PRESET_NUMBER=PRESET_NUMBER*10+CAMERA_TEMP } } }
10、}BUTTON_EVENT[TP,CAMERA_PRESET_SHOOT] { PUSH: { CAMERA_PRESET_SHOOT_JUDGE=1 PRESET_NUMBER=0 }}BUTTON_EVENT[TP,CAMERA_PRESET_SET] { PUSH: { CAMERA_PRESET_SHOOT_JUDGE=2 P