Programming
7.2 Technology data block
S7-1500 Motion Control V13 Update 3
176
Function Manual, 07/2014, A5E03879256-AC
Example
The following example shows how you can read and save the fifth bit "HomingDone" of the
data word "StatusWord":
SCL
Status.Temp := <TO>.StatusWord;
Copy status
word
Status.HomingDone := Status.Temp.X5;
Copy individual
bits per bit
access
STL
L <TO>.StatusWord
Copy status
word
T Status.Temp
U Status.Temp.X5
Copy individual
bits per bit
access
= Status.HomingDone