Jump to content

GX Developer IEC - Two INT values to one DINT


Recommended Posts

Posted
Hello! I am starting to use the GX Developer IEC. Now I need to connect some INT values to one DINT and vice versa. 1. I have two INT values (A, B) as inputs in a function block, which I want to connect to a DINT value © in structured text. C = [b,A] 2. I have to seperate a DINT value (D) in a function block to two INT values (E, F) and pass them as outputs. [E,F] = D I tryied DSWAP, FMOV, DBON without succes. Any ideas? In RSLogix5000 it would do it like: 1. C := 0; C := A OR C; SWPB(C, WORD, C); C := C OR B; 2. E := (E AND NOT (65535)) OR (D AND 65535); Memory := (Rotation.DriveDintMem AND NOT (-65536)) OR (D AND -65536); SWPB(Memory, WORD, Memory); F := Memory; Thanks for help!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...