# Variable mapping

**URL:** <https://community.br-automation.com/t/variable-mapping/9156>\
**Category:** Programming\
**Tags:** structured-text\
**Created:** [November 26, 2025, 2:33pm UTC](https://community.br-automation.com/t/variable-mapping/9156 "2025-11-26T14:33:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krishna\_Kumar\_Murali](https://avatars.discourse-cdn.com/v4/letter/k/FF8800/32.png) [@Krishna\_Kumar\_Murali](https://community.br-automation.com/u/Krishna_Kumar_Murali)\
**Post date:** [November 26, 2025, 2:33pm UTC](https://community.br-automation.com/t/variable-mapping/9156/1 "2025-11-26T14:33:14Z")

</div>

Hello,

I am trying to turn on a gripper for my Delta robot. I am using X20DO6322 Output mdule. I mapped the gripper boolean variable with IO module. I created a global variable for Gripper on and off operation. Now when i try to turn on the gripper in between my robot motion program, i am getting parse error Unknown identifier and it is not recognising my variable. I am attaching the screenshots of my error message and the code for reference. Kindly provide a solution. Thanks in advance.

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/9/98964a2d415fa10bdf83ebe5701e06028f95e81d.png)

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/d/d068a45285a08643dc6beb675942769530ae33a6.png)

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/6/66c88ee46e5b71f689f2ff5fa3700d8ee2824c95.png)

---

<div class="post-metadata">

**Author:** ![marcusbnr](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/marcusbnr/32/256_2.png) [@marcusbnr](https://community.br-automation.com/u/marcusbnr)\
**Post date:** [November 26, 2025, 2:40pm UTC](https://community.br-automation.com/t/variable-mapping/9156/2 "2025-11-26T14:40:07Z")

</div>

Hi Krishna,

It looks like you’ve created a Structured Text robot program. In order to use I/O within that program, you’ll need to declare the variable within your .st file. Take a look at this Help page for more information: [Variables mapping to I/O](https://help.br-automation.com/#/en/4/motion/mapp_motion/programmierung/programmiersprachen/structured_text/program_content/mapping_io.html)

Alternatively, you can use [this page](https://help.br-automation.com/#/en/4/motion/mapp_motion/programmierung/programmiersprachen/structured_text/program_content/zuordnung.html) to help you access the already-existing PV.
