User Activity

  • Posted a comment on discussion Help on ClassicLadder

    Hi Marc! I am sorry i did not check if you responded this comments but hey! you did! I was just passing by to see if there was any improvement. I added a lot of stuff to this classic ladder project. Most of them involving sending and reading strings from serial port, string type variables and so forth. I did an HMI with QT framework and a process with SOEM (Ethercat master) that uses shared memory to communicate with classic ladder and map I/Os so control the real world with input and output modules...

  • Posted a comment on discussion Help on ClassicLadder

    Hi Mark, I added two functions i needed to the Function() function and i also noticed that if you used a constant as parameter of the function it will throw an error so i changed the Variable() function to the Term() funaction when looking for a variable %W1=ABS(-1) <- error %W1=ABS(%W2) <- works Follows the complete code arithmtype Term(void); arithmtype Function(void) { char tcFonc[ 20 ], *pFonc; int Res = 0; /* which function ? */ pFonc = tcFonc; while((unsigned int)(pFonc-tcFonc)<sizeof(tcFonc)-1...

  • Posted a comment on discussion Help on ClassicLadder

    Hi Marc, If you divide by zero the program crash.. It is not that i want to divide by zero but when you write an expression and click apply it will evaluate the expression and the program will crash (10/%w1 and %w1=0 => crash) Checking Siemens PLC if the divisor equals 0, just overide the result and set it to 0, it is better than a crash. I did the following modification in arithm_eval.cpp from if (*Expr=='/') { Expr++; Val = Term(); //Pow(); if (ErrorDesc==NULL){ Res = Res / Val; } } else if (*Expr=='%')...

View All

Personal Data

Username:
fsabbatini
Joined:
2009-04-26 02:55:45

Projects

This is a list of open source software projects that Franco Sabbaini is associated with:

  • fCad   Last Updated:

Personal Tools