请找到并告诉我它是什么类型的代码? [英] please find and tell me what kind of code it is?

查看:123
本文介绍了请找到并告诉我它是什么类型的代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 IF NOT data.big_or_small THEN 
FOR jj:= 1 TO 4 DO
FOR ii:= 1 to 6 DO
master6_MC_CAMSWITCH_TR [ii +(jj-1 )* 12] .TrackNumber:= II;
master6_MC_CAMSWITCH_TR [ii +(jj-1)* 12] .FirstOnPosition:= INT_TO_REAL(240 *(jj-1))+ INT_TO_REAL(40 *(ii-1));
master6_MC_CAMSWITCH_TR [ii +(jj-1)* 12] .LastOnPosition:= INT_TO_REAL(240 *(jj-1))+ INT_TO_REAL(40 *(ii-1))+ data.quyang_pos;
END_FOR
END_FOR
ELSE
FOR jj:= 1 TO 2 DO
FOR ii:= 1 to 6 DO
master6_MC_CAMSWITCH_TR [ii +(jj-1 )* 12] .TrackNumber:= II;
master6_MC_CAMSWITCH_TR [ii +(jj-1)* 12] .FirstOnPosition:= INT_TO_REAL(480 *(jj-1))+ INT_TO_REAL(80 *(ii-1));
master6_MC_CAMSWITCH_TR [ii +(jj-1)* 12] .LastOnPosition:= INT_TO_REAL(480 *(jj-1))+ INT_TO_REAL(80 *(ii-1))+ data.quyang_pos;
END_FOR
END_FOR
END_IF
updown_MC_MoveVelocity(
执行:= M_R_TRIG2.Q,
速度:= Data.g_r_updownvelocity_M,
加速度:= 1000,
减速:= 1000,
方向:=,
轴:=上升,
InVelocity => ;,
CommandAborted => ;,
错误=> ;,
ErrorID =>);

解决方案

我认为您需要查看 PLC编程(可编程逻辑控制器)





Beckhoff PLC培训系列



TwinCAT PLC编程



一个youtube视频..





我跳e它将帮助你开始...


这是一种工业控制器(PLC,伺服控制等)的IEC-61131-3定义的语言。更多信息可以在这里找到:



http://en.wikipedia.org/wiki / IEC_61131-3



用于这种语言的#1编译器来自Codesys:



http://www.codesys.com/

IF NOT data.big_or_small THEN
FOR jj:=1 TO 4 DO
FOR ii :=1 TO 6 DO
master6_MC_CAMSWITCH_TR[ii+(jj-1)*12].TrackNumber:=ii;
master6_MC_CAMSWITCH_TR[ii+(jj-1)*12].FirstOnPosition:=INT_TO_REAL(240*(jj-1))+INT_TO_REAL(40*(ii-1));
master6_MC_CAMSWITCH_TR[ii+(jj-1)*12].LastOnPosition:=INT_TO_REAL(240*(jj-1))+INT_TO_REAL(40*(ii-1))+data.quyang_pos;
END_FOR
END_FOR
ELSE
FOR jj:=1 TO 2 DO
FOR ii :=1 TO 6 DO
master6_MC_CAMSWITCH_TR[ii+(jj-1)*12].TrackNumber:=ii;
master6_MC_CAMSWITCH_TR[ii+(jj-1)*12].FirstOnPosition:=INT_TO_REAL(480*(jj-1))+INT_TO_REAL(80*(ii-1));
master6_MC_CAMSWITCH_TR[ii+(jj-1)*12].LastOnPosition:=INT_TO_REAL(480*(jj-1))+INT_TO_REAL(80*(ii-1))+data.quyang_pos;
END_FOR
END_FOR
END_IF
updown_MC_MoveVelocity(
Execute:= M_R_TRIG2.Q ,
Velocity:= Data.g_r_updownvelocity_M,
Acceleration:= 1000,
Deceleration:= 1000,
Direction:= ,
Axis:= updown,
InVelocity=> ,
CommandAborted=> ,
Error=> ,
ErrorID=> );

解决方案

i think that you need to look at PLC Programming (Programmable Logic Controller)


Beckhoff PLC Training Series

TwinCAT PLC programming

a youtube video..


I hope that it will help you to start ...


It is a language defined as IEC-61131-3 for industrial controlers (PLCs, Servo controls etc.) More info can be found here:

http://en.wikipedia.org/wiki/IEC_61131-3

The #1 compiler used for this language is from Codesys:

http://www.codesys.com/


这篇关于请找到并告诉我它是什么类型的代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆