当前位置:网站首页>倍福PLC通过MC_ReadParameter读取NC轴的配置参数
倍福PLC通过MC_ReadParameter读取NC轴的配置参数
2022-06-26 12:38:00 【黄昏和星空】
在实际开发中需要读取轴的比例因子Scaling Factor、旋转方向等NC参数。本文介绍通过MC_ReadParameter功能块读取System Manager中NC轴的参数。
- 操作流程
1.1. 倍福Beckhoff
1.1.1. MC_ReadParameter介绍
该功能块是用于读取轴的设置NC参数,但不是用于读取驱动器参数。所谓NC参数即在NC界面中设置的相关参数,如下所示
功能块的说明如下
其中ParameterNumber表示获取的索引号,结构如下所示
AxisId := 1000, 表示基本数字是1000,然后往下数进行偏移,比如AxisEncoderScalingFactor为1041, AxisEncoderDirectionInverse为1043
1.1.1. PLC程序编写
本文以获取编码因子Scaling Factor和旋转方向Invert Encoder为例,如下
首先声明功能块,如下所示
边栏推荐
猜你喜欢
The El form item contains two inputs. Verify the two inputs
power designer - 自定义注释按钮
processing 函数translate(mouseX, mouseY)学习
.NET MAUI 性能提升
File remote synchronization and backup artifact Rsync
第十章 设置结构化日志记录(二)
RSS rendering of solo blog system failed
Redis learning - 02 common data types, operation commands and expiration time
National standard gb28181 protocol easygbs video platform TCP active mode streaming exception repair
Less than 40 lines of code to create a blocprovider
随机推荐
黑马笔记---常用API
JS get the current screen height method and listen for DOM elements to enter the viewport
National standard gb28181 protocol easygbs video platform TCP active mode streaming exception repair
深入解析 MySQL binlog
File remote synchronization and backup artifact Rsync
MySQL 自定义函数时:This function has none of DETERMINISTIC, NO SQL 解决方案
Websocket and socket IO case practice
7-16 货币系统Ⅰ
[BSidesCF 2019]Kookie 1
KITTI Tracking dataset whose format is letf_top_right_bottom to JDE normalied xc_yc_w_h
Deeply analyze the differences between dangbei box B3, Tencent Aurora 5S and Xiaomi box 4S
Go 结构体方法
Splunk iowait 报警的解决
Function collapse and expansion shortcut keys in vscode (latest and correct)
TP5 thinkphp5 extension package think Mongo operation mongodb time interval range query
记一次phpcms9.6.3漏洞利用getshell到内网域控
一个快速切换一个底层实现的思路分享
710. 黑名单中的随机数
Photoshop 2022 23.4.1增加了哪些功能?有知道的吗
美学心得(第二百三十八集) 罗国正