当前位置:网站首页>LM小型可编程控制器软件(基于CoDeSys)笔记二十三:伺服电机运行(步进电机)相对坐标转换为绝对坐标
LM小型可编程控制器软件(基于CoDeSys)笔记二十三:伺服电机运行(步进电机)相对坐标转换为绝对坐标
2022-07-07 01:39:00 【Gutie_bartholomew】
FUNCTION_BLOCK LSteppingMotor
VAR_INPUT
INPUT1: BOOL;(*工作标志*)
INPUT2: BOOL;(*工作标志*)
INPUT3: DINT;(*工作标志*)
Origin: BOOL;(*原点*)
Axis:BYTE; (*输出选择,1, QX0.0 2 QX0.3*)
Target:DINT; (*目标设定值*)
VMax:DWORD; (*最高频率y*)
ACCTime:WORD; (*加减速时间 (ms)*)
END_VAR
VAR_OUTPUT
OUT1: BOOL; (*控制方向*)
CV2: DINT; (*坐标值*)
PTO_X: BOOL;(**)
END_VAR
VAR
ADH164_PTO: ADH164_PTO;
EN_R:BOOL; (*enable bit*)
DIR_CTRL:BOOL; (*input connet with direction,don't use temporary*)
INT_EN:BOOL; (*interrupt enable bit *)
CV:DINT; (*pulse number have finished*)
Error:BYTE; (*error word*)
R_TRIG1: R_TRIG;
M1: BOOL;
TON1: TON;
Target_1: DINT;
m2: BOOL;
CV1: DINT;
PTO_X1: BOOL;
TON2: TON;
R_TRIG2: R_TRIG;
F_TRIG1: F_TRIG;
S2: BOOL;
M3: BOOL;
END_VAR
VAR RETAIN
Mode: BYTE := 1; (*motion mode*)
END_VAR




边栏推荐
- JVM命令之 jstat:查看JVM统计信息
- ML's shap: Based on the adult census income binary prediction data set (whether the predicted annual income exceeds 50K), use the shap decision diagram combined with the lightgbm model to realize the
- 深度聚类:将深度表示学习和聚类联合优化
- 【FPGA教程案例14】基于vivado核的FIR滤波器设计与实现
- cf:C. Column Swapping【排序 + 模拟】
- Go language learning notes - Gorm use - Gorm processing errors | web framework gin (10)
- Jstat pour la commande JVM: voir les statistiques JVM
- [SQL practice] a SQL statistics of epidemic distribution across the country
- Cloud acceleration helps you effectively solve attack problems!
- 3531. 哈夫曼树
猜你喜欢

苹果cms V10模板/MXone Pro自适应影视电影网站模板

693. 行程排序

JVM命令之- jmap:导出内存映像文件&内存使用情况

外设驱动库开发笔记43:GPIO模拟SPI驱动

Financial risk control practice - decision tree rule mining template
![A freshman's summary of an ordinary student [I don't know whether we are stupid or crazy, but I know to run forward all the way]](/img/fd/7223d78fff54c574260ec0da5f41d5.png)
A freshman's summary of an ordinary student [I don't know whether we are stupid or crazy, but I know to run forward all the way]

ML's shap: Based on the adult census income binary prediction data set (whether the predicted annual income exceeds 50K), use the shap decision diagram combined with the lightgbm model to realize the

ETCD数据库源码分析——从raftNode的start函数说起

win系统下安装redis以及windows扩展方法

PowerPivot - DAX (function)
随机推荐
Rk3399 platform development series explanation (interruption) 13.10, workqueue work queue
From "running distractor" to data platform, Master Lu started the road of evolution
搞懂fastjson 对泛型的反序列化原理
职场经历反馈给初入职场的程序员
那些自损八百的甲方要求
Loss function and positive and negative sample allocation in target detection: retinanet and focal loss
SQL Server 2008 各种DateTime的取值范围
【GNN】图解GNN: A gentle introduction(含视频)
Vscode for code completion
每秒10W次分词搜索,产品经理又提了一个需求!!!(收藏)
Ctfshow-- common posture
为不同类型设备构建应用的三大更新 | 2022 I/O 重点回顾
jvm命令之 jcmd:多功能命令行
深度聚类:将深度表示学习和聚类联合优化
laravel 使用腾讯云 COS5全教程
If you don't know these four caching modes, dare you say you understand caching?
基于ADAU1452的DSP及DAC音频失真分析
When we talk about immutable infrastructure, what are we talking about
Introduction to the extension implementation of SAP Spartacus checkout process
ML's shap: Based on the adult census income binary prediction data set (whether the predicted annual income exceeds 50K), use the shap decision diagram combined with the lightgbm model to realize the