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.


Messages - ScarBelly

Pages: [1]
1
Technical support / Re:Relay Bit Manipulation
« on: October 24, 2013, 01:34:19 PM »
Here is a little snippet of mine that should clear things up.

If TestBIT (Relay[1],0) Then
   CLRBIT Relay[1],0
Endif

'Use TestBIT here for your application
If TestBIT (Relay[1],0) AND TestBIT (Relay[1],1)Then   
  SetBIT Relay[1],2      
           
EndIf

2
Technical support / Re:Trilogi editting problems
« on: March 05, 2013, 05:00:28 AM »
I've seen similar problems.  A line of code keeps failing even though it is good.  Retyping on the same line won't fix it but deleting the line and entering a new line with the same instruction fixes it.  As support indicated, apparently line endings get corrupted.

3
Technical support / Re:Setsystem
« on: August 16, 2012, 04:49:10 AM »
You might try setting a variable to the DM like: S= DM[66]
and using S.  

The only reason I say this is because some other functions behaved for me this way.  For instance, I found that while
A$ = CHR$(DM[32]) works, STRCMP(B$,  CHR$(DM[32])) did not.

4
Technical support / Sourcing I/O
« on: July 19, 2012, 06:18:57 AM »
I've used the FMD1616-10 with very good results.  However, I'm about to meet some resistance to other uses since it only has sinking I/O.  Do you have any plans to offer sourcing as an option or better yet use configurable sink or source circuits?

In industrial automation, sourcing outputs or often required for safety in that an output wire shorted to ground can not activate a dangerous output.  It also keeps troubleshooting more understanble to maintenance personnel used to relay outputs.

I also need to interface to existing control systems that have sourcing I/O and must use external relays to invert the signals.

[Edit]  So I think we will go with the F1616-BA.  I would still like to see a version with solid state source/sink I/O.

5
Technical support / Re:Need unsigned integers
« on: March 05, 2012, 08:06:14 AM »
Thanks for the help :D
XOR won't help because I still need the 2nd greater than evaluation.
I was able to fix it using your 2nd suggestion.

A = INPUT[1] & &HFFFF
B = DM[1] & &HFFFF
If A <> B Then
   If (A  > 0) AND (A > B) Then   
       SetBIT Relay[1],0
       CLRBIT Relay[1],1      
   EndIf
'...........
EndIf

6
Technical support / Need unsigned integers
« on: March 02, 2012, 12:50:24 PM »
On an FMD1616 the following does not work for me when Input 16 is used due to it reversing the sign of the input as a signed integer.

If (INPUT[1]  > 0) AND (INPUT[1] > DM[1]) Then
         'DM[1] contains the last state of INPUT[1] and I'm looking for additional inputs On.
    SetBIT Relay[1],0      
EndIf

Is there a simple way around this?  Could you consider adding unsigned integers?
Thanks

Pages: [1]