Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Preview et Python?

Preview et Python? 2 years 3 months ago #11295

  • Sébastien
  • Sébastien's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 175
  • Thank you received: 2
  • Karma: 0
Bonjour,

voila dans le PRG on peut écrire en C ( ex : OA1 = (d1) ? 1 : 0; ) donc en C si j'ai bien compris lors d'une réponse.

Peut on avoir aussi du Python ? et pour en faire quoi? en fait je voudrais travailler avec du python sur Proview est-ce possible ?
et que peut on faire avec?

Si la réponse est oui et tout ( avez vous un tutoriel ? ou des vidéos ? )

En vous remerciant et je profite pour souhaiter à tous une excellente année 2022, santé, bonheur et prospérité!!!

/Sébastien
SEB
The administrator has disabled public write access.

Preview et Python? 2 years 3 months ago #11296

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3177
  • Thank you received: 502
  • Karma: 133
Hi Seb,

In the Arithm objects in the plc editor you can only use c syntax. If you want to use Python you have to write a separate application. The Python API is described in Programmer's Referens Manual (last on the first page) and in release notes for V5.7. There are also some examples in the release notes.

You have to add $pwr_exe to PYTHONPATH to run Python.

/Claes
The administrator has disabled public write access.

Preview et Python? 2 years 3 months ago #11298

  • Sébastien
  • Sébastien's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 175
  • Thank you received: 2
  • Karma: 0
Hi Claes,
Thank You,
je voir le manuel ok

MERCI,


/sebastien
SEB
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 8.125 seconds