If you copy/paste a script block while in the same wire sheet, the new block will increment by 1 but
the input/output items will be gone. If you enter the script editor, everything looks good. If you check
out the properties of the block, the input/output present value section will be gone. There's no pin slots
with these inputs and outputs hidden.
If you copy/paste a script block from one controller's wiresheet to another controllers wiresheet, the block
will create successfully in the new controller as long as the instance number is not used already. If it's
already taken up, then the new script will become instance number -1 and experience the same issues as
Repairing the block
The only way I've been able to repair the block is to make sure it has a good instance number,
re-compile the script block with a slight change, and then change it right back. After that,
the inputs and outputs are visible in the block once again.
Question.. Good way to copy/paste blocks when knowing a possibility exists of conflicting
instance numbers along the way?
Have a question? Please contact us with details, and we will respond.
Look through existing questions to find popular answers.
Want to know more about Exchange and its possibilities?
Discuss challenges in energy and automation with 30,000+ experts and peers.
Find answers in 10,000+ support articles to help solve your product and business challenges.
Find peer based solutions to your questions. Provide answers for fellow community members!
Register today for FREE
Already have an account?Log in