---
title: WarnMsg
slug: warnmsg
docTags: 
createdAt: 2023-04-19T12:39:18.000Z
---

Shows a warning message in the message log.

:::BlockQuote
WarnMsg  "\<message text>"
:::

### Parameters

- message text parameter specifies the message to be displayed
  - if [variable](docId\:oqHjs3LLCfQkSac_cemc2) numbers are included outside of quotation marks, this results in the value of that variable being appended to the message e.g.&#x20;
    `Msg "value of variable 4000 is " #4000`
  - if `%t...`  is included outside of quotation marks, this results in the tool description of the tool number being appended to the message e.g.&#x20;
    `Msg "T1 is " %t1` or `msg "Current tool: " %t#5011`
  - if `%d`  is included outside of quotation marks, this results in the current date and time being appended to the message e.g. `Msg "Time: "%d` will output *Time: 2022-10-28 13:35:52*

