If you setup a reader with a destination as your Stored Procedure you can use the number of rows that are modified within the stored procedure to be the value which triggers the correct GPOs. Configure the GPOs using the GPO tab on the Reader List. Add 1 GPO and configure it for the following settings:
- Set the port to whichever you are using 1, 2… etc
- Set the Alert type to be Destination Data Insert.
- Set the Port State to True.
- Set the duration for the length of time you’d like the device to be powered up.
- Set the Process ID to match the process you are configuring. If you only have 1, this will be '1'.
- Set the condition to the number of rows that will be affected by the stored procedure.
After you have this configured the reader will send the tag data to the stored procedure, and if the number of rows affected matches what you configured as the Condition for the GPO then the GPO will be powered up.
- Set the port to whichever you are using 1, 2… etc
- Set the Alert type to be Destination Data Insert.
- Set the Port State to True.
- Set the duration for the length of time you’d like the device to be powered up.
- Set the Process ID to match the process you are configuring. If you only have 1, this will be '1'.
- Set the condition to the number of rows that will be affected by the stored procedure.
After you have this configured the reader will send the tag data to the stored procedure, and if the number of rows affected matches what you configured as the Condition for the GPO then the GPO will be powered up.