create_section
Create a new empty program section within an existing task, specifying the IEC language (ST, LD, FBD, SFC, IL, LL984) to prepare for logic insertion.
Instructions
Create a new empty program section in a task.
language: ST, LD, FBD, SFC, IL or LL984. To fill it with logic:
ST: call write_st_logic (plain IEC text, no XML) — easiest.
LD / FBD / SFC: FIRST call get_language_reference(language) to get the validated exchange-XML rules and a worked example, then author the section XML and import it with import_xml(kind='section'). SFC suits stepwise sequences.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| task | Yes | ||
| language | No | ST |