Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

useful primitives

For general discussion related FlowStone

useful primitives

Postby fixstuff555 » Sat May 14, 2011 10:30 pm

HI all,

Here are some useful primitives that may be useful. These should be built into Flowstone IMO, but here they are anyways.

1) 16 bits to an int

2) int to 16 bits

Both can be broken down or combined into different sizes obviously. These will be useful in conjunction with Embedded's Modbus modules as well, since they deal with integer I/O.

Enjoy!

bool_pack_unpack.fsm
(1.71 KiB) Downloaded 1486 times
fixstuff555
 
Posts: 151
Joined: Thu Oct 21, 2010 3:24 pm

Re: useful primitives

Postby Embedded » Sat May 14, 2011 11:24 pm

Could be useful, but most times these are enough:

Decimal - Hex - Binary - Hex - Decimal
Attachments
Dec_Hex_Bin_Hex_Dec.fsm
Number Conversions
(286 Bytes) Downloaded 1412 times
Embedded
 
Posts: 143
Joined: Sat Oct 30, 2010 1:42 pm

Re: useful primitives

Postby fixstuff555 » Sun May 15, 2011 12:04 am

I knew about those, but there aren't primitives to break out individual bits... I guess you could do it that way using this way:

another_way.fsm
(551 Bytes) Downloaded 1564 times


But that just seemed odd to me. I come from the PLC industrial world as such, and I have always like having a block that I could tie an output to a particular bit without thinking too much about it.
fixstuff555
 
Posts: 151
Joined: Thu Oct 21, 2010 3:24 pm

Re: useful primitives

Postby glenbot98 » Sun May 15, 2011 12:19 pm

This is great, thank you.
glenbot98
 
Posts: 3
Joined: Mon Sep 06, 2010 7:43 pm

Re: useful primitives

Postby Embedded » Sun May 15, 2011 5:32 pm

There are 10 types of people in this world, those that understand binary and those that don't! :)
Embedded
 
Posts: 143
Joined: Sat Oct 30, 2010 1:42 pm


Return to General

Who is online

Users browsing this forum: No registered users and 105 guests