Click here to Skip to main content
12,621,477 members (29,178 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: Automation
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=> );
Posted 2-Jan-13 2:57am
Updated 2-Jan-13 17:07pm
v2
Comments
aspnet_regiis -i 2-Jan-13 8:14am
   
Oh.. It is code? I thought its scrap....
   
Apparently, the letter 's' in the last word looks quite foreign here. :-)
—SA
Abhinav S 2-Jan-13 8:27am
   
Your question is quite unclear.
San Dra 2-Jan-13 10:02am
   
It's not w web language either
   
For your information, the syntax reminds Algol or Pascal, with a number of syntax bugs... There is absolutely no sense in considering such posts.
—SA
San Dra 2-Jan-13 10:03am
   
Do you want to know the name of that language or what?
   
No, thank you very much. You are still welcome to ask some question which is not such an abuse though...
—SA
Sandeep Mewara 2-Jan-13 22:22pm
   
Looks like some proprietary language. It would had been good if you shared some history around it and why/what exactly you are looking for.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

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 ...
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

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/
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.161128.1 | Last Updated 11 Mar 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100