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




边栏推荐
- Matlab / envi principal component analysis implementation and result analysis
- 屏幕程序用串口无法调试情况
- Developers don't miss it! Oar hacker marathon phase III chain oar track registration opens
- PostgreSQL database timescaledb function time_ bucket_ Gapfill() error resolution and license replacement
- Wechat applet hides the progress bar component of the video tag
- matlab / ENVI 主成分分析实现及结果分析
- 360织语发布7.0新品 为党政军、央国企打造专属“统一数字工作空间”
- 软件测试的几个关键步骤,你需要知道
- dolphinscheduler3.x本地启动
- Redis (I) -- getting to know redis for the first time
猜你喜欢

The difference between string constants and string objects when allocating memory

可极大提升编程思想与能力的书有哪些?

屏幕程序用串口无法调试情况

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

"Parse" focalloss to solve the problem of data imbalance

3531. Huffman tree

安装VMmare时候提示hyper-v / device defender 侧通道安全性

Open the blue screen after VMware installation

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

Shared memory for interprocess communication
随机推荐
ICML 2022 | 探索语言模型的最佳架构和训练方法
VIM mapping large K
C面试24. (指针)定义一个含有20个元素的double型数组a
Apple CMS V10 template /mxone Pro adaptive film and television website template
Implementation of VGA protocol based on FPGA
程序员的日常 | 每日趣闻
【OpenCV】形态学滤波(2):开运算、形态学梯度、顶帽、黑帽
[FPGA tutorial case 13] design and implementation of CIC filter based on vivado core
基于ADAU1452的DSP及DAC音频失真分析
"Parse" focalloss to solve the problem of data imbalance
2022 Android interview essential knowledge points, a comprehensive summary
Jcmd of JVM command: multifunctional command line
[FPGA tutorial case 14] design and implementation of FIR filter based on vivado core
JMeter's own functions are not enough? Why don't you develop one yourself
3531. Huffman tree
vim映射大K
Laravel uses Tencent cloud cos5 full tutorial
可极大提升编程思想与能力的书有哪些?
Jmeter自带函数不够用?不如自己动手开发一个
Crudini profile editing tool