当前位置:网站首页>LM small programmable controller software (based on CoDeSys) note 20: PLC controls stepping motor through driver
LM small programmable controller software (based on CoDeSys) note 20: PLC controls stepping motor through driver
2022-07-01 04:27:00 【Gutie_ bartholomew】
basic data :
wiring method :
Practical application cases of the drive _Gutie_bartholomew The blog of -CSDN Blog
I use plc The board model is ADH164-A, After burning the program , The motor rotates clockwise .
Input :
en: Can make
axis: I connect here with plc Of qx04, The query shows that , Corresponding to 3
target: Here is an absolute number , Input 10000, Then send 10000 Pulse , Input -10000, Or send 10000 Pulse , And the direction will not change , Unless it changes qx05.
vmax and acctime Is the parameter of the motor
Output :
active It is used to display the running state of the motor , If it's running , The output 1,ptot Will attract , If it does not run or ends running, it will output 0,ptot Will disconnect .
Once the operation starts ,cv From 0 Start counting , The target is a positive number , It comes from 0 To a positive number , The target is negative , It comes from 0 To a negative number
error Is the alarm output
plc Program :
Global variables :
qx05 It is used to control positive and negative rotation ,
fx by 1 when ,qx05 Imbibition , The motor rotates clockwise
fx by 0 when ,qx05 Nonabsorbent , The motor rotates counterclockwise
qx20 The relay acts with sound , To observe plc Working condition
qx04 Corresponding axis=3
边栏推荐
- Hololens2 development environment building and deploying apps
- Procurement intelligence is about to break out, and Alipay'3+2'system helps enterprises build core competitive advantages
- selenium打开chrome浏览器时弹出设置页面:Mircrosoft Defender 防病毒要重置您的设置
- Knowledge supplement: redis' basic data types and corresponding commands
- HoloLens2开发环境搭建及部署app
- OdeInt與GPU
- Coinbase in a bear market: losses, layoffs, stock price plunges
- Possible problems and solutions of using scroll view to implement slider view
- 2022年聚合工艺考试题及模拟考试
- This may be your last chance to join Tencent
猜你喜欢
Jenkins automatically cleans up construction history
Concurrent mode of different performance testing tools
Offline installation of Wireshark 2.6.10
Introduction of Spock unit test framework and its practice in meituan optimization___ Chapter I
测量三相永磁同步电机的交轴直轴电感
小程序中自定义组件
Internet winter, how to spend three months to make a comeback
MySQL advanced -- you will have a new understanding of MySQL
Odeint et GPU
OdeInt與GPU
随机推荐
25.k sets of flipped linked lists
OSPF notes [multiple access, two multicast addresses with OSPF]
2022 gas examination question bank and online simulation examination
使用scroll-view实现滑块视图可能遇到的问题及其解决方法
Valid @suppresswarnings warning name
离线安装wireshark2.6.10
LeetCode 1828. Count the number of points in a circle
【无标题】
Obtain detailed ideas for ABCDEF questions of 2022 American Games
LeetCode 1400. Construct K palindrome strings
How to do the performance pressure test of "Health Code"
小程序中自定义组件
Unity之三维空间多点箭头导航
JMeter learning notes 2 - brief introduction to graphical interface
One job hopping up 8K, three times in five years
674. longest continuous increasing sequence force buckle JS
[godot] unity's animator is different from Godot's animplayer
TASK04|数理统计
Tencent has five years of testing experience. It came to the interview to ask for 30K, and saw the so-called software testing ceiling
Loop filtering based on Unet