|
<< Click to Display Table of Contents >>
PLC Tag |
Use a PLC Tag to send a request to an API by configuring its parameters according to the next table.
Item |
<Route Alias>;<Template Name> |
N1 |
1 (one) |
N2 |
From 0 (zero) to 3 (three) |
N3 |
0 (zero) |
N4 |
0 (zero) |
Any writing operation to this Tag executes a request using the route configured in the Item parameter and, when needed, sends the body of a message based on the linked template.
The N2 parameter maps the HTTP request method. Possible values are 0: GET method, 1: POST method, 2: PUT method, or 3: DELETE method.
NOTE |
If not all mandatory elements for a request are configured in the Block Tag for Sending, this writing operation fails. Likewise, if a request fails for any other reason, this writing operation is not completed successfully. |