Problem with ST and Logic operator

marczak

Member
Join Date
Feb 2012
Location
Poland
Posts
3
Hi I need to implementation md5 algorythm to my project. I try to write it in ST and FBD.

I have problem with conversion.

I try to write function like:

Code:
function f(x,y,z: longint): longint; far;
  begin
    f := (x and y) or ((not x) and z)
  end;

in my project x,y,z is UINT. how to use AND,OR,NOT? WHEN I use convert I can convert data to bool but it lose data. For example IF I convert 56 to bool it will be true. How to execute bit AND,OR,NOT?

Next how to generate rand number?
 
Be aware also that the MD5 algorithm is suitable only for trivial uses where compromise would have only small effects. It is severely vulnerable for security applications
 
all is working but the NOT that should be XOR with (0)
first do the simple AND
result will be the ANDING of both inputs, thus 3 AND 5 is 1 for example
 

Similar Topics

Hello Dear users, I am writing about a problem that has been bothering me for a few days, i.e. I am trying to establish remote access to the Allen...
Replies
0
Views
105
please help i didn't solve this problem with rslogix. I counted but i am not using timer. How i will fix this situation? Please anyone solve this...
Replies
18
Views
4,961
I have an application using a Powerflex 525 for positioning. I really should be using a servo but the equipment is already in place. I have...
Replies
4
Views
2,053
It would be awesome if someone could help me out with this problem. We can only use basic XIC XIO OTE OTL and OTU instructions. I'm not sure on...
Replies
33
Views
9,141
Hi all, this is a math problem my 4th grade son brought home and even I find myself needing help. all 9 players of a baseball team are sitting...
Replies
7
Views
4,337
Back
Top Bottom