jazuk1970
Member
Hi guys,
I'm pretty new to FactoryTalk (SE) but have a fair knowledge of Intouch/iFix (Yes i'm learning to forget everything I know about those for SE lol).
I've a couple of questions I hope someone can give me a few pointers on.
1. I'd like to pass "TEXT" to a macro and can't seem to do this? In my example i've an HMI tag: myTag of type memory string.
If i have in a macro (myMacro):
myTag = "Some Text"
then everything is ok however if i call myMacro "Some Text"
and modify the macro:
myTAG = %1
i get "Failed to resolve item's ID 'Some Text' because it does not exist on any server.
Clearly its taking %1 as a tag, is there anyway to tell the macro treat it as a literal string?
2. Is there any better reference material for the VBA implementation in SE?
I've seen a few posts on here about the VBA and it looks like seriously hard work compared to the likes of iFix and Intouch etc. (setting a tag value for example?)
Thanks in advance.. and hoping to avoid insanity.. otherwise back to old school long hand each time..
I'm pretty new to FactoryTalk (SE) but have a fair knowledge of Intouch/iFix (Yes i'm learning to forget everything I know about those for SE lol).
I've a couple of questions I hope someone can give me a few pointers on.
1. I'd like to pass "TEXT" to a macro and can't seem to do this? In my example i've an HMI tag: myTag of type memory string.
If i have in a macro (myMacro):
myTag = "Some Text"
then everything is ok however if i call myMacro "Some Text"
and modify the macro:
myTAG = %1
i get "Failed to resolve item's ID 'Some Text' because it does not exist on any server.
Clearly its taking %1 as a tag, is there anyway to tell the macro treat it as a literal string?
2. Is there any better reference material for the VBA implementation in SE?
I've seen a few posts on here about the VBA and it looks like seriously hard work compared to the likes of iFix and Intouch etc. (setting a tag value for example?)
Thanks in advance.. and hoping to avoid insanity.. otherwise back to old school long hand each time..