当前位置:网站首页>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




边栏推荐
- Laravel uses Tencent cloud cos5 full tutorial
- ICML 2022 | 探索语言模型的最佳架构和训练方法
- 学习笔记|数据小白使用DataEase制作数据大屏
- Matlab / envi principal component analysis implementation and result analysis
- Wechat applet hides the progress bar component of the video tag
- k8s运行oracle
- 蚂蚁庄园安全头盔 7.8蚂蚁庄园答案
- A very good JVM interview question article (74 questions and answers)
- Haqi projection Black Horse posture, avec seulement six mois de forte pénétration du marché des projecteurs de 1000 yuans!
- When we talk about immutable infrastructure, what are we talking about
猜你喜欢

软件测试知识储备:关于「登录安全」的基础知识,你了解多少?

Handling hardfault in RT thread

"Parse" focalloss to solve the problem of data imbalance

JMeter function assistant - random value, random string, fixed value random extraction

uniapp开发小程序如何使用微信云托管或云函数进行云开发

Open the blue screen after VMware installation

jmeter 函数助手 — — 随机值、随机字符串、 固定值随机提取

Leite smart home longhaiqi: from professional dimming to full house intelligence, 20 years of focus on professional achievements

3428. Put apples

2022Android面试必备知识点,一文全面总结
随机推荐
Doctoral application | Professor Hong Liang, Academy of natural sciences, Shanghai Jiaotong University, enrolls doctoral students in deep learning
3531. 哈夫曼树
How to use wechat cloud hosting or cloud functions for cloud development of unapp development applet
Redisl garbled code and expiration time configuration
Ideas of high concurrency and high traffic seckill scheme
jmeter 函数助手 — — 随机值、随机字符串、 固定值随机提取
window下面如何安装swoole
C language interview to write a function to find the first public string in two strings
蚂蚁庄园安全头盔 7.8蚂蚁庄园答案
JVM monitoring and diagnostic tools - command line
基于FPGA的VGA协议实现
【GNN】图解GNN: A gentle introduction(含视频)
How to keep accounts of expenses in life
可极大提升编程思想与能力的书有哪些?
UIC (configuration UI Engineering) public file library adds 7 industry materials
go-microservice-simple(2) go-Probuffer
安装mongodb数据库
Ctfshow-- common posture
ST表预处理时的数组证明
你不知道的互联网公司招聘黑话大全