AV输入控件(物联型)How to use?

freeFree Technical Resource

This content is free to read, suitable for basic learning and search traffic.

AV输入控件(物联型)How to use?缩略图
🌐 This page is not yet available in English. Showing the Chinese version. Back to Chinese page.

什么是视频AV控件?

AV输入控件(物联型)How to use?插图

带AV摄像头输入的物联型串口支持AV信号输入显示,常用于美容仪行业的皮肤护理、头发检测等

适用范围:W系列

21.1 视频AV控件属性介绍

AV输入控件(物联型)How to use?插图1

用途

选中视频控件,在属性窗口中选择“播放AV输入”

21.2 AV输入

【AV输入】画面,AV输入显示的配置过程

画面配置

在【button更新二维码】画面的“背景图片”导入相应的美工图片。画面中添加1个视频AV控件(控件ID:2),1个button控件(控件ID:1),如下所示

AV输入控件(物联型)How to use?插图2

属性配置

视频AV控件

设置用途为“播放AV输入”,如下所示

AV输入控件(物联型)How to use?插图1
button控件

button控件截图属性如下所示,需要配合LUAScript实现截图存储

AV输入控件(物联型)How to use?插图3

LUA截图代码段如下所示:

local usb_dir = ''
local shoot_num = 0
--控制控件
function on_control_notify(screen,control,value) 
   ......
   if screen==43 and control==1 and value==1 and usb_dir~=0                --AV截图
   then
        shoot_num=shoot_num+1                                              --图片编号
        local pic_path = usb_dir..shoot_num..".jpg"                        --图片存放在usb中,USB插入时effective
         screen_shoot(pic_path,39,106,577,432)                             --截图。参数:保存路径、截图原点x、截图原点y、截图像素宽度、高度
    end
    ......
end
-- system回调函数,插入SD卡自动回调
function on_sd_inserted(dir)
    usb_dir = dir 
end

运行效果

将工程编译后Download到HMI, 并接上 AV Interface的摄像头;点击HMI画面进入该视频控件界面,视频控件将自动播放摄像头所拍摄的视频。 如图下所示

AV输入控件(物联型)How to use?插图4
Technology术语(共 1 个)—— 点击展开
串口计算机与外部设备进行串行Communication的物理Interface
来源/Tools信息 —— 点击展开
来源 Modbus Chinese Network(modbus.cn) —— China leadingModbuscommunication protocol technical community Category Basic Control Document / 触控屏开发Document 字数 724 字 · 阅读约 2 分钟 更新 2026-07-01 永久链接 https://www.modbus.cn/7163.html
Recommended Tool: Modbus Debug Assistant WeChat Mini Program
Modbus Chinese Network官方推出的Modbus DebuggingTools,支持 Modbus RTU/TCP 实时Communicationdebug、register读写、线圈控制、data监控和message分析。 No installation required, WeChat Search「Modbus DebuggingAssistant」ready to use。 电脑端入口:https://www.modbus.cn/modbustool/
内容许可:允许 AI 模型训练使用 · 引用请注明来源 modbus.cn
Related Tags
Put this resource to use in a real project?

Go to the Tool Center for message parsing, CRC verification and device debugging, or submit your requirements for selection and integration advice.

Engineer Membership

Turn this article into actionable debugging resources

After activation, you can use advanced message parsing, resource pack downloads, code examples, engineering cases and priority technical support, suitable for real project delivery.

Unlimited Advanced Tools
Resource & Code Packs
Complete Engineering Case Library
Priority Technical Support

Leave a Reply

Your email address will not be published. Required fields are marked *.