Knowledgebase



T5358: SPEL+ Basics: Using Memory I/O vs using Boolean variables?

Article ID: T5358
Date: 1/30/13
Product: Epson RC+

There are advantages and disadvantages to both Memory I/O and Boolean variables.

Here are some of the pros & cons ->

Memory I/O

1. Memory I/O is similar to discrete I/O. They share similar commands and syntax. Memory I/O and discrete I/O can be labeled. Both can be viewed and forced On/Off from the I/O Monitor screen.

2. Memory I/O works with the Wait statement. The Wait statement is very efficient for multitasking and CPU usage.

3. Memory I/O can be used at the Bit level, Byte level or Word level. As a result, Memory I/O works better with bitwise operations (like AND, OR, XOR etc...).

4. Memory I/O works with Trap statements (Boolean variables do not).

5. Memory I/O is good for synchronizing multitasks.

6. Memory I/O can be used with the "!...!" parallel processing statement in conjunction with robot motion (Boolean variables can not).

7. Memory I/O can be used as a "Sense" or "Till" condition for stopping robot motion (Boolean variables can not be used for this purpose).

Boolean Variables

1. Boolean Variables can be "Preserved" when the controller power is shut off (Memory I/O is turned off).

2. Boolean Variables can be passed as parameters to Functions and can also be a Return value from a Function call.

3. Boolean Variables are typical Return values for SPEL+ functions. For example, the SPEL+ function "EStopOn" returns a Boolean value (True or False).

4. Boolean Variables can be used in variable arrays.

Author of the Article: John Yett



Related Articles

No related articles were found.

Attachments

No attachments were found.

Visitor Comments

Article Details

Last Updated
31st of January, 2013

Would you like to...

Print this page  Print this page

Email this page  Email this page

Post a comment  Post a comment

 Subscribe me

Subscribe me  Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF


User Opinions

No users have voted.

How would you rate this answer?




Thank you for rating this answer.

Continue