News:

  • June 11, 2026, 04:26:32 AM

Login with username, password and session length

Author Topic: Change value of CNT  (Read 10549 times)

casselbrewery

  • Newbie
  • *
  • Posts: 2
Change value of CNT
« on: August 25, 2013, 10:37:45 AM »
Hi!

First time using a DL PLC, have some experience with Click! PLC but the prog. software is different and not as user friendly as the clicksoft.

ANyway, we have a bottle rinser which has 2 sensors that counts the bottle as the enter and exit the rinser from the conveyor. Right now it counts 13 bottles then the rinsing comes and pickup the bottle to be rinsed. It works no problem. Thing is I need to change the value to 16. Direct Soft shows this in a box :

CTN
    CT0
    V4041
    0
    13

The 0 goes up as the bottle pass by the sensor, at 13 relays are triggered to activate the rinsing. How the hell do I change the 13 value to 16??? I spent well over 2 hours and can't find what should be an easy edit window to change this value. IN click! plc prog software once you double click a box it shows you all available options.

Any help would be greatly appreciated!

Thanks! ???

b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: Change value of CNT
« Reply #1 on: August 25, 2013, 12:23:18 PM »
The preset for this counter is stored in memory location V4041. From Directsoft, while online, you can modify its contents in a few ways.

Open 'Tools' - 'Memory Editor'. Use the 'Find' button to enter V4041. Its value will show up in the top entry on the left side. Its display format will probably default to 'Hex/BCD' (indicated by the 'X'). Type in a new value. Then press the 'Arrow Pointing toward PLC' button, the lower right of the cluster of 4 buttons. To also save this new value to your hard drive press the upper right button.

Press the 'Change Value' button (fifth from the left on the lower of the two rows of buttons.) Change the top entry to V4041. The current value will show up. Enter a new value then send to the PLC in the same manner as using the 'Memory Editor' tool above.

Open a new Datatable (fourth button from the left on the lower row of buttons.) Under 'Element' type 'V4041'. Click on 'Status' (third button from the left on the lower row of buttons). This should show the current value under the 'Status' column. Now click the 'E' button (Edit) on the left of the header of the datatable. This opens another column titled 'Edits' where you can enter the new value and press 'Enter'. Since the cursor will have moved down a row click back on your new entry. Now click the enabled 'Write Current Edits'. This will send the value to the PLC and it will update the 'Status'.
An output is a PLC's way of getting its inputs to change.

casselbrewery

  • Newbie
  • *
  • Posts: 2
Re: Change value of CNT
« Reply #2 on: August 25, 2013, 02:18:57 PM »
Thanks b_carlton! that worked perfectly!

b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: Change value of CNT
« Reply #3 on: August 25, 2013, 04:50:14 PM »
For more information on online data monitoring and changing refer to chapter 10 of the User Manual.

It is installed along with the Directsoft program. Assuming you used the default location it can be found at C:\Directsoft5\Help\D5-User-Manual.pdf
An output is a PLC's way of getting its inputs to change.