# Sepasoft Batch and PLC linking problem

**URL:** <https://forum.inductiveautomation.com/t/sepasoft-batch-and-plc-linking-problem/85678>\
**Category:** Ignition\
**Tags:** sepasoft\
**Created:** [February 14, 2024, 12:18pm UTC](https://forum.inductiveautomation.com/t/sepasoft-batch-and-plc-linking-problem/85678 "2024-02-14T12:18:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_Kennes](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@Ben\_Kennes](https://forum.inductiveautomation.com/u/Ben_Kennes)\
**Post date:** [February 14, 2024, 12:18pm UTC](https://forum.inductiveautomation.com/t/sepasoft-batch-and-plc-linking-problem/85678/1 "2024-02-14T12:18:41Z")

</div>

Hello everyone,

I'm facing an issue establishing a proper connection between Sepasoft and the PLC. Essentially, I need the PLC to receive the Command\_Number and respond with a State\_Number.

Previously, I managed this using a script. The script would write the new value on the 'Value Changed' event. This worked. However, I thought a direct link might simplify things?

Linking from Sepasoft to the PLC works instantaneously. The other way around... sometimes? At random, long intervals it seems.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/b/eb2a237616e70af80649a58d3ee600ebfca81333.png)

I've configured the State\_Number as shown in the image above. Although the displayed value is the value from the PLC, Sepasoft doesn't interpret it everytime.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/8/f88ba8212fa98828e103b62918b38e3719f3fc05.png)

This is also shown in the image above. At a certain moment the handshake and state\_number were received from the PLC.

Am I approaching this the wrong way?

Any insights or advice would be greatly appreciated. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![amy.sudibyo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amy.sudibyo/32/38659_2.png) [@amy.sudibyo](https://forum.inductiveautomation.com/u/amy.sudibyo)\
**Post date:** [February 14, 2024, 10:45pm UTC](https://forum.inductiveautomation.com/t/sepasoft-batch-and-plc-linking-problem/85678/2 "2024-02-14T22:45:37Z")

</div>

You might have more luck submitting a support ticket directly with Sepasoft

---

<div class="post-metadata">

**Author:** ![Alfonso\_Asitimbay\_Ll](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Alfonso\_Asitimbay\_Ll](https://forum.inductiveautomation.com/u/Alfonso_Asitimbay_Ll)\
**Post date:** [July 25, 2024, 3:49pm UTC](https://forum.inductiveautomation.com/t/sepasoft-batch-and-plc-linking-problem/85678/3 "2024-07-25T15:49:58Z")

</div>

I also have a similar problem. In my recipe, when a batch is running, sometimes a phase goes to an 'internal fault' state. I've noticed that this happens during the transition from the resetting state to the running state, but from the PLC, the state change is being done correctly. I think the module itself doesn't recognize the state changes, and after spending too much time in the resetting state, it goes to the internal fault state. Have you been able to solve your problem? If so, could you please share your solution?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/f/cf253251323cff4d6d109b9c431711487ab43eb9.png)

---

<div class="post-metadata">

**Author:** ![Ben\_Kennes](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@Ben\_Kennes](https://forum.inductiveautomation.com/u/Ben_Kennes)\
**Post date:** [July 25, 2024, 5:37pm UTC](https://forum.inductiveautomation.com/t/sepasoft-batch-and-plc-linking-problem/85678/4 "2024-07-25T17:37:59Z")

</div>

Hey Alfonso,

We've never pinpointed the exact cause, but we suspect it might be related to the OPC connection.

Within the gateway, try to drill down (Status --\> Tags) to the Command\_Number and State\_Number tags to check if the quality is good. While the phase itself might appear good, the underlying tags could be problematic.

We were using TIA controllers, which have limitations in terms of OPC connection, possibly causing the issue.

Additionally, you mentioned the error occurs when transitioning from resetting to running. This might be normal, as the state model expects a starting command to go from Idle to Running. And before the batch engine can give that start command, it has to recognize the Idle state.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/6/06fbf8249a123b23fde91feb4a8c175bbf6dacf8.png)

I hope this helps! You can also submit a support ticket with Sepasoft, as Amy mentioned.

Kind regards,  
Ben
