[?]: Write variable of type DT to DB

SIMATIC S7-200/300/400, Step7, PCS7, CFC, SFC, PDM, PLCSIM,
SCL, Graph, SPS-VISU S5/S7, IBHsoftec, LOGO ...
waard
Posts: 3
Joined: Mon Mar 21, 2011 9:27 am

[?]: Write variable of type DT to DB

Post by waard »

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.....
Info
Faq & Info
Faq & Info
Posts: 428
Joined: Wed Oct 05, 2005 9:00 am

Re: [?]: Write variable of type DT to DB

Post by Info »

you need to use SFC20 "BLKMOV"...
waard
Posts: 3
Joined: Mon Mar 21, 2011 9:27 am

Re: [?]: Write variable of type DT to DB

Post by waard »

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....
peterc101
Posts: 34
Joined: Mon Oct 11, 2010 12:54 pm

Re: [?]: Write variable of type DT to DB

Post by peterc101 »

just put a pointer to your first bit of you db where you made 8 bytes for DT as output of sfc1