Cancel
Showing results for 
Search instead for 
Did you mean: 

Process Simulate API change Parameter

Experimenter
Experimenter

Hi, i want to change Parameter in an existing Logic-Block that is added to a Ressource.

I´ve tried it with TxLogicBehavior-Commands but I could only make a new Logic-Block.

Can someone give me some help or a code to change an existing LB?

Thanks.

3 REPLIES

Re: Process Simulate API change Parameter

Siemens Experimenter Siemens Experimenter
Siemens Experimenter

Hi,

 

I can think about 2 reasons:

  1. The object is not in modeling.
  2. You tried to rename the parameter, and this is not possible.

Regards,

Guy

Re: Process Simulate API change Parameter

Experimenter
Experimenter

Thank you. I just tried it but it doesn´t work.

Could you please give me a piece of code? 

Re: Process Simulate API change Parameter

Siemens Genius Siemens Genius
Siemens Genius

Hi,

 

try to use TxPlcLogicBehavior:
CreateParameter
RemoveParameter
ITxPlcLogicBehaviorParameter[] Parameters

etc.

 

Regards,

Moshe