Syntax issue for pfc 7 while the code works for pfc 5

The following command works in pfc 5 but not in pfc 7: " SET @rs= -1.0e6 " where the servo is defined as a function where rs is used as a condition.

The set command was deprecated in v7. You can assign FISH variables values using inline FISH:
[rs = -1.0e6]
See the documentation on inline FISH here.