发布于 2006-11-29 08:35:36
0楼
POU开始:
LD SM0.0 //
MOVD AC0, LD25 // save accumulators
MOVD AC1, LD29 // ...
MOVD AC2, LD33 // ...
MOVD AC3, LD37
POU结束:
LD SM0.0 //
MOVD LD25, AC0 // restore accumulators
MOVD LD29, AC1 // ...
MOVD LD33, AC2 // ...
MOVD LD37, AC3 // ...
Save the accumulators so that we do not disturb the user values.
POU中可以大量的使用ACX。