← Strings and Text

Serial Number Text

medium

Builds a laser marker's serial number, 'SN-0042', from a counter.

What it teaches

DTOS writes a number with only the digits it needs, so 42 becomes '42', and 'SN-0042' needs its two zeros added. CONCAT joins two STRING tags and does not take text in quotes, so fixed text such as 'SN-' has to be in a STRING tag first. RTOS is no way round this: it prints 7 as '7.00000000'.

Parameters

TagDirectionTypeDefaultDescription
In_CountInputDINT42The part counter, 0 to 9999
Ref_SerialInOutSTRING—The text the laser marker prints

Required behavior