Author Topic: HSC in cusfn  (Read 10667 times)

artkraft

  • Newbie
  • Posts: 22
  • I'm a llama!
    • View Profile
HSC in cusfn
« on: February 20, 2016, 03:39:48 PM »
what is the purpose of // in a cusfn.
 I am measuring the thickness of my material with an encoder. Desired control thickness is set with HMI and stored in DM[309]. When HSC2 < SV I want to send step pulses until it is > SV.
CusFn #13 see attached file.









support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3148
    • View Profile
    • Internet Programmable PLCs
Re:HSC in cusfn
« Reply #1 on: February 21, 2016, 12:29:21 PM »
// is an alternative marker for COMMENTS. It is the same as single quote or REM. This is borrowed from C++. You can also use the /* and */ to comment out an entire block of codes. This is also borrowed from C/C++ language.
« Last Edit: February 21, 2016, 12:29:40 PM by support »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

BetterBath

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: HSC in cusfn
« Reply #2 on: October 27, 2022, 06:25:04 AM »
I learned a little c++, so this topic seemed a bit familiar to me. Thank you for sharing.
Junk removalPet sitting Port St Lucie, Fl

jkoenzuraida

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: HSC in cusfn
« Reply #3 on: October 29, 2022, 05:08:01 AM »
I am still learning this but still struggling. I will work on getting this figured out when I get done with my job at Pressure Washing Augusta Georgia