Re: [foxboro] [EXTERNAL] Re: Debugging Sequence Codes

  • From: Daniel Wu <Daniel_Wu@xxxxxxxxxxxx>
  • To: "foxboro@xxxxxxxxxxxxx" <foxboro@xxxxxxxxxxxxx>
  • Date: Wed, 17 Nov 2021 17:24:19 +0000

I would like to than y'all for showing me the ways to trouble shoot & test my 
SEQUENCE block problem and the users doc.  The problem turned out to be a 
syntax error which was caused by an extra ":" in front of the CB name passing 
to the subroutine.  As a result, the runtime error was generated due to 
unresolved CB name.  I will definitely add exception handlers in my sequence 
codes as recommended by Dirk.

Thanks for your help and have a happy Thanksgiving.
Daniel

-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx <foxboro-bounce@xxxxxxxxxxxxx> On Behalf Of 
Theobald, Martin (Overton)
Sent: Wednesday, November 17, 2021 3:20 AM
To: foxboro@xxxxxxxxxxxxx
Subject: [EXTERNAL] Re: [foxboro] Debugging Sequence Codes

Caution: This e-mail is coming from an external sender. Please take extra care 
when clicking links or opening attachments. If in doubt as to the veracity of 
this message, report the message using the Report Message function.


Daniel,

Depending upon the block type, you may want to see if parameters such as the 
following can help you identify the cause of the "OP Error -1" indications:

OP_ERR, OP_GRP, OP_OPT, OP_PRI and OP_TXT.


Regards,

Martin Theobald


PUBLIC

-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx <foxboro-bounce@xxxxxxxxxxxxx> On Behalf Of 
Daniel Wu
Sent: 17 November 2021 04:19
To: foxboro@xxxxxxxxxxxxx
Subject: [foxboro] Debugging Sequence Codes

[You don't often get email from daniel_wu@xxxxxxxxxxxx. Learn why this is 
important at http://aka.ms/LearnAboutSenderIdentification.]

CAUTION: This email is from an external source. Do not click links or open 
attachments unless you recognise the sender and know the content is safe. If in 
any doubt, please report suspicious emails to IT.

Hi List,

I don't use much sequence programs in our application; and, instead, I use I/A 
blocks.  Therefore, I am not familiar with the different commands listed in a 
Sequence FoxDetail screen to control the execution of a sequence program. These 
commands are  "NEXT STMNT",  "EXEC STMNT",  "EXEC STEP", "EXEC SBX" and so on.  
I wrote a sequence program to  control several GDEV's and control valves (PIDA) 
to charge raw materials to a kettle.  When I ran it, there were run time errors 
message like  "SBX SYSERR" and "OP Error -1" appeared briefly  on the FoxDetail 
screen.

Trying to debug the runtime errors, I  switched the sequence block to 'STEP" 
mode with the expectation that by executing one statement at a time, I would be 
able to identify which statement caused the problem.  I believe the problems 
occurred when the program was passing a CB name to a DEVICE subroutine to 
open/close a GDEV. However, using  "NEXT  STMNT", "EXEC STMNT" and "EXEC STEP" 
commands did not execute one statement at a time.  Instead, multiple statements 
were executed with the "SBX SYSERR" and "OP ERROR -1" flashed briefly on the 
FoxDetail page.  I believe by executing the DEVICE subroutine call, it stepped 
inside the subroutine; and resulted in executing multiple statement instead of 
one.

I did not have any luck in finding any information on how to use these 
commands.  Would you mind pointing me to the Foxboro users guides with 
information on how to use these commands or be kind enough to explain to me how 
to use these commands to trouble shoot my sequence program run time problems.


Thanks
Daniel




_________________________________________________________________________
This mailing list is neither sponsored nor endorsed by Schneider Electric 
(formerly The Foxboro Company).  Use the info you obtain here at your own 
risks.  See the disclaimer at 
https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.thecassandraproject.org%2Fdisclaimer.html&amp;data=04%7C01%7Cdaniel_wu%40huntsman.com%7C673b284886a94550f78f08d9a9ab710c%7Cb54775623f9345448cb3a772ec1d321a%7C0%7C0%7C637727376642563341%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=qrNHyIPpdXC%2FQuaDBWPaT2wWEx78LZ2EckabwqzM%2F9M%3D&amp;reserved=0

foxboro mailing list:               
https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.freelists.org%2Flist%2Ffoxboro&amp;data=04%7C01%7Cdaniel_wu%40huntsman.com%7C673b284886a94550f78f08d9a9ab710c%7Cb54775623f9345448cb3a772ec1d321a%7C0%7C0%7C637727376642563341%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=fLKgjBwgHtIqUp%2BMo2jMHtD1MIuD9JrqL%2BycRKZ1rbI%3D&amp;reserved=0
to subscribe:           mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:        mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave

***************************************************************************** 
This e-mail is sent on behalf of Portals Paper Limited ('Portals'). The e-mail 
and any attached files are strictly confidential and are intended solely for 
the addressee. If you have received this email in error, please notify the 
sender and then delete the e-mail and any attachments. Where the content of 
this email is personal or otherwise unconnected with Portals' or its customers' 
business, Portals accepts no responsibility or liability for such content. You 
are advised to ensure that you have adequate virus protection as Portals does 
not accept liability for any viruses. Portals Paper Limited (company 
No.11001841) is registered in England with its registered office at: Overton 
Mill, Station Road, Overton, Basingstoke, Hampshire, RG25 3JG. 
*****************************************************************************


_________________________________________________________________________
This mailing list is neither sponsored nor endorsed by Schneider Electric 
(formerly The Foxboro Company).  Use the info you obtain here at your own 
risks.  See the disclaimer at 
https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.thecassandraproject.org%2Fdisclaimer.html&amp;data=04%7C01%7Cdaniel_wu%40huntsman.com%7C673b284886a94550f78f08d9a9ab710c%7Cb54775623f9345448cb3a772ec1d321a%7C0%7C0%7C637727376642563341%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=qrNHyIPpdXC%2FQuaDBWPaT2wWEx78LZ2EckabwqzM%2F9M%3D&amp;reserved=0

foxboro mailing list:               
https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.freelists.org%2Flist%2Ffoxboro&amp;data=04%7C01%7Cdaniel_wu%40huntsman.com%7C673b284886a94550f78f08d9a9ab710c%7Cb54775623f9345448cb3a772ec1d321a%7C0%7C0%7C637727376642563341%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=fLKgjBwgHtIqUp%2BMo2jMHtD1MIuD9JrqL%2BycRKZ1rbI%3D&amp;reserved=0
to subscribe:           mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:        mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave


 
 
_________________________________________________________________________
This mailing list is neither sponsored nor endorsed by Schneider Electric
(formerly The Foxboro Company).  Use the info you obtain here at your own
risks.  See the disclaimer at www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:               //www.freelists.org/list/foxboro
to subscribe:           mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:        mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Other related posts:

  • » Re: [foxboro] [EXTERNAL] Re: Debugging Sequence Codes - Daniel Wu