Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - MatrixMan

Pages: [1]
1
Technical support / TBASIC Input On/Off Question
« on: December 07, 2019, 12:19:19 PM »
I am new to TBASIC.  I want to write a simple program that looks to see if a switch is on or off, but when I wrote it in i-TriLOGI 6.x for my FMD88 I found that the Input
  • =0 treats this as an integer instead of a boolean 0 or 1.  I guess I don't understand how the system generates the integer to know what bit to read to see when it is on or off.  Here is the code I used:


IF Input[10]=0 Then SetTimerSV 9, GetTimerSV(16)
Else SetTimerSV 9, GetTimerSV(15)
ENDIF
RETURN

The simulator seems to always return 0 whether the switch is on or off so the code doesn't work.  Also, if it is the first time I run it then it might have a 1 until I run it again and then it is back to 0 even though the switch position didn't change.  I think it has something to do with refreshing, but I am not sure.  I appreciate any help.  Thanks.

2
Technical support / PLC Ignoring Timer
« on: December 04, 2019, 12:05:39 PM »
We are a small manufacturer of EPS densifiers.  We recently added a High/Low switch to aid in densifying egg cartons which are very dense and require a different compression and grinding time.  To do this, I just added a relay with the switch input in high (see circuit #22).  Then for the compression time I copied the existing Circuit #24 and just added a new timer with a _H to show that it was the high mode timer.  It works fine.  Then I did the same exact thing for the grinder.  I copied Circuit #43 and created Circuit #44 with a new timer for the high setting.  The problem is that the Circuit #24 works fine, but Circuit #44 the timer stops and the grinder just keeps going.  They are exactly the same circuits so why doesn't it work?  It works in the simulator too.  The grinder just continues to run until the sequence advances and everything resets.  You can change the Grnd_Hi timer and it does absolutely nothing.  I would appreciate any feedback on this.  Thanks.

Here is a link to see what a densifier is: 

https://www.youtube.com/watch?v=eI0GMIiu9PI

You can see a man throwing foam into the grinder.  There are 3 compression chambers called pushes.  One push for each axis (x-y-z).  The program starts the grinder when the first push retracts.  Hope this helps.   

Pages: [1]