I try to do this with command MOVE, but data type DT does not work with that command. 8 bytes.....
How i can do that?
thanks.....
[?]: Write variable of type DT to DB
-
- Faq & Info
- Posts: 428
- Joined: Wed Oct 05, 2005 9:00 am
Re: [?]: Write variable of type DT to DB
you need to use SFC20 "BLKMOV"...
-
- Posts: 3
- Joined: Mon Mar 21, 2011 9:27 am
Re: [?]: Write variable of type DT to DB
OK, thanks..
Maybe i dont understand how it working, but what i do:
i am using SFC1( read clk) and save value to TEMP0, then i am using SFC20 - TEMP0 as SRCBLK and DB1.DBW2 (that adress of variable in DB having type DT) as DSTBLK , but that not working.
To tranfer another variable, having type INT - all OK.
In cpu how i can to set the real time in HW (in step 7)? (not in program using SFC)
May be the time in CPU didn't go....
Maybe i dont understand how it working, but what i do:
i am using SFC1( read clk) and save value to TEMP0, then i am using SFC20 - TEMP0 as SRCBLK and DB1.DBW2 (that adress of variable in DB having type DT) as DSTBLK , but that not working.
To tranfer another variable, having type INT - all OK.
In cpu how i can to set the real time in HW (in step 7)? (not in program using SFC)
May be the time in CPU didn't go....
-
- Posts: 34
- Joined: Mon Oct 11, 2010 12:54 pm
Re: [?]: Write variable of type DT to DB
just put a pointer to your first bit of you db where you made 8 bytes for DT as output of sfc1