Industry Online Support
Technical Forum
12/4/2008 7:06 PM | |
Posts: 103 Rating: (10) |
You might try using DB.DBD instead of DB.DD as a Real or DInt is accessed using DBD. |
12/4/2008 7:30 PM | |
Posts: 102 Rating: (1) |
HI STILL GETTING THE SAME ERROR OF INVALID DATA TYPE. CODE IS DB191.DBD[2402 + T_8]:= 0.0; WHAT COULD BE THE WRONG SENTEX IN THIS CODE. STILL SHOWS THE ERROR. |
12/4/2008 7:58 PM | |
Posts: 103 Rating: (10) |
I remember a similar problem from a post I replied to a while back. I believe it has to do with the way absolute addressing sees the data. See post /tf/WW/en/Posts/22756#top You probably need to do a DWORD_TO_REAL(DBx.DBD[2000 + T_8] := 0.0; See also the help section "Absolute Access to Data Blocks" |
12/4/2008 8:05 PM | |
Joined: 10/3/2008 Last visit: 5/21/2024 Posts: 956 Rating: (123) |
Hi, you have to write this: DB191.DBD[2402 + T_8]:= REAL_TO_DWORD(0.0); or DB191.DBD[2402 + T_8]:= 0; Wüstenräuber |
Follow us on