# Python script to communicate/ receive command from IEC 104 client simulator

**URL:** <https://forum.inductiveautomation.com/t/python-script-to-communicate-receive-command-from-iec-104-client-simulator/74382>\
**Category:** Ignition\
**Tags:** perspective, vision, scripting, database\
**Created:** [May 31, 2023, 6:14pm UTC](https://forum.inductiveautomation.com/t/python-script-to-communicate-receive-command-from-iec-104-client-simulator/74382 "2023-05-31T18:14:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mansi\_kumawat](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@mansi\_kumawat](https://forum.inductiveautomation.com/u/mansi_kumawat)\
**Post date:** [May 31, 2023, 6:14pm UTC](https://forum.inductiveautomation.com/t/python-script-to-communicate-receive-command-from-iec-104-client-simulator/74382/1 "2023-05-31T18:14:06Z")

</div>

I'm new to implementation of IEC and IEEE standards. I am trying to implement IEC 104 client server model in IEC simulator, I which I learned we can issue single/double command (C\_DC\_NA\_1) from client to server IEC simulator, applied condition is (double point must be mapped with double command).

So, I am writing a python script to accept double command from IEC 104 client simulator. but it client simulator shows error. like  
`command failed error code -4521 API 104 function invalid, error value 0`

I want to learn how to implement IEC 104 server side to receive command from IEC 104 client simulator.

I WANT TO KNOW ABOUT MAPPING SO THAT I CAN SEND/RECEIVE DOUBLE COMMAND FRAME IN PYTHON TO VIRTUAL CLIENT SIMULATOR IEC-104.

## regards

Mansi

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 31, 2023, 6:17pm UTC](https://forum.inductiveautomation.com/t/python-script-to-communicate-receive-command-from-iec-104-client-simulator/74382/2 "2023-05-31T18:17:55Z")

</div>

{Please don't shout. Edit your topic to fix that.}

What driver is this? Or are you attempting to write your own driver in jython?
