QMCL语言使用说明书
声明:您必须遵守我们的协议,如果您下载了该资源行为将被视为对《电天下账号管理规范》全部内容的认可,本网站资源来自原创,仅供用于学习和交流,请勿用于商业用途。如有侵权、不妥之处,请举报本资源,我们将及时审核处理!
QMCL语言使用说明书。
文本预览
QMCL语言2.1 For C3X6.0以上
使用说明书
QMCL 语言
时光科技有限公司
www.thtbase.com
1QMCL语言2.1 For C3X6.0以上
目 录
1 QMCL 说明............................................................................................................................5
2 QMCL详解..............................................................................................................................9
2.1 变量.........................................................................................................................................................9
2.1.1 字节用户变量 (A0~A9,B0~B9).......................................................................................9
2.1.2 特殊用户变量 (AA~AF,BA~BF)...........................................................................................9
2.1.3 系统变量..........................................................................................................................................9
2.2 输入输出指令.......................................................................................................................................10
2.2.1 输出指令........................................................................................................................................10
2.2.2 输入指令........................................................................................................................................10
2.3 显示.......................................................................................................................................................11
2.4 数值指定...............................................................................................................................................12
2.5 四则运算及逻辑运算指令...................................................................................................................12
2.6 内存直接处理(读写)指令.....................................................................................................................14
2.7 电机控制的指令...................................................................................................................................15
2.7.1 压频比设定(VFA).....................................................................................................................15
2.7.2 转矩限幅/转矩指令/偏置电压设定(VFB)...............................................................................15
2.7.3 加减速时的频率变化速率设定(SFT)......................................................................................16
2.7.4 频率设定(HZP).........................................................................................................................16
2.7.5 目标位置设定(POS).................................................................................................................16
2.7.6 定位控制时的频率上限设定(MAXHZ)..................................................................................16
2.7.7 定位控制时的爬行频率设定(MINHZ)...................................................................................17
2.7.8 电机通断电控制指令(SEVCC)................................................................................................17
2.7.9 定位指令设定(PSG).................................................................................................................18
2.8 定时指令...............................................................................................................................................20
2.9 跳转指令...............................................................................................................................................20
2.9.1 子程序跳转(JSR)......................................................................................................................20
2.9.2 无条件跳转(JMP).....................................................................................................................20
2.9.3 条件跳转........................................................................................................................................20
2.9.4 相对跳转指令(BRA)................................................................................................................21
2.9.5 定时子程序调用指令(ONTIM1和ONTIM2).........................................................................21
2.9.6 特殊跳转(CALL)......................................................................................................................21
2.10 返回指令.............................................................................................................................................22
2.10.1 返回指令(RTS).......................................................................................................................22
2.10.2 禁止返回指令(OFFRTS)........................................................................................................22
2.10.3 清除返回指令(AOFRTS).......................................................................................................22
2.11 启动、停止指令.................................................................................................................................22
2QMCL语言2.1 For C3X6.0以上
2.11.1 启动指令......................................................................................................................................22
2.11.2 停止指令(STOP)....................................................................................................................22
2.11.3 复位指令......................................................................................................................................22
2.12 通讯指令.............................................................................................................................................23
3 QMCL程序编程注意事项....................................................................................................24
3.1 运算指令的执行顺序...........................................................................................................................24
3.2 负数的表示...........................................................................................................................................24
3.3 四则运算中4字节变量的辨别...........................................................................................................24
3.4 小数运算...............................................................................................................................................25
3.5 除法.......................................................................................................................................................25
3.6 乘法.......................................................................................................................................................25
3.7 PLS的初始值........................................................................................................................................25
3.8 编程.......................................................................................................................................................26
4 指令执行的原理.....................................................................................................................27
4.1 程序的构成...........................................................................................................................................27
5 键盘显示器.............................................................................................................................28
5.1 键盘显示器状态...................................................................................................................................28
5.2 键盘显示器功能键的名称及功能.......................................................................................................29
5.3 功能键的操作.......................................................................................................................................31
5.4 参数编辑方法.......................................................................................................................................32
5.4.1 参数编辑状态的进入与退出........................................................................................................32
5.4.2 系统参数设定方法........................................................................................................................34
5.4.3 用户参数设定方法........................................................................................................................35
5.4.4 直接地址内容操作........................................................................................................................35
5.5 QMCL程序的输入方法.......................................................................................................................36
6 关于IMS 伺服的串行通讯...................................................................................................39
6.1 串行通讯协议.......................................................................................................................................39
6.2 与串行通讯有关的系统参数设定.......................................................................................................40
6.2.1 串行通讯通道号(系统参数No.9)............................................................................................40
6.2.2 串行通讯参数设定1(系统参数No.10)...................................................................................41
6.2.3 串行通讯参数设定2(系统参数No.30)...................................................................................42
6.2.4 串行通讯错误信息(地址参数$F01B).....................................................................................42
6.3 串行通讯的错误信息的监视...............................................................................................................43
6.4 对主机的主动通讯...............................................................................................................................43
6.5 串行通讯注意事项...............................................................................................................................43
7 故障信息.................................................................................................................................44
7.1 硬件上发生的故障...............................................................................................................................44
7.2 参数设置上的故障...............................................................................................................................44
3QMCL语言2.1 For C3X6.0以上
7.3 QMCL程序中的故障............................................................................................................................44
8. QMCL支持软件【QMCL STUDIO】..............................................................................46
8.1 软件主要功能概述...............................................................................................................................46
8.1.1 参数与变量模块............................................................................................................................46
8.1.2 QMCL程序编辑与编译模块.........................................................................................................46
8.1.3 QMCL程序传送模块.....................................................................................................................47
8.1.4 故障历史信息查询模块................................................................................................................47
8.1.5 自定义通讯模块............................................................................................................................47
8.2 软件安装...............................................................................................................................................48
8.2.1 软件安装与运行环境....................................................................................................................48
8.2.2 软件安装说明................................................................................................................................48
8.3 操作主界面...........................................................................................................................................51
8.4 参数与变量模块的操作.......................................................................................................................52
8.4.1 变量A0-BF内容的动态监视和修改.............................................................................................52
8.4.2 系统变量内容的动态监视和修改................................................................................................52
8.4.3 I/O回路和模拟量输入/输出的动态监视......................................................................................53
8.4.6 系统参数读取、设定与存档........................................................................................................55
使用说明书
QMCL 语言
时光科技有限公司
www.thtbase.com
1QMCL语言2.1 For C3X6.0以上
目 录
1 QMCL 说明............................................................................................................................5
2 QMCL详解..............................................................................................................................9
2.1 变量.........................................................................................................................................................9
2.1.1 字节用户变量 (A0~A9,B0~B9).......................................................................................9
2.1.2 特殊用户变量 (AA~AF,BA~BF)...........................................................................................9
2.1.3 系统变量..........................................................................................................................................9
2.2 输入输出指令.......................................................................................................................................10
2.2.1 输出指令........................................................................................................................................10
2.2.2 输入指令........................................................................................................................................10
2.3 显示.......................................................................................................................................................11
2.4 数值指定...............................................................................................................................................12
2.5 四则运算及逻辑运算指令...................................................................................................................12
2.6 内存直接处理(读写)指令.....................................................................................................................14
2.7 电机控制的指令...................................................................................................................................15
2.7.1 压频比设定(VFA).....................................................................................................................15
2.7.2 转矩限幅/转矩指令/偏置电压设定(VFB)...............................................................................15
2.7.3 加减速时的频率变化速率设定(SFT)......................................................................................16
2.7.4 频率设定(HZP).........................................................................................................................16
2.7.5 目标位置设定(POS).................................................................................................................16
2.7.6 定位控制时的频率上限设定(MAXHZ)..................................................................................16
2.7.7 定位控制时的爬行频率设定(MINHZ)...................................................................................17
2.7.8 电机通断电控制指令(SEVCC)................................................................................................17
2.7.9 定位指令设定(PSG).................................................................................................................18
2.8 定时指令...............................................................................................................................................20
2.9 跳转指令...............................................................................................................................................20
2.9.1 子程序跳转(JSR)......................................................................................................................20
2.9.2 无条件跳转(JMP).....................................................................................................................20
2.9.3 条件跳转........................................................................................................................................20
2.9.4 相对跳转指令(BRA)................................................................................................................21
2.9.5 定时子程序调用指令(ONTIM1和ONTIM2).........................................................................21
2.9.6 特殊跳转(CALL)......................................................................................................................21
2.10 返回指令.............................................................................................................................................22
2.10.1 返回指令(RTS).......................................................................................................................22
2.10.2 禁止返回指令(OFFRTS)........................................................................................................22
2.10.3 清除返回指令(AOFRTS).......................................................................................................22
2.11 启动、停止指令.................................................................................................................................22
2QMCL语言2.1 For C3X6.0以上
2.11.1 启动指令......................................................................................................................................22
2.11.2 停止指令(STOP)....................................................................................................................22
2.11.3 复位指令......................................................................................................................................22
2.12 通讯指令.............................................................................................................................................23
3 QMCL程序编程注意事项....................................................................................................24
3.1 运算指令的执行顺序...........................................................................................................................24
3.2 负数的表示...........................................................................................................................................24
3.3 四则运算中4字节变量的辨别...........................................................................................................24
3.4 小数运算...............................................................................................................................................25
3.5 除法.......................................................................................................................................................25
3.6 乘法.......................................................................................................................................................25
3.7 PLS的初始值........................................................................................................................................25
3.8 编程.......................................................................................................................................................26
4 指令执行的原理.....................................................................................................................27
4.1 程序的构成...........................................................................................................................................27
5 键盘显示器.............................................................................................................................28
5.1 键盘显示器状态...................................................................................................................................28
5.2 键盘显示器功能键的名称及功能.......................................................................................................29
5.3 功能键的操作.......................................................................................................................................31
5.4 参数编辑方法.......................................................................................................................................32
5.4.1 参数编辑状态的进入与退出........................................................................................................32
5.4.2 系统参数设定方法........................................................................................................................34
5.4.3 用户参数设定方法........................................................................................................................35
5.4.4 直接地址内容操作........................................................................................................................35
5.5 QMCL程序的输入方法.......................................................................................................................36
6 关于IMS 伺服的串行通讯...................................................................................................39
6.1 串行通讯协议.......................................................................................................................................39
6.2 与串行通讯有关的系统参数设定.......................................................................................................40
6.2.1 串行通讯通道号(系统参数No.9)............................................................................................40
6.2.2 串行通讯参数设定1(系统参数No.10)...................................................................................41
6.2.3 串行通讯参数设定2(系统参数No.30)...................................................................................42
6.2.4 串行通讯错误信息(地址参数$F01B).....................................................................................42
6.3 串行通讯的错误信息的监视...............................................................................................................43
6.4 对主机的主动通讯...............................................................................................................................43
6.5 串行通讯注意事项...............................................................................................................................43
7 故障信息.................................................................................................................................44
7.1 硬件上发生的故障...............................................................................................................................44
7.2 参数设置上的故障...............................................................................................................................44
3QMCL语言2.1 For C3X6.0以上
7.3 QMCL程序中的故障............................................................................................................................44
8. QMCL支持软件【QMCL STUDIO】..............................................................................46
8.1 软件主要功能概述...............................................................................................................................46
8.1.1 参数与变量模块............................................................................................................................46
8.1.2 QMCL程序编辑与编译模块.........................................................................................................46
8.1.3 QMCL程序传送模块.....................................................................................................................47
8.1.4 故障历史信息查询模块................................................................................................................47
8.1.5 自定义通讯模块............................................................................................................................47
8.2 软件安装...............................................................................................................................................48
8.2.1 软件安装与运行环境....................................................................................................................48
8.2.2 软件安装说明................................................................................................................................48
8.3 操作主界面...........................................................................................................................................51
8.4 参数与变量模块的操作.......................................................................................................................52
8.4.1 变量A0-BF内容的动态监视和修改.............................................................................................52
8.4.2 系统变量内容的动态监视和修改................................................................................................52
8.4.3 I/O回路和模拟量输入/输出的动态监视......................................................................................53
8.4.6 系统参数读取、设定与存档........................................................................................................55
AIGC
在电气行业中,"QMCL语言使用说明书"通常指的是针对特定的电力系统自动化、变配电设备控制或电机控制等领域中,采用的一种专用编程语言——Quantum Motion Control Language(量子运动控制语言)的用户手册或者技术文档。这本说明书详细阐述了如何运用QMCL进行设备参数设置、逻辑控制程序编写、功能调用以及错误处理等相关操作,以便用户能够有效地配置和操控电气控制系统,实现精准的设备运行和维护。对于初次接触该语言或对相关系统不熟悉的操作人员来说,阅读并遵循QMCL语言使用说明书至关重要。