Author Topic: HSC in cusfn  (Read 2442 times)

artkraft

  • Newbie
  • Posts: 19
  • I'm a llama!
    • View Profile
HSC in cusfn
« on: February 20, 2016, 11: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: 3102
    • View Profile
    • Internet Programmable PLCs
Re:HSC in cusfn
« Reply #1 on: February 21, 2016, 08: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, 08:29:40 PM by support »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS