# Problem with the Controller-Defined Emitter

**URL:** <https://community.factoryio.com/t/problem-with-the-controller-defined-emitter/1699>\
**Category:** Uncategorized\
**Created:** [October 6, 2022, 10:07pm UTC](https://community.factoryio.com/t/problem-with-the-controller-defined-emitter/1699 "2022-10-06T22:07:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![billsakos](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@billsakos](https://community.factoryio.com/u/billsakos)\
**Post date:** [October 6, 2022, 10:07pm UTC](https://community.factoryio.com/t/problem-with-the-controller-defined-emitter/1699/1 "2022-10-06T22:07:44Z")

</div>

Hello to everyone.

I have a problem with the Controller-Defined Emitter.

I am doing a project and want to spawn a box or the 3 different types of raw material when the corresponding button is pressed.

I follow the documentation from the emitter but still, it doesn’t spawning the 3 type of raw material but only 2 type of box.

[Here is a video to see](https://www.youtube.com/watch?v=rxa5mtuKlsk)

and I use this for the code (

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/factoryio/original/1X/3d3122140743bee3b343d47e37a82fc7981e343b.png)  
)

---

<div class="post-metadata">

**Author:** ![brunovgr](https://dub1.discourse-cdn.com/flex017/user_avatar/community.factoryio.com/brunovgr/32/12_2.png) [@brunovgr](https://community.factoryio.com/u/brunovgr)\
**Post date:** [October 7, 2022, 9:49am UTC](https://community.factoryio.com/t/problem-with-the-controller-defined-emitter/1699/2 "2022-10-07T09:49:05Z")

</div>

Hi @billsakos,

The type of part to emit is defined by a 16-bit mask. This means you would use a WORD in your PLC code to specify which parts to emit. For example:

0000\_0000\_0001\_0000 OR 0000\_0000\_0010\_0000 OR 0000\_0000\_0100\_0000 = 0000\_0000\_0111\_0000

0000\_0000\_0111\_0000 = 112 in decimal

By setting 112 in the **Emitter # (Part)** the emitter will emit blue, green, and metal raw parts.

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/factoryio/original/1X/f9a429467cacfe8ca6416b76f0b084624cdc68ff.jpeg)

---

<div class="post-metadata">

**Author:** ![billsakos](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@billsakos](https://community.factoryio.com/u/billsakos)\
**Post date:** [October 7, 2022, 8:19pm UTC](https://community.factoryio.com/t/problem-with-the-controller-defined-emitter/1699/3 "2022-10-07T20:19:59Z")

</div>

thanks , i misunderstand the documentation
