Click here to Skip to main content
Rate this: bad
good
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
Edited 2-Jan-13 17:07pm
v2
Comments
aspnet_regiis -i at 2-Jan-13 8:14am
   
Oh.. It is code? I thought its scrap....
Sergey Alexandrovich Kryukov at 2-Jan-13 16:03pm
   
Apparently, the letter 's' in the last word looks quite foreign here. :-)
—SA
Abhinav S at 2-Jan-13 8:27am
   
Your question is quite unclear.
San Dra at 2-Jan-13 10:02am
   
It's not w web language either
Sergey Alexandrovich Kryukov at 2-Jan-13 16:06pm
   
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 at 2-Jan-13 10:03am
   
Do you want to know the name of that language or what?
Sergey Alexandrovich Kryukov at 2-Jan-13 16:04pm
   
No, thank you very much. You are still welcome to ask some question which is not such an abuse though...
—SA
Sandeep Mewara at 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
0 Sergey Alexandrovich Kryukov 305
1 OriginalGriff 225
2 DamithSL 130
3 Kornfeld Eliyahu Peter 130
4 Peter Leow 95
0 OriginalGriff 7,355
1 DamithSL 5,199
2 Sergey Alexandrovich Kryukov 4,942
3 Maciej Los 4,906
4 Kornfeld Eliyahu Peter 4,514


Advertise | Privacy | Mobile
Web01 | 2.8.141223.1 | Last Updated 11 Mar 2013
Copyright © CodeProject, 1999-2014
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