Author Topic: HSC in cusfn  (Read 24481 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: 3174
    • 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: 18
    • 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, FlPressurewashingpowerroofinghandyman
« Last Edit: December 06, 2023, 01:52:58 AM by BetterBath »