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




边栏推荐
- JVM in-depth
- [SOC FPGA] custom IP PWM breathing lamp
- POI导出Excel:设置字体、颜色、行高自适应、列宽自适应、锁住单元格、合并单元格...
- Go language learning notes - Gorm use - native SQL, named parameters, rows, tosql | web framework gin (IX)
- Overview of FlexRay communication protocol
- Jmeter自带函数不够用?不如自己动手开发一个
- 进程间通信之共享内存
- Crudini 配置文件编辑工具
- Three updates to build applications for different types of devices | 2022 i/o key review
- win系统下安装redis以及windows扩展方法
猜你喜欢

Implementation of VGA protocol based on FPGA

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

雷特智能家居龙海祁:从专业调光到全宅智能,20年专注成就专业

Software testing knowledge reserve: how much do you know about the basic knowledge of "login security"?

Go language learning notes - Gorm use - native SQL, named parameters, rows, tosql | web framework gin (IX)

哈趣投影黑马之姿,仅用半年强势突围千元投影仪市场!
![[opencv] morphological filtering (2): open operation, morphological gradient, top hat, black hat](/img/45/f3b960e3c56f50674b0e6374cba705.png)
[opencv] morphological filtering (2): open operation, morphological gradient, top hat, black hat

开发者别错过!飞桨黑客马拉松第三期链桨赛道报名开启

Matlab / envi principal component analysis implementation and result analysis

Ideas of high concurrency and high traffic seckill scheme
随机推荐
Haqi projection Black Horse posture, avec seulement six mois de forte pénétration du marché des projecteurs de 1000 yuans!
Markdown displays pictures side by side
UIC(组态UI工程)公版文件库新增7款行业素材
@Detailed differences between pathvariable and @requestparam
c语言(结构体)定义一个User结构体,含以下字段:
学习笔记|数据小白使用DataEase制作数据大屏
The difference between string constants and string objects when allocating memory
字符串常量与字符串对象分配内存时的区别
Go language learning notes - Gorm use - native SQL, named parameters, rows, tosql | web framework gin (IX)
Jmeter自带函数不够用?不如自己动手开发一个
3428. 放苹果
Array proof during st table preprocessing
Database notes 04
直击2022ECDC萤石云开发者大会:携手千百行业加速智能升级
ceres-solver和g2o性能比较
【OpenCV】形态学滤波(2):开运算、形态学梯度、顶帽、黑帽
Redisl garbled code and expiration time configuration
蚂蚁庄园安全头盔 7.8蚂蚁庄园答案
面试中有哪些经典的数据库问题?
基于FPGA的VGA协议实现