{"id":65551,"date":"2026-11-25T19:15:47","date_gmt":"2026-11-25T18:15:47","guid":{"rendered":"https:\/\/amit-automation.cz\/podpora\/casto-kladene-otazky\/amit-designer-napoveda\/using-batches-write-set-command\/"},"modified":"2026-11-25T19:15:47","modified_gmt":"2026-11-25T18:15:47","slug":"using-batches-write-set-command","status":"publish","type":"napoveda","link":"https:\/\/amit-automation.cz\/en\/support\/faq\/amit-designer-help\/using-batches-write-set-command\/","title":{"rendered":"Using batches Write\/Set command"},"content":{"rendered":"<p style=\"text-align: justify;\">As you can see in the left pane of the dialog window, you can organize your set commands into batches. Each batch is a list of set commands that are processed at once. You can create an unlimited number of batches, and each batch can have as many set commands as you need.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/img_17.1.1.jpg\" alt=\"17.1.1\" width=\"200\" height=\"361\" \/><\/p>\n<p style=\"text-align: justify;\">In the batches pane, you can see all your batches listed.<\/p>\n<p style=\"text-align: justify;\">A Batch is:<\/p>\n<ul style=\"list-style-type: square;\">\n<li style=\"text-align: justify;\">A collection of set commands of the same type<\/li>\n<li style=\"text-align: justify;\">Processed from top to bottom<\/li>\n<li style=\"text-align: justify;\">Written to the PLC with one command<\/li>\n<\/ul>\n<h3><span style=\"color: #0084c8;\">Add Batch<\/span><\/h3>\n<p style=\"text-align: justify;\">To add a new Batch, please click on an existing batch and then click on the button \u201c+ Add\u201d.<\/p>\n<h3><span style=\"color: #0084c8;\">Remove Batch<\/span><\/h3>\n<p style=\"text-align: justify;\">To remove a Batch, select it and then click on the button \u201c- Del\u201d. All defined set commands in that batch will be deleted along with the batch.<\/p>\n<h3><span style=\"color: #0084c8;\">Add Batch Item<\/span><\/h3>\n<p style=\"text-align: justify;\">To add a batch item, please select a set command in the corresponding batch and then click on\u00a0\u00a0\u00a0\u00a0\u00a0 the button \u201c+ Add\u201d. The new batch item is added to the end of the batch list.<\/p>\n<h3><span style=\"color: #0084c8;\">Remove Batch Item<\/span><\/h3>\n<p style=\"text-align: justify;\">To remove a batch item, please select a set command in the corresponding batch and then click on the button \u201c- Del\u201d.<\/p>\n<h3><span style=\"color: #0084c8;\">Batch Type<\/span><\/h3>\n<p style=\"text-align: justify;\">Each batch can be of exactly one type. All set command in the batch must be of the same type. Available options are:<\/p>\n<table class=\"MsoTable15Grid4Accent3\" style=\"border-collapse: collapse; border: none; mso-border-alt: solid #C9C9C9 .5pt; mso-border-themecolor: accent3; mso-border-themetint: 153; mso-yfti-tbllook: 1184; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt;\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr style=\"mso-yfti-irow: -1; mso-yfti-firstrow: yes; mso-yfti-lastfirstrow: yes;\">\n<td style=\"width: 106.1pt; border-top: 1pt solid #a5a5a5; border-bottom: 1pt solid #a5a5a5; border-left: 1pt solid #a5a5a5; border-image: initial; border-right: none; background: #0084c8; padding: 0cm 5.4pt; text-align: left;\" valign=\"top\" width=\"106\">\n<p class=\"MsoNormal\" style=\"mso-yfti-cnfc: 5;\"><strong><span style=\"color: white; mso-themecolor: background1; mso-bidi-font-weight: bold;\">Type<\/span><\/strong><\/p>\n<\/td>\n<td style=\"width: 346.7pt; border-top: 1pt solid #a5a5a5; border-right: 1pt solid #a5a5a5; border-bottom: 1pt solid #a5a5a5; border-image: initial; border-left: none; background: #0084c8; padding: 0cm 5.4pt; text-align: left;\" valign=\"top\" width=\"347\">\n<p class=\"MsoNormal\" style=\"mso-yfti-cnfc: 1;\"><strong><span style=\"color: white; mso-themecolor: background1; mso-bidi-font-weight: bold;\">Description<\/span><\/strong><\/p>\n<\/td>\n<\/tr>\n<tr style=\"mso-yfti-irow: 0;\">\n<td style=\"width: 106.1pt; border-right: 1pt solid #c9c9c9; border-bottom: 1pt solid #c9c9c9; border-left: 1pt solid #c9c9c9; border-image: initial; border-top: none; background: #ededed; padding: 0cm 5.4pt; text-align: left;\" valign=\"top\" width=\"106\">\n<p class=\"MsoNormal\" style=\"mso-yfti-cnfc: 68;\"><span style=\"font-size: 11.0pt; mso-bidi-font-family: \u00bf\u00cc\u2020Y\u02c7; mso-bidi-font-weight: bold;\">Tag<\/span><\/p>\n<\/td>\n<td style=\"width: 346.7pt; border-top: none; border-left: none; border-bottom: 1pt solid #c9c9c9; border-right: 1pt solid #c9c9c9; background: #ededed; padding: 0cm 5.4pt; text-align: left;\" valign=\"top\" width=\"347\">\n<p class=\"MsoNormal\" style=\"mso-yfti-cnfc: 64;\"><span style=\"font-size: 11.0pt; mso-bidi-font-family: \u00bf\u00cc\u2020Y\u02c7;\">Write values to the PLCs<\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"mso-yfti-irow: 1;\">\n<td style=\"width: 106.1pt; border-right: 1pt solid #c9c9c9; border-bottom: 1pt solid #c9c9c9; border-left: 1pt solid #c9c9c9; border-image: initial; border-top: none; padding: 0cm 5.4pt; text-align: left;\" valign=\"top\" width=\"106\">\n<p class=\"MsoNormal\" style=\"mso-yfti-cnfc: 4;\"><span style=\"font-size: 11.0pt; mso-bidi-font-family: \u00bf\u00cc\u2020Y\u02c7; mso-bidi-font-weight: bold;\">Memory<\/span><\/p>\n<\/td>\n<td style=\"width: 346.7pt; border-top: none; border-left: none; border-bottom: 1pt solid #c9c9c9; border-right: 1pt solid #c9c9c9; padding: 0cm 5.4pt; text-align: left;\" valign=\"top\" width=\"347\">\n<p class=\"MsoNormal\"><span style=\"font-size: 11.0pt; mso-bidi-font-family: \u00bf\u00cc\u2020Y\u02c7;\">Set View Script variables<\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"mso-yfti-irow: 2;\">\n<td style=\"width: 106.1pt; border-right: 1pt solid #c9c9c9; border-bottom: 1pt solid #c9c9c9; border-left: 1pt solid #c9c9c9; border-image: initial; border-top: none; background: #ededed; padding: 0cm 5.4pt; text-align: left;\" valign=\"top\" width=\"106\">\n<p class=\"MsoNormal\" style=\"mso-yfti-cnfc: 68;\"><span style=\"font-size: 11.0pt; mso-bidi-font-family: \u00bf\u00cc\u2020Y\u02c7; mso-bidi-font-weight: bold;\">Script<\/span><\/p>\n<\/td>\n<td style=\"width: 346.7pt; border-top: none; border-left: none; border-bottom: 1pt solid #c9c9c9; border-right: 1pt solid #c9c9c9; background: #ededed; padding: 0cm 5.4pt; text-align: left;\" valign=\"top\" width=\"347\">\n<p class=\"MsoNormal\" style=\"mso-yfti-cnfc: 64;\"><span style=\"font-size: 11.0pt; mso-bidi-font-family: \u00bf\u00cc\u2020Y\u02c7;\">Run custom function defined in View Script<\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"mso-yfti-irow: 3; mso-yfti-lastrow: yes;\">\n<td style=\"width: 106.1pt; border-right: 1pt solid #c9c9c9; border-bottom: 1pt solid #c9c9c9; border-left: 1pt solid #c9c9c9; border-image: initial; border-top: none; padding: 0cm 5.4pt; text-align: left;\" valign=\"top\" width=\"106\">\n<p class=\"MsoNormal\" style=\"mso-yfti-cnfc: 4;\"><span style=\"font-size: 11.0pt; mso-bidi-font-family: \u00bf\u00cc\u2020Y\u02c7; mso-bidi-font-weight: bold;\">SQL<\/span><\/p>\n<\/td>\n<td style=\"width: 346.7pt; border-top: none; border-left: none; border-bottom: 1pt solid #c9c9c9; border-right: 1pt solid #c9c9c9; padding: 0cm 5.4pt; text-align: left;\" valign=\"top\" width=\"347\">\n<p class=\"MsoNormal\"><span style=\"font-size: 11.0pt; mso-bidi-font-family: \u00bf\u00cc\u2020Y\u02c7;\">Write values to the database<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"menu_order":99,"template":"","class_list":["post-65551","napoveda","type-napoveda","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/amit-automation.cz\/en\/wp-json\/wp\/v2\/napoveda\/65551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/amit-automation.cz\/en\/wp-json\/wp\/v2\/napoveda"}],"about":[{"href":"https:\/\/amit-automation.cz\/en\/wp-json\/wp\/v2\/types\/napoveda"}],"version-history":[{"count":0,"href":"https:\/\/amit-automation.cz\/en\/wp-json\/wp\/v2\/napoveda\/65551\/revisions"}],"wp:attachment":[{"href":"https:\/\/amit-automation.cz\/en\/wp-json\/wp\/v2\/media?parent=65551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}