当前位置:网站首页>LM small programmable controller software (based on CoDeSys) Note 23: conversion of relative coordinates of servo motor operation (stepping motor) to absolute coordinates
LM small programmable controller software (based on CoDeSys) Note 23: conversion of relative coordinates of servo motor operation (stepping motor) to absolute coordinates
2022-07-07 06:26:00 【Gutie_ bartholomew】
FUNCTION_BLOCK LSteppingMotor
VAR_INPUT
INPUT1: BOOL;(* Work sign *)
INPUT2: BOOL;(* Work sign *)
INPUT3: DINT;(* Work sign *)
Origin: BOOL;(* origin *)
Axis:BYTE; (* Output selection ,1, QX0.0 2 QX0.3*)
Target:DINT; (* Target set point *)
VMax:DWORD; (* The highest frequency y*)
ACCTime:WORD; (* Acceleration and deceleration time (ms)*)
END_VAR
VAR_OUTPUT
OUT1: BOOL; (* Control direction *)
CV2: DINT; (* Coordinate value *)
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
边栏推荐
- Rk3399 platform development series explanation (WiFi) 5.52. Introduction to WiFi framework composition
- 360织语发布7.0新品 为党政军、央国企打造专属“统一数字工作空间”
- rt-thread 中对 hardfault 的处理
- 360 Zhiyu released 7.0 new products to create an exclusive "unified digital workspace" for the party, government and army, and central and state-owned enterprises
- 安装mongodb数据库
- [opencv] morphological filtering (2): open operation, morphological gradient, top hat, black hat
- ETCD数据库源码分析——从raftNode的start函数说起
- [FPGA] EEPROM based on I2C
- Navicat导入15G数据报错 【2013 - Lost connection to MySQL server during query】 【1153:Got a packet bigger】
- How to set up in touch designer 2022 to solve the problem that leap motion is not recognized?
猜你喜欢
POI导出Excel:设置字体、颜色、行高自适应、列宽自适应、锁住单元格、合并单元格...
Developers don't miss it! Oar hacker marathon phase III chain oar track registration opens
Find duplicate email addresses
屏幕程序用串口无法调试情况
ICML 2022 | 探索语言模型的最佳架构和训练方法
rt-thread 中对 hardfault 的处理
Ha Qu projection dark horse posture, only half a year to break through the 1000 yuan projector market!
JVM monitoring and diagnostic tools - command line
693. Travel sequencing
postgresql 数据库 timescaledb 函数time_bucket_gapfill()报错解决及更换 license
随机推荐
Developers don't miss it! Oar hacker marathon phase III chain oar track registration opens
缓存在高并发场景下的常见问题
Several key steps of software testing, you need to know
Markdown 并排显示图片
jmeter 函数助手 — — 随机值、随机字符串、 固定值随机提取
Oracle迁移中关于大容量表使用数据泵(expdp、impdp)导出导入容易出现的问题和注意事项
When we talk about immutable infrastructure, what are we talking about
JVM 全面深入
postgresql 数据库 timescaledb 函数time_bucket_gapfill()报错解决及更换 license
rt-thread 中对 hardfault 的处理
高并发大流量秒杀方案思路
港科大&MSRA新研究:关于图像到图像转换,Fine-tuning is all you need
uniapp开发小程序如何使用微信云托管或云函数进行云开发
学习笔记|数据小白使用DataEase制作数据大屏
@Detailed differences between pathvariable and @requestparam
Party A's requirements for those who have lost 800 yuan
"Parse" focalloss to solve the problem of data imbalance
Qtthread, one of many methods of QT multithreading
测试开发基础,教你做一个完整功能的Web平台之环境准备
Open the blue screen after VMware installation